Closed Bug 1910243 Opened 1 year ago Closed 1 year ago

Improve test coverage for ChannelWrapper + GC

Categories

(WebExtensions :: Request Handling, task, P2)

task

Tracking

(firefox-esr128 fixed, firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox-esr128 --- fixed
firefox130 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

Details

(Whiteboard: [addons-jira])

Attachments

(2 files)

There have been crashes caused by the use of ChannelWrapper when the underlying channel has been closed / garbage-collected.
In the past, bug 1470746, more recently bug 1910114.

While these bugs have been fixed, they did not include automated test coverage.
I'm going to attach a patch with improved test coverage, as well as fixups to issues discovered from the added test coverage.

I'm actually running into a case that the fixups in this patch would seem to handle. I quite consistently crash on pages like https://imdb.com. Attaching the crash stack I'm experiencing.

Crash Signature: [@ mozilla::extensions::URLInfo::Host ]

(In reply to Erich Gubler [:ErichDonGubler] from comment #2)

I'm actually running into a case that the fixups in this patch would seem to handle. I quite consistently crash on pages like https://imdb.com. Attaching the crash stack I'm experiencing.

Those were the crashes tracked in bug 1910114 and duplicates.

Crash Signature: [@ mozilla::extensions::URLInfo::Host ]
Severity: -- → N/A
Priority: -- → P2
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/2ea9ec869d89 Add test coverage for ChannelWrapper + fix minor issues r=rpl
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Attachment #9417245 - Flags: approval-mozilla-esr128?

esr128 Uplift Approval Request

  • User impact if declined: Potentially susceptible to crashes due to lack of test coverage
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: No
  • Risk associated with taking this patch: None
  • Explanation of risk level: Test-only + fixups to fix issues uncovered by tests
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9417245 - Flags: approval-mozilla-esr128? → approval-mozilla-esr128+
Attachment #9417245 - Flags: approval-mozilla-esr128+ → approval-mozilla-esr128-
Attachment #9417245 - Flags: approval-mozilla-esr128- → approval-mozilla-esr128+
Regressions: 1911941
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: