Closed Bug 1096530 Opened 11 years ago Closed 11 years ago

Necko doesn't always notify listeners when a cached and suspended redirect is canceled

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: mrbkap, Assigned: mrbkap)

References

Details

Attachments

(1 file)

I found this testing the patch for bug 1088457. STR: 0. Enable tracking protection 1. Go to <http://people.mozilla.org/~mchew/test_tp.html> 2. Disable tracking protection for the site via the favicon/Larry icon. 3. After the site refreshes, re-enable tracking protection Expected results: The page completes loading and the throbber stops spinning. Actual Results: The page appears to be loaded, but the throbber continues forever. The problem is that the first successful load of one of the resources on the page (doubleclick.net in this case) caches that it is a redirect. Then, when we load the page with tracking protection enabled, we do the following: 1. Detect the cached redirect 2. Suspend the channel 3. Try to continue the redirect (via nsHttpChannel::HandleAsyncRedirect) -> This bails early and waits for the call to Resume() 4. Cancel the channel due to tracking protection 5. Resume However, there's a small bug in HandleAsyncRedirect, where if we canceled the channel in the meantime, we don't ever create the redirect channel *or* notify our listener of the error.
Attached patch patch v1Splinter Review
This ensures that we notify our listener.
Attachment #8520123 - Flags: review?(jduell.mcbugs)
thanks blake!
Comment on attachment 8520123 [details] [diff] [review] patch v1 Review of attachment 8520123 [details] [diff] [review]: ----------------------------------------------------------------- lgtm - the lack of donotifylistener before this patch would definitely hang the channel
Attachment #8520123 - Flags: review?(jduell.mcbugs) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: