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

[Fx4] meta refresh blocked due to incorrect origin in shouldLoad #210

Open
jsamuel opened this issue Dec 22, 2011 · 1 comment
Open

[Fx4] meta refresh blocked due to incorrect origin in shouldLoad #210

jsamuel opened this issue Dec 22, 2011 · 1 comment

Comments

@jsamuel
Copy link
Member

jsamuel commented Dec 22, 2011

imported trac ticket
created: 2011-03-11 13:10:01
reporter: justin

In Firefox 4, nsIContentPolicy::shouldLoad implementations are called with an incorrect origin argument for meta refreshes after link clicks.

Setup: three documents---A, B, and C---with different URLs where A has a link to B and B has a meta refresh tag that loads C.

Clicking A's link to B results in the correct origin and destination arguments in the call to shouldLoad (origin is A's URL, destination is B's). However, when the meta refresh in B occurs, shouldLoad is not called with origin B and destination C but rather with origin A and destination C. That is, the origin appears to be the previous document's URL (the one with the link the user followed), not the current document's URL that contains the meta refresh.

This seems to be a bug in Firefox and I'm not sure how to work around it in RP. I need to open a bugzilla ticket for this.

@jsamuel
Copy link
Member Author

jsamuel commented Dec 22, 2011

imported trac comment
created: 2011-03-11 14:19:38
author: justin

Bugzilla ticket opened: https://bugzilla.mozilla.org/show_bug.cgi?id=641098

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

No branches or pull requests

1 participant