Closed Bug 1576288 Opened 5 years ago Closed 5 years ago

Fix dom/tests/mochitest/storageevent/ tests to work with Fission

Categories

(Core :: Storage: localStorage & sessionStorage, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla71
Fission Milestone M4
Tracking Status
firefox71 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

These tests compute the origin of their parent, in order to pass in as the target origin argument to postMessage. They do this with SpecialPowers.wrap(parent.window.location); which does not work with Fission enabled, because the parent is often in another process. Every web page in this directory is only ever has a single origin as a parent, so we can hard code it as an argument to the first call to the postMsg() helper method.

These tests compute the origin of their parent, in order to pass in as
the target origin argument to postMessage. They do this with
SpecialPowers.wrap(parent.window.location); which does not work with
Fission enabled, because the parent is often in another process. Every
web page in this directory is only ever has a single origin as a
parent, so we can hard code it as an argument to the first call to the
postMsg() helper method.

Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d1615ca96d8f Fix dom/tests/mochitest/storageevent/ tests to work with Fission. r=asuth
Fission Milestone: --- → M4
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: