Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opera sniff be gone! #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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