Skip to content

Conversation

@ryanseddon
Copy link

Removed the need for forking the code in Opera.

Opera <10 uses event.domain rather than event.origin and it also excluded the URL protocol.

So I pointed e.origin to e.domain and stripped source_origin string of the URL protocol if the browser supports e.domain.

Tested and confirmed working in Opera 9.64, 10.63 and 11.5

- Opera <10 uses event.domain instead of event.origin and excludes the protocol
- Tested and confirmed working in Opera 9.64, 10.63 and 11.5
@miketaylr
Copy link

Ben, this old sniff actually breaks oldspice.com for Opera users now. To reproduce:

  1. Open top page, http://www.oldspice.com/
  2. Click to move to "Products"
  3. select a product
  4. select a product again

Expected: page opens
Actual: Page opens, then redirected to top page with /#if_height=xxx (the number depends on the page).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants