Port WebExtension tests to the new address bar implementation (quantumbar)
Categories
(WebExtensions :: General, task, P2)
Tracking
(firefox67 fixed)
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxsearch])
Attachments
(5 files)
As part of the new address bar implementation work (QuantumBar), we need to ensure that tests will continue to pass.
This bug is for porting the WebExtension tests in toolkit/components/extensions/ and browser/components/extensions/ to QuantumBar. Current known failures:
toolkit/components/extensions/test/browser/browser_ext_themes_autocomplete_popup.js | Uncaught exception - at chrome://mochitests/content/browser/toolkit/components/extensions/test/browser/browser_ext_themes_autocomplete_popup.js:39 - TypeError: gURLBar.controller.startSearch is not a function
browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js | Uncaught exception - at chrome://mochikit/content/tests/SimpleTest/EventUtils.js:507 - TypeError: aTarget.getBoundingClientRect is not a function
browser/components/extensions/test/browser/browser_ext_browserAction_telemetry.js | Uncaught exception - at chrome://mochikit/content/tests/SimpleTest/EventUtils.js:507 - TypeError: aTarget.getBoundingClientRect is not a function
browser/components/extensions/test/browser/browser_ext_commands_execute_browser_action.js | Uncaught exception - at chrome://mochikit/content/tests/SimpleTest/EventUtils.js:507 - TypeError: aTarget.getBoundingClientRect is not a function
browser/components/extensions/test/browser/browser_ext_incognito_views.js | Uncaught exception - at chrome://mochikit/content/tests/SimpleTest/EventUtils.js:507 - TypeError: aTarget.getBoundingClientRect is not a function
browser/components/extensions/test/browser/browser_ext_omnibox.js | Test timed out -
browser/components/extensions/test/browser/browser_ext_openPanel.js | Test timed out -
browser/components/extensions/test/browser/browser_ext_webNavigation_urlbar_transitions.js
Bug 1522489 & co are adding extra test helpers for the address bar, as well as porting existing tests, so this bug should wait until after that before porting.
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
I'm splitting the toolkit part out into bug 1530334. I've already got a few patches stacked for browser/ so lets get those landed here.
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
Depends on D21002
| Assignee | ||
Comment 4•6 years ago
|
||
Depends on D21003
| Assignee | ||
Comment 5•6 years ago
|
||
Depends on D21004
| Assignee | ||
Comment 6•6 years ago
|
||
The timer cancelling in UnifiedComplete.js seems to make the tests more stable with QuantumBar for some reason. Without it, some of the sub-tests would tend to time out. This might be better once we can implement a proper waitForResult() that doesn't have to wait for the entire search to be complete.
Depends on D21005
| Assignee | ||
Comment 7•6 years ago
|
||
Try push with QuantumBar off: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9897d52cb869817299a0e3e5c2090e896ee75b0c&selectedJob=230291068
(the test-verify failures seem to be pre-existing issues).
Try push with Quantumbar on: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ef627f4951e900af9a9bb5785121f602595e809b
| Assignee | ||
Comment 8•6 years ago
|
||
Looks like I missed browser_ext_webNavigation_urlbar_transitions.js, but I'll deal with that in a follow-up.
| Assignee | ||
Comment 9•6 years ago
|
||
Note: the failures from the "Quantumbar on" try push are not to do with this patch but are in other directories.
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a8641920e299
https://hg.mozilla.org/mozilla-central/rev/3049be83e02d
https://hg.mozilla.org/mozilla-central/rev/c944e14b8944
https://hg.mozilla.org/mozilla-central/rev/ff76466ee236
https://hg.mozilla.org/mozilla-central/rev/bacf3a98194b
Comment 12•6 years ago
|
||
From my understanding this issue is related to the addon tests. Is there any need of manual QA here? If not can you please mark it as "qe-verify- "?
| Assignee | ||
Comment 13•6 years ago
|
||
This was about tests but also about getting it into QuantumBar. I don't think we need additional testing here as we've got the test coverage and there's extra PI testing happening for QuantumBar as well.
Updated•6 years ago
|
Description
•