Commit Graph

2668 Commits

Author SHA1 Message Date
Alexandru Michis
0e6553bcce Backed out 2 changesets (bug 1727829, bug 1728371) for causing bc failures in browser_ext_windows_create_tabId.js
Backed out changeset d92b9e0fba90 (bug 1728371)
Backed out changeset 91cd14a39722 (bug 1727829)
2021-09-01 01:31:05 +03:00
Luca Greco
a6564fdf2f Bug 1707305 - Fix intermittent browser_ext_incognito_views.js failures due to a race in the test case. r=mixedpuppy
browser_ext_incognito_views.js is failing intermittently in optimized builds due to a race between
a browserAction popup being opened as part of the test task and the related window being closed at the
end of the same test task.

This patch moves the responsability of closing the browserAction popup and the window to the chrome-privileged
part of the test, and makes sure that we are explicitly waiting for the browserAction popup to be opened and
loaded and then completely closed before removing the related Firefox window.

Differential Revision: https://phabricator.services.mozilla.com/D124047
2021-08-31 18:48:47 +00:00
Olli Pettay
dd2c5fd294 Bug 1728371 - browser/components/extensions/test/browser/browser_ext_tabs_onUpdated_filter.js should load a proper article when testing isArticle handling, r=rpl
It seems like the test relies on somewhat unexpected behavior which changes in https://bugzilla.mozilla.org/show_bug.cgi?id=1727829

Depends on D123827

Differential Revision: https://phabricator.services.mozilla.com/D124091
2021-08-31 18:10:00 +00:00
Tomislav Jovanovic
d325696b9f Bug 1708243 - Part 1: Stop using FrameData for windowId in the child process r=robwu
Also remove windowId getters from Context classes, as they're largely unused.

Differential Revision: https://phabricator.services.mozilla.com/D123220
2021-08-23 19:50:37 +00:00
Michelle Goossens
cde15eb082 Bug 1723574 - Enable mochitest-browser-chrome tests that no longer fail r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D123247
2021-08-23 12:45:31 +00:00
Michelle Goossens
015f8eeba2 Bug 1723574 - Migrate Windows 10 mochitest-browser-chrome suite from AWS to Azure r=jmaher,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D122511
2021-08-20 20:55:02 +00:00
Sebastian Hengst
87b9b73032 Bug 1726309 - don't skip tests on macOS 11 which actually pass. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D122938
2021-08-18 13:40:32 +00:00
Tomislav Jovanovic
66697d1a16 Bug 1713895 - Enable browser tests in Linux + ASAN + Fission configuration r=robwu
Also fix to actually call the correct requestLongerTimeout() method,
and shorten the timeout by half to see if That would be enough.

Differential Revision: https://phabricator.services.mozilla.com/D122052
2021-08-17 12:40:13 +00:00
Iulian Moraru
417f41a8ab Backed out changeset 01701527110f (bug 1713895) for causing bug 1725931. CLOSED TREE 2021-08-16 17:04:52 +03:00
Tomislav Jovanovic
1b66e3a0fc Bug 1713895 - Enable browser tests in Linux + ASAN + Fission configuration r=robwu
Also fix to actually call the correct requestLongerTimeout() method,
and shorten the timeout by half to see if That would be enough.

Differential Revision: https://phabricator.services.mozilla.com/D122052
2021-08-14 17:56:02 +00:00
Luca Greco
95ed217e5a Bug 1724205 - Fix issue on restoring private tabs discarded while being created. r=Gijs,mixedpuppy
When an extension does call tabs.discard earlier in the tab creation (e.g. when the extension calls
tabs.discard from inside a tabs.onUpdated listener), when the tab is activated (e.g. by selecting
the non-currently active lazified tab) Firefox is expected to restore it to the webpage url that
was being loaded.

This was already working as expected on non-private tabs, where the expected tab url was stored
in the TabStateCache as the userTypedValue (which seems to be part of a fix also related to
tabs.discard and landed in Firefox 62 from Bug 1422588).

It didn't work yet for private tabs, because for a private tab we are storing `{isPrivate: true}`
into the TabStateCache as soon as we are creating the tab, and so the change to SessionStore
resetBrowserToLazyState applied from Bug 1422588 had no effect for the private tabs
(due to the check for an existing cached entry for the same tab).

This patch applies a small change to ensure we are caching the userTypedValue set on the browser
element if one is not already stored in the TabStateCache, and adds an additional test case
to browser_ext_tabs_discarded.js which cover the expected behavior (and fails as expected
without a fix for the underlying issue).

Differential Revision: https://phabricator.services.mozilla.com/D122370
2021-08-13 17:27:32 +00:00
Ben Hearsum
d4084b4d3e Bug 1714200: skip failing mochitest-browser-chrome tests on M1 machines r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121221
2021-08-06 19:16:54 +00:00
Zibi Braniecki
26d2a63a39 Bug 1613705 - [localization] part17: Fix racy tests to wait for l10n frame. r=platform-i18n-reviewers,dminor,application-update-reviewers,nalexander
Depends on D116791

Differential Revision: https://phabricator.services.mozilla.com/D116792
2021-08-03 16:25:16 +00:00
Butkovits Atila
704b42a2a2 Backed out 19 changesets (bug 1613705) for causing build bustages complaining about Document.cpp. CLOSED TREE
Backed out changeset 2ee1091dd20d (bug 1613705)
Backed out changeset d377afc0b09f (bug 1613705)
Backed out changeset de9d4378f0ac (bug 1613705)
Backed out changeset 9843372abb6e (bug 1613705)
Backed out changeset 5fc5918e5905 (bug 1613705)
Backed out changeset a7aeae7afd49 (bug 1613705)
Backed out changeset 5d61617a5402 (bug 1613705)
Backed out changeset 85bf98573899 (bug 1613705)
Backed out changeset 175af8a1b8c2 (bug 1613705)
Backed out changeset 93fcb23d7898 (bug 1613705)
Backed out changeset 595529cd906f (bug 1613705)
Backed out changeset 9f3e2963d925 (bug 1613705)
Backed out changeset 442289058933 (bug 1613705)
Backed out changeset fc3b9acb0e81 (bug 1613705)
Backed out changeset 408983c64f7f (bug 1613705)
Backed out changeset 08b637fc3fcd (bug 1613705)
Backed out changeset 6ef0aafd2db0 (bug 1613705)
Backed out changeset d88b294e0a5e (bug 1613705)
Backed out changeset e6bebff87544 (bug 1613705)
2021-08-03 12:36:01 +03:00
Zibi Braniecki
55af7be6e7 Bug 1613705 - [localization] part17: Fix racy tests to wait for l10n frame. r=platform-i18n-reviewers,dminor,application-update-reviewers,nalexander
Depends on D116791

Differential Revision: https://phabricator.services.mozilla.com/D116792
2021-08-03 05:52:06 +00:00
Tomislav Jovanovic
e592a043b5 Bug 1722966 - Warn and ignore new MV3 keys in existing MV2 extensions r=mixedpuppy,robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D121242
2021-07-30 13:35:29 +00:00
Noemi Erli
2516c2bf21 Backed out changeset cbf0b6867654 (bug 1722966) for causing failures in test_ext_schemas_versioned.js CLOSED TREE 2021-07-30 04:01:36 +03:00
Tomislav Jovanovic
39416e9b77 Bug 1722966 - Warn and ignore new MV3 keys in existing MV2 extensions r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D121242
2021-07-29 23:50:29 +00:00
Iulian Moraru
8706cc45c3 Bug 1722749 - fix eslint failures. a=lint-fix CLOSED TREE 2021-07-29 11:26:56 +03:00
Alexandre Poirot
50b5212e5b Bug 1722749 - [devtools] Fix browser_ext_devtools_inspectedWindow_targetSwitch.js with server targets. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D121107
2021-07-29 07:41:49 +00:00
Christoph Kerschbaumer
5ee0a6a910 Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 19:16:16 +00:00
Sandor Molnar
5e383dfda4 Backed out changeset 7eb8945dd8e3 (bug 1719272) for causing bustages in gecko decision task. CLOSED TREE 2021-07-28 19:47:06 +03:00
Christoph Kerschbaumer
8fef13ba13 Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 16:08:07 +00:00
Andrew Osmond
c2bb6740bf Bug 1721945 - Move Linux mochitest-browser-chrome tests to Software WebRender. r=jmaher
autoland

--- target_task_set@27882dfe84fb
+++ target_task_set@ao_ci_linux_browser_chrome_swr
+test-linux1804-64-asan-qr/opt-mochitest-browser-chrome-swr-e10s
+test-linux1804-64-asan-qr/opt-mochitest-browser-chrome-swr-fis-e10s
-test-linux1804-64-asan/opt-mochitest-browser-chrome-e10s
-test-linux1804-64-asan/opt-mochitest-browser-chrome-fis-e10s
+test-linux1804-64-qr/debug-mochitest-browser-chrome-swr-e10s
+test-linux1804-64-qr/debug-mochitest-browser-chrome-swr-fis-e10s
+test-linux1804-64-qr/opt-mochitest-browser-chrome-swr-a11y-checks-e10s
+test-linux1804-64-qr/opt-mochitest-browser-chrome-swr-e10s
+test-linux1804-64-qr/opt-mochitest-browser-chrome-swr-fis-e10s
+test-linux1804-64-qr/opt-mochitest-devtools-chrome-a11y-checks-e10s
-test-linux1804-64/debug-mochitest-browser-chrome-e10s
-test-linux1804-64/debug-mochitest-browser-chrome-fis-e10s
-test-linux1804-64/opt-mochitest-browser-chrome-a11y-checks-e10s
-test-linux1804-64/opt-mochitest-browser-chrome-e10s
-test-linux1804-64/opt-mochitest-browser-chrome-fis-e10s

mozilla-central

--- target_task_set@27882dfe84fb
+++ target_task_set@ao_ci_linux_browser_chrome_swr
+test-linux1804-64-asan-qr/opt-mochitest-browser-chrome-swr-e10s
+test-linux1804-64-asan-qr/opt-mochitest-browser-chrome-swr-fis-e10s
-test-linux1804-64-asan/opt-mochitest-browser-chrome-e10s
-test-linux1804-64-asan/opt-mochitest-browser-chrome-fis-e10s
+test-linux1804-64-ccov-qr/opt-mochitest-browser-chrome-swr-e10s
-test-linux1804-64-ccov/opt-mochitest-browser-chrome-e10s
+test-linux1804-64-qr/debug-mochitest-browser-chrome-swr-e10s
+test-linux1804-64-qr/debug-mochitest-browser-chrome-swr-fis-e10s
+test-linux1804-64-shippable-qr/opt-mochitest-browser-chrome-swr-a11y-checks-e10s
+test-linux1804-64-shippable-qr/opt-mochitest-browser-chrome-swr-e10s
+test-linux1804-64-shippable-qr/opt-mochitest-browser-chrome-swr-fis-e10s
+test-linux1804-64-shippable-qr/opt-mochitest-devtools-chrome-a11y-checks-e10s
-test-linux1804-64-shippable/opt-mochitest-browser-chrome-a11y-checks-e10s
-test-linux1804-64-shippable/opt-mochitest-browser-chrome-e10s
-test-linux1804-64-shippable/opt-mochitest-browser-chrome-fis-e10s
-test-linux1804-64/debug-mochitest-browser-chrome-e10s
-test-linux1804-64/debug-mochitest-browser-chrome-fis-e10s

mozilla-release

--- target_task_set@27882dfe84fb
+++ target_task_set@ao_ci_linux_browser_chrome_swr
+test-linux1804-64-asan-qr/opt-mochitest-browser-chrome-swr-e10s
-test-linux1804-64-asan/opt-mochitest-browser-chrome-e10s
+test-linux1804-64-shippable-qr/opt-mochitest-browser-chrome-swr-e10s
-test-linux1804-64-shippable/opt-mochitest-browser-chrome-e10s
-test-linux1804-64/debug-mochitest-browser-chrome-e10s

Differential Revision: https://phabricator.services.mozilla.com/D120977
2021-07-27 19:22:36 +00:00
Tomislav Jovanovic
78839621be Bug 1717872 - Fix browser_ext_tabs_discard_reversed test with Fission and SHIP r=robwu
Since this is testing undesired but previously consistent behavior, I'm just
relaxing the (sometimes) expected results with Fission SHIP.

Differential Revision: https://phabricator.services.mozilla.com/D120798
2021-07-27 17:56:01 +00:00
Luca Greco
230cdc7b64 Bug 1722145 - extension devtools page and panels should not be enabled/disabled when unrelated optional permissions are granted/revoked. r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D120846
2021-07-27 13:56:36 +00:00
Nicolas Chevobbe
488883f936 Bug 1691575 - [devtools] Don't rely on webconsole fronts to fetch longStrings fullText. r=bomsy.
The Netmonitor used to call the WebConsoleFront `getString` method to get the full
text of a long string. This could make some test to fail with Fission and target
switching.
Since the webconsole actor is not even involved in the webconsole method, there's
no reason to keep using it. A similar function is added into a util file; the only
difference is that it doesn't cache the front it creates, which does not matter
as the netmonitor only calls this once and then put the full text in its redux
store.
This allows us to re-enable `browser_ext_devtools_network.js` with Fission.

Differential Revision: https://phabricator.services.mozilla.com/D120333
2021-07-20 15:20:11 +00:00
Nicolas Chevobbe
ac50af1b83 Bug 1691575 - [devtools] Don't explicitly destroy target front in head_devtools.js closeToolboxForTab. r=ochameau,rpl.
The helper is already calling `gDevTools.closeToolboxForTab`, which does take care
of destroying its associated descriptor.
This makes some extension test to pass with server side target switching enabled.

Differential Revision: https://phabricator.services.mozilla.com/D120332
2021-07-20 15:20:11 +00:00
Sam Foster
c920c4f341 Bug 1708008 - Remove browser's extension icon, always use extensionGeneric as default extension icon. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D119931
2021-07-19 16:58:11 +00:00
Luca Greco
78b6e7daa1 Bug 1570478 - Re-enabled browser_ext_devtools_network.js on all jobs besides fission. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D119115
2021-07-14 14:02:41 +00:00
Karim Rahal
ee161952b3 Bug 1690613 - Allow access to url/title/favIconUrl with extension host permission in Tab.convertFromSessionStoreClosedData; add unit test. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D119735
2021-07-13 18:07:43 +00:00
Harry Twyford
079579c0fb Bug 1717509 - Part 5 - Replace references to UnifiedComplete with references to UrlbarProviderPlaces. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D119310
2021-07-09 23:52:39 +00:00
Anny Gakhokidze
33a3d37016 Bug 1692749 - Skip superfluous about:blank load when duplicating a tab, r=kashav,extension-reviewers,kmag
When we duplicate a tab, we don't need to have about:blank load in it, because
we are going to use restore mechanism to copy data into the new tab. If we
don't skip the superfluous load, the restoring process might race with the
loading of about:blank, and sometimes we might try to destroy the
WindowGlobalChild actor just as SessionStore is trying to restore docshell
capabilities for that tab resulting in a rejected promise in _restoreHistory
and `_restoreHistoryComplete` not getting called.

Differential Revision: https://phabricator.services.mozilla.com/D119313
2021-07-08 22:31:52 +00:00
Mark Striemer
aefaad96af Bug 1666247 - Part 1: Add a simplify page checkbox r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D102356
2021-07-08 03:54:19 +00:00
Marian-Vasile Laza
f6e8cad90d Backed out changeset 41171ae56f5e (bug 1692749) for causing bc failures on browser_searchMode_sessionStore.js. CLOSED TREE 2021-07-08 02:37:31 +03:00
Anny Gakhokidze
fc48a089ea Bug 1692749 - Skip superfluous about:blank load when duplicating a tab, r=kashav,extension-reviewers,kmag
When we duplicate a tab, we don't need to have about:blank load in it, because
we are going to use restore mechanism to copy data into the new tab. If we
don't skip the superfluous load, the restoring process might race with the
loading of about:blank, and sometimes we might try to destroy the
WindowGlobalChild actor just as SessionStore is trying to restore docshell
capabilities for that tab resulting in a rejected promise in _restoreHistory
and `_restoreHistoryComplete` not getting called.

Differential Revision: https://phabricator.services.mozilla.com/D119313
2021-07-07 22:08:46 +00:00
Luca Greco
85fd966cc9 Bug 1642444 - Fix intermittent failures triggered by browser_ext_tabs_executeScript.js. r=mixedpuppy CLOSED TREE
I was unable to reproduce this locally, but looking to the logs from the failures tracked by this bug
I did notice this logged error which suspiciously point in the direction of a race between registering
a browser.runtime.onMessage listener and sending a message to that listner from the content script "script.js":

```
Console message: [JavaScript Error: "Error: Could not establish connection. Receiving end does not exist."
                 {file: "moz-extension://f0d0d3ec-6815-4d78-aa83-3516814353a2/script.js" line: 2}]
```

This patch just change the order of those two promise, making sure that the browser.runtime.onMessage will be registered by the time the content script is going to be executed.

Differential Revision: https://phabricator.services.mozilla.com/D119175
2021-07-07 18:42:18 +00:00
Narcis Beleuzu
992c31cd0e Backed out changeset 77f16565a279 (bug 1642444) for WP failures on iframe-cross-origin-print.sub.html CLOSED TREE 2021-07-07 23:15:46 +03:00
Luca Greco
bbdc4fc2e7 Bug 1642444 - Fix intermittent failures triggered by browser_ext_tabs_executeScript.js. r=mixedpuppy
I was unable to reproduce this locally, but looking to the logs from the failures tracked by this bug
I did notice this logged error which suspiciously point in the direction of a race between registering
a browser.runtime.onMessage listener and sending a message to that listner from the content script "script.js":

```
Console message: [JavaScript Error: "Error: Could not establish connection. Receiving end does not exist."
                 {file: "moz-extension://f0d0d3ec-6815-4d78-aa83-3516814353a2/script.js" line: 2}]
```

This patch just change the order of those two promise, making sure that the browser.runtime.onMessage will be registered by the time the content script is going to be executed.

Differential Revision: https://phabricator.services.mozilla.com/D119175
2021-07-07 18:42:18 +00:00
Shane Caraveo
f263dad260 Bug 1717006 support choice+string enumeration injection to fix access to menus.ContextType r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D118856
2021-06-26 15:07:37 +00:00
Sam Foster
d3fd7ac161 Bug 1699586 - De-duplicate default down arrow icons, rename as arrow-down.svg. r=harry,desktop-theme-reviewers,Itiel,extension-reviewers,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D117576
2021-06-25 00:03:21 +00:00
Jasleen
95e398ca26 Bug 1716642 - Replaced calls to GlobalManager.extensionMap.get() with WebExtensionPolicy.getByID(). r=Standard8,kmag,robwu
Differential Revision: https://phabricator.services.mozilla.com/D118407
2021-06-24 15:06:17 +00:00
Dorel Luca
6df8d65dc2 Backed out 6 changesets (bug 1699586) for Browser-chrome failures in browser/base/content/test/performance/browser_startup_images.js. CLOSED TREE
Backed out changeset 8d42246a3ee8 (bug 1699586)
Backed out changeset e492a3c410b1 (bug 1699586)
Backed out changeset 621c35b393a2 (bug 1699586)
Backed out changeset 91f70d7ff2b1 (bug 1699586)
Backed out changeset 25a77358d2bc (bug 1699586)
Backed out changeset 1d3c1fe20fe9 (bug 1699586)
2021-06-24 02:03:18 +03:00
Sam Foster
04400d2227 Bug 1699586 - De-duplicate default down arrow icons, rename as arrow-down.svg. r=harry,desktop-theme-reviewers,Itiel,extension-reviewers,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D117576
2021-06-23 18:49:42 +00:00
Kashav Madan
0795de2ffe Bug 1696815 - Handle browser.loadURI() calls that happen before the browser is fully restored, r=annyG,nika,zombie
Differential Revision: https://phabricator.services.mozilla.com/D118101
2021-06-23 16:15:51 +00:00
Alexandru Michis
8d8a297193 Backed out 2 changesets (bug 1696815) for causing bc failures in browser_ext_tabs_discard_reversed.js
CLOSED TREE

Backed out changeset b52bf621dbe4 (bug 1696815)
Backed out changeset ca4535b8d3aa (bug 1696815)
2021-06-23 02:09:45 +03:00
Kashav Madan
d6c17ef6fa Bug 1696815 - Handle browser.loadURI() calls that happen before the browser is fully restored, r=annyG,nika,zombie
Differential Revision: https://phabricator.services.mozilla.com/D118101
2021-06-22 19:58:42 +00:00
Anny Gakhokidze
2ff9c173d4 Bug 1682361 - Make test wait for SessionStore.getLastClosedTabCount to be correct to give it time to update, r=kashav,robwu
Differential Revision: https://phabricator.services.mozilla.com/D118423
2021-06-22 16:50:44 +00:00
Andrew Osmond
2132be6846 Bug 1715515 - Part 1. Switch Windows 32 and mingwclang tests to WebRender. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D117287
2021-06-21 12:46:32 +00:00
Brindusan Cristian
9b2519a5d8 Backed out 2 changesets (bug 1715515) for breaking the decision task.
CLOSED TREE

Backed out changeset 2e674ac39f8f (bug 1715515)
Backed out changeset 39580a1b4188 (bug 1715515)
2021-06-18 03:20:07 +03:00