DescriptionDon't increment lazy keep alive count on redirects.
The ChromeExtensionNetworkDelegate::OnBeforeURLRequest is called for new
requests as well as for redirects. This results in the lazy keep alive
count in extensions to be incremented several times if there is a redirect
but then it is decremented only ones when the request finishes. In consequence
the lazy extension page never shuts down because the count never reaches
zero.
With this commit requests that have been redirected at least once are
ignored when incrementing the keep alive count.
BUG=175279
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289260
Patch Set 1 #Patch Set 2 : Only filter out redirects on REQUEST_START. #Messages
Total messages: 13 (0 generated)
|