support test configuration for mv3 worker
Categories
(WebExtensions :: General, task, P1)
Tracking
(firefox98 fixed)
Tracking | Status | |
---|---|---|
firefox98 | --- | fixed |
People
(Reporter: mixedpuppy, Assigned: rpl)
References
(Blocks 1 open bug)
Details
(Whiteboard: [mv3-m2])
Attachments
(3 files, 1 obsolete file)
Rather than write new tests specific to using the service worker background, we want to have a configuration ini file that will cause loadExtension to switch background pages to the service worker. We can cherry pick the tests that we will add into that ini file.
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
Provide a way to use service workers as the background script in existing tests.
Reporter | ||
Comment 2•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
This patch includes:
-
a new xpcshell-serviceworker.ini manifest, all tests included in this manifest will also run in the
"background service worker mode", initially including allalarms
API xpcshell tests -
some small changes to test_ext_alarms.js to temporarily skip test case that can't yet pass
while running in "background service worker mode" (until fixed in separate followups) -
some small tweaks to head_service_worker.js to avoid failure due to an existing ExtensionCommon
const bindings being redefined while running a test for the xpcshell-remote.ini manifest
Depends on D122536
Comment 6•3 years ago
|
||
Backed out for causing python failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/f1bf4a027490d20440a1cea3f86e397bdcfa1327
Failure log(s): https://treeherder.mozilla.org/logviewer?job_id=363758551&repo=autoland
Assignee | ||
Comment 7•3 years ago
|
||
(In reply to Norisz Fay [:noriszfay] from comment #6)
Backed out for causing python failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/f1bf4a027490d20440a1cea3f86e397bdcfa1327
Failure log(s): https://treeherder.mozilla.org/logviewer?job_id=363758551&repo=autoland
I see what is triggering that python test failure, and I was also able to reproduce it locally (unfortunately that python test was not part of the same set of tests I added a new test case to, and so it did not run in my push to try).
I've updated https://phabricator.services.mozilla.com/D134293 with a small trivial change that fix the failure, and I'll push it to autoland again in a few minutes.
Comment 9•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a78cf95d81c9
https://hg.mozilla.org/mozilla-central/rev/439ad9645e72
https://hg.mozilla.org/mozilla-central/rev/0c06f0e7e4a2
Description
•