6
edits
(Some formatting changes and how to check for fission in browser mochitests) |
(Adding information about how to run cross-origin mochitests.) |
||
| Line 3: | Line 3: | ||
==Mochitests-Fission== | ==Mochitests-Fission== | ||
The Mochitests that are not working with Fission enabled have been annotated with either "skip-if = fission" or "fail-if = fission". Both of these cases need to be fixed. | The Mochitests that are not working with Fission enabled have been annotated with either "skip-if = fission" or "fail-if = fission". Both of these cases need to be fixed. | ||
==Cross-Origin Mochitests== | |||
Cross-origin (or "xorigin") mode allows for mochitests to be run in a cross origin iframe. Used in conjunction with fission mode, xorigin mode can be used validate site isolation in Firefox. | |||
When cross-origin mode is enabled, the toplevel window runs at "http://mochi.xorigin-test:8888" and individual mochitests are loaded in a cross origin iframe running at "http://mochi.test:8888". | |||
===Enabling cross-origin mode=== | |||
Xorigin mode can be enabled by a flag or environment variable: | |||
<nowiki>./mach mochitest --enable-xorigin-tests [path to test] | |||
MOZ_XORIGIN_MOCHITEST=1 ./mach mochitest [path to test]</nowiki> | |||
Failing or hanging tests should be annotated at the manifest level using the "xorigin" keyword, for example: | |||
<nowiki>skip-if = xorigin | |||
fail-if = xorigin</nowiki> | |||
===Running cross-origin mochitests in Treeherder=== | |||
TODO | |||
* currently supported for mochitest-plain jobs | |||
* will enable on tier2 to start | |||
==General Tips== | ==General Tips== | ||
edits