WebRequest: 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. Review URL: https://chromiumcodereview.appspot.com/10837164 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150552 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment