Commit graph

3071 commits

Author SHA1 Message Date
Daisuke Akatsuka
fc88113055 Bug 1678623: Apply bookmark-title-changed event. r=mak
Depends on D103147

Differential Revision: https://phabricator.services.mozilla.com/D103148
2021-10-01 12:01:29 +00:00
Tomislav Jovanovic
0b1c358ede Bug 1708243 - Part 3: Use actor messaging for tabs.detectLanguage, stop loading MessageChannel.jsm, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D126623
2021-09-29 16:52:59 +00:00
Michelle Goossens
c159e29e05 Bug 1727943 - Part 2: Migrate mochitest, reftest and crashtest Windows 10 ccov suites from AWS to Azure r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D125350
2021-09-28 15:27:39 +00:00
Rob Wu
f3cf76cb48 Bug 1641735 - Code cleanup of some extension tests r=geckoview-reviewers,agi,mixedpuppy
In the past, add_task was generator-based, and tests were automatically
rewritten to use Promises. Some tests have weird constructs such as the
use of Promise.all+await or still using generators. These have been
fixed.

Some tests request the tabs permission without actually needing it.

This patch does not affect the behavior of the tests.

Differential Revision: https://phabricator.services.mozilla.com/D124089
2021-09-27 13:34:55 +00:00
Csoregi Natalia
5232f16dc4 Backed out changeset 5523334143d9 (bug 1719938) for failures on browser_parsable_css.js. CLOSED TREE 2021-09-21 02:39:55 +03:00
lamoure6
5c23ae0374 Bug 1719938 - Removed remaining (non-negated) -moz-proton media queries. r=mhowell,mtigley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125328
2021-09-20 22:40:42 +00:00
Csoregi Natalia
592741b7e0 Backed out changeset 0711ae54877b (bug 1719938) for bustages on media_features.rs. CLOSED TREE 2021-09-20 23:29:05 +03:00
lamoure6
a4e720c69d Bug 1719938 - Removed remaining (non-negated) -moz-proton media queries. r=mhowell,mtigley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125328
2021-09-20 19:21:50 +00:00
Nika Layzell
6deb2cb2b7 Bug 1727158 - Part 1: Fix tests which will fail when processCount.webIsolated is set to 4, r=annyG,extension-reviewers,rpl
Differential Revision: https://phabricator.services.mozilla.com/D125292
2021-09-14 00:55:04 +00:00
Geoff Brown
019c21f335 Bug 1730213 - Explicitly skip tests under browser/ on android; r=ahal
These tests are excluded from android test runs in moz.build. Including
an explicit annotation in each manifest avoids scheduling confusion.
browser-chrome and plain-chrome tests in browser/ are of no concern,
since those test types are never scheduled on android.

Differential Revision: https://phabricator.services.mozilla.com/D125266
2021-09-13 15:22:27 +00:00
Tomislav Jovanovic
78c2b432df Bug 1729395 - Regression test for sendMessage after a popup is closed! r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D125203
2021-09-11 17:44:42 +00:00
Mark Banner
14aedbb785 Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 12:09:49 +00:00
Michelle Goossens
d835eb1793 Bug 1727925 - Part 3: Migrate six more windows10-32 test suites from AWS to Azure r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D124192
2021-09-10 11:51:00 +00:00
Noemi Erli
e0f4b9b5fe Backed out 2 changesets (bug 1729460) for causing newtab failures CLOSED TREE
Backed out changeset 5617839462be (bug 1729460)
Backed out changeset 6d52fde3ee0e (bug 1729460)
2021-09-10 13:14:12 +03:00
Mark Banner
3cfdb5c41a Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 09:38:42 +00:00
Olli Pettay
c2f214f2df Bug 1718532, don't try to create tabId if the relevant window is already closing, r=rpl
The leak I can reproduce locally somewhat often is coming from
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/browser/components/extensions/test/browser/browser_ext_windows_create_cookieStoreId.js#308,319-321
When adopting a tab to a new window, there is internally a frameloader swap.
The initial frameloader is loading about:blank and after the old window has started to close
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/browser/actors/AboutReaderParent.jsm#156 triggers a call to
extension code where getId is called. The failure becomes almost perma-fail with bug 1727829.

Will push this with bug 1727829 to tryserver.

Differential Revision: https://phabricator.services.mozilla.com/D124958
2021-09-08 21:29:54 +00:00
Olli Pettay
ec02240044 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-09-08 21:29:54 +00:00
Ben Hearsum
4ca3a60f1d Bug 1714200: annotate tests that fail in regular suites but pass when run in isolation. r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124907
2021-09-08 18:14:00 +00:00
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