Add MozDocumentMatcher string to WindowActorChildOptions
Categories
(Core :: DOM: Content Processes, enhancement)
Tracking
()
People
(Reporter: mconley, Unassigned)
References
(Blocks 1 open bug)
Details
The JS Window Actor stuff that's been added recently is great, but one snag we've hit while trying to port some of our pre-existing MessageManager-based actors over is that our old mechanism allowed us to only load the child actors for particular pages that matched an optional "MozDocumentMatcher" string.
This is similar to how WebExtension content scripts can be scoped to particular pages: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns
Here's an example of where we use the MessageManager-based matching string:
which is interpreted by ActorManagerChild here:
Would it be possible to add a similar matching mechanism to the new JS Window Actors?
Reporter | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
I'm doing the same thing as you mention[1], but they aren't ready to review. :)
Description
•