Add test for runtime.connect / onConnect from/to moz-extension:-frame
Categories
(WebExtensions :: General, task, P1)
Tracking
(firefox95 fixed)
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: robwu, Assigned: zombie)
References
Details
(Whiteboard: [addons-jira])
Attachments
(2 files)
We have test coverage for runtime.connect
/onConnect
to and from different moz-extension documents (and even from content scripts in a frame), but none for runtime.connect
from/to extension pages that are embedded in a moz-extension:
-document.
We should add such a test. The expectation is that extensions can reach other moz-extension:-contexts with runtime.connect
.
Note that we do already have a similar test for the runtime.sendMessage
/ onMessage
APIs in test_ext_runtime_sendMessage_self.js
: from parent to frame and from frame to parent.
There is also an unspecified/untested case of what would/should happen of a (currently unprivileged) moz-extension:
page in a web page. Currently such documents do not receive events. If we host the document in the extension process, then we could consider increasing the privilege level of the available permissions. If that happens, then runtime.onConnect
(and runtime.onMessage
) would be triggered in response to runtime.connect
(respectively runtime.sendMessage
) calls.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Followup test https://phabricator.services.mozilla.com/D74573#2270671
Comment 5•5 years ago
|
||
bugherder |
Comment 6•4 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:zombie, maybe it's time to close this bug?
Comment 7•4 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:zombie, maybe it's time to close this bug?
Assignee | ||
Comment 8•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Comment 10•3 years ago
|
||
bugherder |
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Description
•