RequestPolicy/requestpolicy — Issue #210: [Fx4] meta refresh blocked due to incorrect origin in shouldLoad
Author: jsamuel
Created: 2011-12-22 19:00:31+00:00
State: open
Labels: extension

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.