Unfortunately, when onLocationChange is fired for an attack site for
the about:blocked error page that we display, content.document has not
been updated with the loaded error document, so
content.document.documentURI will appear to be the previous page that
had been loaded. In this patch, we update the parent's cache of
documentURI in onStateChange as well, since this seems to be fired
after the error page has been loaded.
MozReview-Commit-ID: 1yLAw0JTEC6
--HG--
extra : rebase_source : 4f6f850fbe9c0b1f8ae3d6e2eaa42ef52a1e55c4
The help menu wasn't populating properly because gSafeBrowsing was attempting
to get the URI for the loaded page by getting content.document.documentURI.
Since bug 1051017 landed, content is unavailable for e10s windows. We use
the selected browser's currentURI instead.
--HG--
extra : rebase_source : 7dfa0f74b99ed35563bc4507c2a5ff70a703af3e