Commit Graph

25332 Commits

Author SHA1 Message Date
Barret Rennie
0b01559886 Bug 1722834 - Implement telemetry for captive portal detection and login r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D121665
2021-08-04 15:25:14 +00:00
Alexandru Michis
5ca72bfc53 Backed out 7 changesets (bug 1650089) for causing xpcshell failures in test_ext_cookieBehaviors.js
Backed out changeset 336d6eb2fc15 (bug 1650089)
Backed out changeset 283ba29cdbeb (bug 1650089)
Backed out changeset c470e4c65117 (bug 1650089)
Backed out changeset 8fc2f428694d (bug 1650089)
Backed out changeset 37e5185dae14 (bug 1650089)
Backed out changeset a26afdc56d91 (bug 1650089)
Backed out changeset 32e207558b3d (bug 1650089)
2021-08-04 12:32:07 +03:00
Nika Layzell
86eb6e4a0b Bug 1650089 - Part 6: Don't set maychangeremoteness on non-e10s browsers, r=Gijs
This change makes all browsers which were not created with an initial `remote`
attribute within a non-`useRemoteTabs` window be unable to process-switch, as
otherwise we may attempt to switch loads into a content process. We need to
keep process switching enabled for explicitly-remote browsers loaded in a
non-`useRemoteTabs` window as it's relied on for tests and can lead to
assertion failures due to loading remote content in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D121285
2021-08-03 18:17:56 +00:00
Nika Layzell
219db8be70 Bug 1650089 - Part 5: Skip the unnecessary about:blank load when loading view-source for a document, r=Gijs
This load was causing a process switch after the changes in this patch.
This caused the view-source load to also process-switch back when loaded
and confused some view-source machinery. The load isn't necessary, and
if skipped the process switch due to navigation will not occur.

Differential Revision: https://phabricator.services.mozilla.com/D120736
2021-08-03 18:17:55 +00:00
Nika Layzell
424c2aeb15 Bug 1650089 - Part 4: Update various tests with new expectations, r=annyG,kmag
The changes in the previous part had a few behaviour changes which are visible
in tests, including cross-origin iframes with sandboxed origins now loading
remotely, and process selection for chrome-triggered null principal loads
behaving differently. In general this caused more process switches.

Differential Revision: https://phabricator.services.mozilla.com/D120674
2021-08-03 18:17:55 +00:00
Nika Layzell
3d749ece7f Bug 1650089 - Part 1: Add a remoteTypeOverride option for about:blank loads triggered by chrome, r=annyG,kmag
After the changes in this bug, about:blank loads triggered by chrome will
finish in a "web" content process, as they have an untrusted null principal
without a precursor. In a few places throughout the codebase, however, we
perform about:blank loads with the explicit expectation that they do not change
processes. This new remoteTypeOverride option allows the intended final process
to be explicitly specified in this situation.

For security & simplicity reasons, this new attribute is limited to only be
usable on system-principal triggered loads of about:blank in toplevel browsing
contexts.

Differential Revision: https://phabricator.services.mozilla.com/D120671
2021-08-03 18:17:54 +00:00
Gijs Kruitbosch
1e4a561ac0 Bug 1721627 - crash on requests to non-existing chrome: and resource: files on infra, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D120557
2021-08-03 16:46:34 +00:00
Kajal Sah
bcfbf03dc8 Bug 1714336 - Removes the disableHighlight option for doorhangers. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D120260
2021-08-03 16:26:28 +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
Noemi Erli
6cd9318b66 Backed out 7 changesets (bug 1650089) foe causing bustages in ProcessIsolation.cpp
Backed out changeset 4e73beb8872c (bug 1650089)
Backed out changeset 092451e931ce (bug 1650089)
Backed out changeset ca9ba60010c6 (bug 1650089)
Backed out changeset ee61b69ba556 (bug 1650089)
Backed out changeset 091c4efa36a7 (bug 1650089)
Backed out changeset dbdee40ef8a0 (bug 1650089)
Backed out changeset 54d12a4333a0 (bug 1650089)
2021-08-03 20:15:54 +03:00
Nika Layzell
53b9fff29c Bug 1650089 - Part 6: Don't set maychangeremoteness on non-e10s browsers, r=Gijs
This change makes all browsers which were not created with an initial `remote`
attribute within a non-`useRemoteTabs` window be unable to process-switch, as
otherwise we may attempt to switch loads into a content process. We need to
keep process switching enabled for explicitly-remote browsers loaded in a
non-`useRemoteTabs` window as it's relied on for tests and can lead to
assertion failures due to loading remote content in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D121285
2021-08-03 15:39:35 +00:00
Nika Layzell
bdc23e63e1 Bug 1650089 - Part 5: Skip the unnecessary about:blank load when loading view-source for a document, r=Gijs
This load was causing a process switch after the changes in this patch.
This caused the view-source load to also process-switch back when loaded
and confused some view-source machinery. The load isn't necessary, and
if skipped the process switch due to navigation will not occur.

Differential Revision: https://phabricator.services.mozilla.com/D120736
2021-08-03 15:39:35 +00:00
Nika Layzell
58889881ec Bug 1650089 - Part 4: Update various tests with new expectations, r=annyG,kmag
The changes in the previous part had a few behaviour changes which are visible
in tests, including cross-origin iframes with sandboxed origins now loading
remotely, and process selection for chrome-triggered null principal loads
behaving differently. In general this caused more process switches.

Differential Revision: https://phabricator.services.mozilla.com/D120674
2021-08-03 15:39:34 +00:00
Nika Layzell
78129583eb Bug 1650089 - Part 1: Add a remoteTypeOverride option for about:blank loads triggered by chrome, r=annyG,kmag
After the changes in this bug, about:blank loads triggered by chrome will
finish in a "web" content process, as they have an untrusted null principal
without a precursor. In a few places throughout the codebase, however, we
perform about:blank loads with the explicit expectation that they do not change
processes. This new remoteTypeOverride option allows the intended final process
to be explicitly specified in this situation.

For security & simplicity reasons, this new attribute is limited to only be
usable on system-principal triggered loads of about:blank in toplevel browsing
contexts.

Differential Revision: https://phabricator.services.mozilla.com/D120671
2021-08-03 15:39:33 +00:00
Nika Layzell
29295703f8 Bug 1715773 - Remove preloaded newtab process selection logic, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D121423
2021-08-03 15:17:07 +00:00
Nicholas Fason
0c0043f901 Bug 1702708 - Hyphenate places context menu attributes r=mak
Differential Revision: https://phabricator.services.mozilla.com/D121583
2021-08-03 14:03:03 +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
Dorel Luca
24feffa455 Backed out 2 changesets (bug 1721627) for Talos failures. CLOSED TREE
Backed out changeset bc5e08d27347 (bug 1721627)
Backed out changeset a670f5679e0b (bug 1721627)
2021-08-03 03:57:21 +03:00
Greg Tatum
b6867c40f2 Bug 1722087 - Save 1.4M in omnijar by removing unused theme images; r=desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D120765
2021-08-02 17:03:02 +00:00
Gijs Kruitbosch
50385d763f Bug 1721627 - crash on requests to non-existing chrome: and resource: files on infra, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D120557
2021-08-02 16:55:35 +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
Gijs Kruitbosch
4882e4a471 Bug 1721654 - show 'Not Secure' chiclet for certificate errors, r=pbz
This also causes nssFailure2 network errors to be treated as certificate errors
in the identity block, and adjusts tests for this new reality. It also readds
a test to test a non-cert-related network error to ensure that case doesn't
lose coverage.

Differential Revision: https://phabricator.services.mozilla.com/D121176
2021-08-02 15:35:10 +00:00
Gijs Kruitbosch
e166a98fe3 Bug 1720262 - improve spacing in the window-modal clear recent history dialog, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D120985
2021-08-02 14:09:38 +00:00
Gijs Kruitbosch
a31bc9af69 Bug 1721466 - add title to clear recent history dialog when opened as a subdialog in the browser window, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D120984
2021-08-02 14:09:37 +00:00
Sandor Molnar
b03d68bff4 Backed out changeset f6b029cbc49f (bug 1721654) for causing bc failures in browser_navigation_failures. CLOSED TREE 2021-08-02 17:22:00 +03:00
Gijs Kruitbosch
c88bc927dc Bug 1721654 - show 'Not Secure' chiclet for certificate errors, r=pbz
This also causes nssFailure2 network errors to be treated as certificate errors
in the identity block, and adjusts tests for this new reality. It also readds
a test to test a non-cert-related network error to ensure that case doesn't
lose coverage.

Differential Revision: https://phabricator.services.mozilla.com/D121176
2021-08-02 13:20:27 +00:00
Alexandre Lissy
2789e5cf91 Bug 1723098 - Enable buildid mismatch tests on Windows/Debug r=jld
Differential Revision: https://phabricator.services.mozilla.com/D121348
2021-07-30 19:58:53 +00:00
Dave Townsend
11364207e3 Bug 1722891: Create a component to intelligently select snapshots. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D121186
2021-07-30 14:19:12 +00:00
Antonin LOUBIERE
3d7b528d22 Bug 1629205 - Context menu action show number of tabs affected by close. r=flod,dao
The context menu show the number of tabs affected by the close => Close N tabs.

Differential Revision: https://phabricator.services.mozilla.com/D120986
2021-07-30 11:51:32 +00:00
Gijs Kruitbosch
3dadc4fd12 Bug 1721651 - show a warning triangle favicon on certificate error pages, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D121151
2021-07-29 15:39:56 +00:00
Butkovits Atila
0a944c245f Backed out changeset c7a8038bc730 (bug 1721651) for causing Xpcshell failures at test_bookmarks_html.js. CLOSED TREE 2021-07-29 15:50:30 +03:00
Gijs Kruitbosch
a5a6696839 Bug 1721651 - show a warning triangle favicon on certificate error pages, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D121151
2021-07-29 11:40:23 +00:00
Dave Townsend
0555901c81 Bug 1722680 - Store and retrieve pagedata for snapshots. r=mossop
Depends on D120498

Differential Revision: https://phabricator.services.mozilla.com/D120848
2021-07-29 08:09:29 +00:00
Karl Tomlinson
893f19930e Bug 1720643 perform getUserMedia Permissions Policy checks even when "media.navigator.permission.disabled" is set r=jib
"media.getusermedia.microphone.deny" and "media.getusermedia.camera.deny" now
override "media.navigator.permission.disabled".

User permission checks are removed because they are repeated in the app.

Differential Revision: https://phabricator.services.mozilla.com/D120065
2021-07-29 04:49:57 +00:00
Dorel Luca
f8c23e7e7f Backed out 5 changesets (bug 1650089) for Browser-chrome failures in browser/components/originattributes/test/browser/browser_firstPartyIsolation_aboutPages.js. CLOSED TREE
Backed out changeset 26ddad079ad3 (bug 1650089)
Backed out changeset 5ae2b2641484 (bug 1650089)
Backed out changeset c5d267a1907c (bug 1650089)
Backed out changeset d9eeca699dec (bug 1650089)
Backed out changeset 8bb303f6831a (bug 1650089)
2021-07-29 05:53:31 +03:00
Nika Layzell
8b2533fa16 Bug 1650089 - Part 5: Skip the unnecessary about:blank load when loading view-source for a document, r=Gijs
This load was causing a process switch after the changes in this patch.
This caused the view-source load to also process-switch back when loaded
and confused some view-source machinery. The load isn't necessary, and
if skipped the process switch due to navigation will not occur.

Differential Revision: https://phabricator.services.mozilla.com/D120736
2021-07-29 01:40:21 +00:00
Nika Layzell
2dabc0ed14 Bug 1650089 - Part 4: Update various tests with new expectations, r=annyG,kmag
The changes in the previous part had a few behaviour changes which are visible
in tests, including cross-origin iframes with sandboxed origins now loading
remotely, and process selection for chrome-triggered null principal loads
behaving differently. In general this caused more process switches.

Differential Revision: https://phabricator.services.mozilla.com/D120674
2021-07-29 01:40:20 +00:00
Nika Layzell
d1a6052ca7 Bug 1650089 - Part 1: Add a remoteTypeOverride option for about:blank loads triggered by chrome, r=annyG,kmag
After the changes in this bug, about:blank loads triggered by chrome will
finish in a "web" content process, as they have an untrusted null principal
without a precursor. In a few places throughout the codebase, however, we
perform about:blank loads with the explicit expectation that they do not change
processes. This new remoteTypeOverride option allows the intended final process
to be explicitly specified in this situation.

For security & simplicity reasons, this new attribute is limited to only be
usable on system-principal triggered loads of about:blank in toplevel browsing
contexts.

Differential Revision: https://phabricator.services.mozilla.com/D120671
2021-07-29 01:40:19 +00:00
Molly Howell
25a4ed28ec Bug 1698030 - Remove a redundant warning icon. r=preferences-reviewers,Gijs
The only difference between the icon that was removed and the one kept is that
the removed one has a default fill color in the SVG. This meant everywhere the
icon was replaced, we have to make sure that a fill color is defined in CSS.
In a few cases, that necessitated adding a new class. In a few others, colors
were already being defined for the icon, so there was no need to add any here.

Differential Revision: https://phabricator.services.mozilla.com/D121030
2021-07-28 23:55:51 +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
Neil Deakin
b143d2943a Bug 1714337, remove separate high and non-high notification box references, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D121083
2021-07-28 18:24:42 +00:00
Cosmin Sabou
7e5aea8bff Backed out 2 changesets (bug 1722275, bug 1722680) for snapshots related xpcshell and bc failures. CLOSED TREE
Backed out changeset 62ed0dc702e1 (bug 1722275)
Backed out changeset 70d2848c396a (bug 1722680)
2021-07-28 20:51:36 +03:00
Mark Banner
7c6988fbe9 Bug 1722275 - Add a basic framework for collecting page data from loaded pages. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D120825
2021-07-28 17:14:34 +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
Neil Deakin
6aaacf96f0 Bug 1714079, send confirmation does not appear when sending a tab when the account button is in the overflow menu, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D120845
2021-07-28 09:13:38 +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
Karl Tomlinson
dc489fa47e Bug 1715419 use a speaker icon for selectAudioOutput() prompt anchor r=fluent-reviewers,johannh,flod
Differential Revision: https://phabricator.services.mozilla.com/D117261
2021-07-27 06:57:04 +00:00
Gijs Kruitbosch
6c30054cef Bug 1721655 - stop using yellow 'caution' borders on network error pages, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D120686
2021-07-26 20:02:43 +00:00