Commit graph

3053 commits

Author SHA1 Message Date
Tomislav Jovanovic
4d1c2087ec Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-31 23:15:17 +00:00
Alexandru Michis
b11743462d 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
criss
d1e9a72deb Backed out changeset a269440d7e21 (bug 1708243) for causing failures on mochitest/test_ext_tabs_create.html. CLOSED TREE 2021-08-31 23:22:19 +03:00
Luca Greco
63182d5582 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
Tomislav Jovanovic
c8825f7521 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-31 18:48:17 +00:00
Olli Pettay
36509162ab 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
Csoregi Natalia
ac7da6c730 Backed out changeset f966b7898d9f (bug 1708243) for geckoview failures. CLOSED TREE 2021-08-31 18:40:20 +03:00
Tomislav Jovanovic
fdf59b2ca2 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-31 11:46:11 +00:00
Marian-Vasile Laza
d4a1825562 Backed out changeset 1395c54325a7 (bug 1708243) for causing gv-junit failures. CLOSED TREE 2021-08-31 06:53:43 +03:00
Tomislav Jovanovic
596f309c03 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-31 00:21:38 +00:00
Marian-Vasile Laza
e12ef6952e Backed out changeset 38cfb452cecf (bug 1708243) for causing mochitest failures on test_ext_tabs_sendMessage.html. CLOSED TREE 2021-08-31 02:40:51 +03:00
Tomislav Jovanovic
45dbaa8381 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-30 22:54:47 +00:00
Narcis Beleuzu
4981262857 Backed out changeset e49874b751fa (bug 1708243) for bc failures on browser_shims.js . CLOSED TREE 2021-08-25 19:23:32 +03:00
Tomislav Jovanovic
091713a1b5 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-25 12:00:34 +00:00
Tomislav Jovanovic
b0fa4043e9 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
c7d34da2f9 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
d192833f8d 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
2fc5ede43e 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
823ebdc2e4 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
726deb7bac Backed out changeset 01701527110f (bug 1713895) for causing bug 1725931. CLOSED TREE 2021-08-16 17:04:52 +03:00
Tomislav Jovanovic
597513d3cb 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
87647faa54 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
aecb82dbfc 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
Doug Thayer
f907b5b4a4 Bug 1546847 - Backed out bug 1546847 and related revs r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121898
2021-08-05 18:34:56 +00:00
Zibi Braniecki
7b320ed8a6 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
949da905e7 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
0bf7c83400 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
Doug Thayer
0f70c8373a Bug 1546847 - Cache tab icons in worker to avoid serialization r=kashav
Read this as a first step. It's the easiest first step I could think of to
both reduce the quantity of stuff we serialize and ship to the worker as
well as to spread it out over multiple messages.

Anyway, the motivation is pretty simple. Taking a look at a session store
file on disk, a giant chunk of it is base64 encoded tab icons. I suspect
that in many cases these are not distinct. For my session store it's about
90% the same repeated searchfox icon over and over.

So what I did was I changed the "image" property of the tab to be a reference
into a deduplicated cache of objects (in this case strings). Whenever the tab
icon changes, we drop a reference to its cache entry and add a reference to a
new or existing entry. Each time a cache entry is added or deleted, we send
a message to the worker to update its own copy of the cache. This does
represent a memory hit, since the cache is maintained on the worker as well as
the main thread, but I think it's going to be minor, and it's only in one
process. Given the deduplication there is the possibility of an overall
reduction in memory use? This needs more testing.

Once it comes time to write the session data to disk, we send the payload with
"image" entries referencing IDs in the cache. When the worker gets the message
to write, it adds its internal cache to the object, which it then serializes
to JSON and writes to disk as usual.

When reading the data off disk, we take the cache items that had been written
and we slowly populate the worker's internal cache with them (to not overload
during startup with a giant message). And when populating tab icons of tabs in
the tab strip, we look up the image in the main thread copy of the cache. Also,
if we cannot find the entry, we assume that the image is just the raw
representation of the image. This ensures that we interpret a sessionstore file
from prior to this patch correctly.

Additionally, since we have the cache duplicated on both threads, if the worker
gets terminated for some reason, we rehydrate it with the snapshot of the cache
from when we noticed it was a problem.

I suspect some tests will need to be updated, or maybe many tests. However I
wanted to throw this patch past someone with more knowledge of the session
store's inner workings before throwing a bunch of time at that.

Differential Revision: https://phabricator.services.mozilla.com/D114196
2021-08-02 16:17:30 +00:00
Tomislav Jovanovic
ee6142b0f6 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
ab1876ed75 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
e74d4da7bd 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
54c940eefe Bug 1722749 - fix eslint failures. a=lint-fix CLOSED TREE 2021-07-29 11:26:56 +03:00
Alexandre Poirot
14bc195364 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
4a6250387f 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
68cdec0548 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
bb716f0701 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
4ec6495b90 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
e195306d90 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
2c7f95fb7c 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
f928f3a26d 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
f0ad2e5ccb 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
3834704712 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
ea8a4e4c3e 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
307e859b0e 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
8ee5ae1678 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
0ace0ca0d9 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
222e434cd2 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
6068d86025 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
60b3217bb3 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
33d252a3a5 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