moduleURI vs module for the location of the jsm for JSWindowActors (vs. legacy actors) is a footgun
Categories
(Toolkit :: General, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox72 | --- | fixed |
People
(Reporter: Gijs, Assigned: Gijs)
References
Details
Attachments
(1 file)
Legacy actors use a module property. "New", fission-compatible actors use a moduleURI property. If a moduleURI property is missing, no clear error messages appear in the browser console. This has repeatedly bitten people trying to convert legacy actors to fission, including me.
We should make ChromeUtils.registerWindowActor throw an exception with a clear error message (perhaps even including "did you specify 'module' instead of 'moduleURI' ?") for a module where it gets a WindowActorSidedOptions without a moduleURI property, and ensure it appears in the browser console. AFAICT it makes no sense to specify either the child or parent side without a module to load.
Comment 1•6 years ago
|
||
Gijs, looks like this needs to be in the backlog for toolkit:general, can you give it a priority? Is there anyone in particular to need-info to make this actionable?
| Assignee | ||
Comment 2•6 years ago
|
||
I think this isn't super hard. I think we'd want to do something at https://searchfox.org/mozilla-central/rev/8b7aa8af652f87d39349067a5bc9c0256bf6dedc/dom/ipc/JSWindowActorService.cpp#114-120 if mParent or mChild was passed but without the module URI. We can use the aRv ErrorResult to return an error.
Leaving self-needinfo to look at this, hopefully tomorrow.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 3•6 years ago
|
||
Comment 5•6 years ago
|
||
| bugherder | ||
Comment 6•6 years ago
|
||
Retroactively moving fixed bugs whose summaries mention "Fission" (or other Fission-related keywords) but are not assigned to a Fission Milestone to an appropriate Fission Milestone.
This will generate a lot of bugmail, so you can filter your bugmail for the following UUID and delete them en masse:
0ee3c76a-bc79-4eb2-8d12-05dc0b68e732
Description
•