Closed Bug 1530608 Opened 6 years ago Closed 6 years ago

Add a test for same-compartment content globals

Categories

(Core :: XPConnect, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(3 files)

Bug 1517694 added a test verifying system windows, sandboxes, JSMs are in the same compartment. We should do something similar for content globals to catch potential regressions in this area. We want to test at least iframes, frames, and dynamically generated iframe elements.

Priority: -- → P2
Attachment #9047453 - Attachment description: Bug 1530608 part 3 - Add a test verifying same-origin globals are same-compartment. r?bzbarsky! → Bug 1530608 part 3 - Add tests verifying same-origin globals are same-compartment. r?bzbarsky!
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/18e50a1447d2
part 1 - Add an isSameCompartment JS testing function. r=luke
https://hg.mozilla.org/integration/autoland/rev/23671e7b0bb7
part 2 - Use the isSameCompartment JS testing function in test_sharedChromeCompartment.html. r=bzbarsky
https://hg.mozilla.org/integration/autoland/rev/25cfc0e03717
part 3 - Add tests verifying same-origin globals are same-compartment. r=bzbarsky
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: