DescriptionWebRequest: Signal end of request if start signaled
Sensitive requests are not usually signaled to extension event handlers
via events like onBeforeRequest.
This is checked by WebRequestPermissions::HideRequest(request).
However, a request might become sensitive after redirect. In that case
it could have been signaled via, e.g., onBeforeRequest, but not any more
via onErrorOcurred or onCompleted.
This causes problems (see BUG for more discussion).
This patch changes the processing of onErrorOccurred and onCompleted so
that even sensitive requests are signaled if they were signaled before.
This is a safe change, because onErrorOccurred and onCompleted handlers
cannot modify the request.
BUG=139982
TEST=Use the extension attached to BUG to log starts and ends of requests. Go to http://goo.gl/fKDKJ which redirects to a sensitive https://chrome.google.com/webstore, and observe that request's start and end being signaled. In general, every request's start and end should be signaled.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150552
Patch Set 1 #Patch Set 2 : Argh! Unifying spelling. #
Total comments: 2
Patch Set 3 : WasSignaled is now a const method. #
Messages
Total messages: 5 (0 generated)
|