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

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.