Closed Bug 1529911 Opened 6 years ago Closed 6 years ago

Add more tests for cancelling HTTP channels

Categories

(Core :: Networking: HTTP, enhancement, P3)

60 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox-esr68 --- fixed
firefox69 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

Details

(Whiteboard: [necko-triaged])

Crash Data

Attachments

(4 files)

Blocks: 1553083
Attachment #9066167 - Attachment description: Bug 1520062 - Make httpcancel unit test run in e10s r=mayhemer! → Bug 1529911 - Make the httpcancel unit test run in e10s r=mayhemer!
Attachment #9066168 - Attachment description: Bug 1520062 - Add more tests for cancelling the channel r=mayhemer! → Bug 1529911 - Add more tests for cancelling the channel r=mayhemer!
Attachment #9066169 - Attachment description: Bug 1520062 - Ensure that mOnStartRequestCalled/mOnStopRequestCalled is set just before calling the listener to avoid reentrancy issues r=mayhemer! → Bug 1529911 - Ensure that mOnStartRequestCalled/mOnStopRequestCalled is set just before calling the listener to avoid reentrancy issues r=mayhemer!

Because the IPDL channel between HttpChannelChild/Parent is sensitive to chaos
mode delays, sometimes the channel will be cancelled before completing, other
times after.
Because of this, the test will sometimes fail in verify mode.

Depends on D20499

Attachment #9066167 - Attachment description: Bug 1529911 - Make the httpcancel unit test run in e10s r=mayhemer! → Bug 1529911 - Make the httpcancel unit test run in e10s r=mayhemer
Attachment #9066168 - Attachment description: Bug 1529911 - Add more tests for cancelling the channel r=mayhemer! → Bug 1529911 - Add more tests for cancelling the channel r=mayhemer
Attachment #9066169 - Attachment description: Bug 1529911 - Ensure that mOnStartRequestCalled/mOnStopRequestCalled is set just before calling the listener to avoid reentrancy issues r=mayhemer! → Bug 1529911 - Ensure that mOnStartRequestCalled/mOnStopRequestCalled is set just before calling the listener to avoid reentrancy issues r=mayhemer
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/80a8e4e5d1f4 Make the httpcancel unit test run in e10s r=mayhemer https://hg.mozilla.org/integration/autoland/rev/5505832bc5ed Add more tests for cancelling the channel r=mayhemer https://hg.mozilla.org/integration/autoland/rev/671660d801fe Ensure that mOnStartRequestCalled/mOnStopRequestCalled is set just before calling the listener to avoid reentrancy issues r=mayhemer https://hg.mozilla.org/integration/autoland/rev/52f7de8a8df0 Fix web-platform-test expectations r=mayhemer
Regressions: 1553582

Comment on attachment 9066169 [details]
Bug 1529911 - Ensure that mOnStartRequestCalled/mOnStopRequestCalled is set just before calling the listener to avoid reentrancy issues r=mayhemer

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Fix a medium-rate null-deref crash on Fennec, bug 1546191. (Regarding test uplift, this needs to be tested if the patch on its own breaks existing, unpatched tests or not)
  • User impact if declined: Occasional crash during normal browsing when using addons like uBlock or AdBlock
  • Fix Landed on Version: 69
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The patch is silently preventing break of nsIStreamListener contract (duplicate calls) only. There is no risk of hanging, indefinite loading or crashes.
  • String or UUID changes made by this patch:
Attachment #9066169 - Flags: approval-mozilla-esr68?
Crash Signature: [@ nsCORSListenerProxy::OnStopRequest]

Comment on attachment 9066169 [details]
Bug 1529911 - Ensure that mOnStartRequestCalled/mOnStopRequestCalled is set just before calling the listener to avoid reentrancy issues r=mayhemer

May help with a Fennec topcrash. Approved for Fennec 68.2b3.

Attachment #9066169 - Flags: approval-mozilla-esr68? → approval-mozilla-esr68+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: