Closed Bug 1635925 Opened 4 years ago Closed 3 years ago

Add test for runtime.connect / onConnect from/to moz-extension:-frame

Categories

(WebExtensions :: General, task, P1)

task

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
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: nobody → tomica
Severity: -- → N/A
Priority: -- → P1
Pushed by tjovanovic@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/32ec0376e307
Add test for connect/onConnect to and from extension iframes r=robwu

The leave-open keyword is there and there is no activity for 6 months.
:zombie, maybe it's time to close this bug?

Flags: needinfo?(tomica)

The leave-open keyword is there and there is no activity for 6 months.
:zombie, maybe it's time to close this bug?

Flags: needinfo?(tomica)
Pushed by tjovanovic@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6e81bb1b5c7b
Add test for moz-extension iframe messaging r=robwu
Flags: needinfo?(tomica)
Keywords: leave-open
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
Whiteboard: [addons-jira]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: