Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
This commit is contained in:
@@ -1933,6 +1933,12 @@ HttpBaseChannel::GetURIPrincipal()
|
||||
return mPrincipal;
|
||||
}
|
||||
|
||||
bool
|
||||
HttpBaseChannel::IsNavigation()
|
||||
{
|
||||
return mLoadFlags & LOAD_DOCUMENT_URI;
|
||||
}
|
||||
|
||||
bool
|
||||
HttpBaseChannel::ShouldIntercept()
|
||||
{
|
||||
@@ -1940,7 +1946,9 @@ HttpBaseChannel::ShouldIntercept()
|
||||
GetCallback(controller);
|
||||
bool shouldIntercept = false;
|
||||
if (controller && !mForceNoIntercept) {
|
||||
nsresult rv = controller->ShouldPrepareForIntercept(mURI, &shouldIntercept);
|
||||
nsresult rv = controller->ShouldPrepareForIntercept(mURI,
|
||||
IsNavigation(),
|
||||
&shouldIntercept);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
}
|
||||
return shouldIntercept;
|
||||
|
||||
Reference in New Issue
Block a user