mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1046645 - Mark moz-page-thumb:// as local resources to prevent mixed content warnings f=Mardak r=gavin
Mixed content warnings on valid https pages may sometimes occur when a thumbnail on about:newtab is refreshed while we're already transitioning to the new web page. The "insecure" request is counted as a subresource request towards the newly started load. If the new target is a https page this may result in a mixed content warning because nsSecureBrowserUI is dumb and can't tell the requests of the current and previous page loads apart.
This commit is contained in:
parent
210db9946d
commit
d312e85b38
@ -52,6 +52,8 @@ Protocol.prototype = {
|
|||||||
*/
|
*/
|
||||||
get protocolFlags() {
|
get protocolFlags() {
|
||||||
return Ci.nsIProtocolHandler.URI_DANGEROUS_TO_LOAD |
|
return Ci.nsIProtocolHandler.URI_DANGEROUS_TO_LOAD |
|
||||||
|
Ci.nsIProtocolHandler.URI_IS_LOCAL_RESOURCE |
|
||||||
|
Ci.nsIProtocolHandler.URI_IS_LOCAL_FILE |
|
||||||
Ci.nsIProtocolHandler.URI_NORELATIVE |
|
Ci.nsIProtocolHandler.URI_NORELATIVE |
|
||||||
Ci.nsIProtocolHandler.URI_NOAUTH;
|
Ci.nsIProtocolHandler.URI_NOAUTH;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user