mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1245724 - Make plugin network requests bypass service worker interception. r=ehsan
This commit is contained in:
parent
61758e667a
commit
ee176b71a9
@ -3409,7 +3409,8 @@ nsresult nsPluginHost::NewPluginURLStream(const nsString& aURL,
|
||||
nsIContentPolicy::TYPE_OBJECT_SUBREQUEST,
|
||||
nullptr, // aLoadGroup
|
||||
listenerPeer,
|
||||
nsIRequest::LOAD_NORMAL | nsIChannel::LOAD_CLASSIFY_URI);
|
||||
nsIRequest::LOAD_NORMAL | nsIChannel::LOAD_CLASSIFY_URI |
|
||||
nsIChannel::LOAD_BYPASS_SERVICE_WORKER);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (doc) {
|
||||
|
@ -695,7 +695,8 @@ nsPluginStreamListenerPeer::RequestRead(NPByteRange* rangeList)
|
||||
nsILoadInfo::SEC_NORMAL,
|
||||
nsIContentPolicy::TYPE_OTHER,
|
||||
loadGroup,
|
||||
callbacks);
|
||||
callbacks,
|
||||
nsIChannel::LOAD_BYPASS_SERVICE_WORKER);
|
||||
}
|
||||
else {
|
||||
// in this else branch we really don't know where the load is coming
|
||||
@ -709,7 +710,8 @@ nsPluginStreamListenerPeer::RequestRead(NPByteRange* rangeList)
|
||||
nsILoadInfo::SEC_NORMAL,
|
||||
nsIContentPolicy::TYPE_OTHER,
|
||||
loadGroup,
|
||||
callbacks);
|
||||
callbacks,
|
||||
nsIChannel::LOAD_BYPASS_SERVICE_WORKER);
|
||||
}
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
|
Loading…
Reference in New Issue
Block a user