Commit Graph

25365 Commits

Author SHA1 Message Date
Nika Layzell
e836c49649 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-10 14:31:16 +00:00
Gijs Kruitbosch
5d35161584 Bug 1724718 - do not set an image attribute for synced tabs items in the synced tabs menupanel unless there is an icon to show, r=markh
Depends on D122162

Differential Revision: https://phabricator.services.mozilla.com/D122163
2021-08-10 06:52:51 +00:00
Sam Foster
59ada6d164 Bug 1719463 - Part 12: Remove the Quit button(s) from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121812
2021-08-10 05:29:34 +00:00
Sam Foster
5ba216f667 Bug 1719463 - Part 11: Remove the Help button from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121811
2021-08-10 05:29:34 +00:00
Sam Foster
0c5b78ddbd Bug 1719463 - Part 10: Remove the devtools button from the pre-proton appMenu view. r=jdescottes,Gijs,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D121810
2021-08-10 05:29:33 +00:00
Sam Foster
1c42bbdae0 Bug 1719463 - Part 9: Remove the More items button and its sub-view from the pre-proton appMenu view. r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D121809
2021-08-10 05:29:33 +00:00
Sam Foster
5a362878fd Bug 1719463 - Part 8: Remove the File open, File save and Find buttons from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121808
2021-08-10 05:29:33 +00:00
Sam Foster
22012dcb8a Bug 1719463 - Part 7: Remove the Logins, Addons, Preferences and Print buttons from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121807
2021-08-10 05:29:32 +00:00
Sam Foster
69f8ee9b5a Bug 1719463 - Part 6: Remove the Library item from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121806
2021-08-10 05:29:32 +00:00
Sam Foster
b73056e0e1 Bug 1719463 - Part 5: Remove the edit and zoom items from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121805
2021-08-10 05:29:31 +00:00
Sam Foster
67826262ff Bug 1719463 - Part 4: Remove the new window and session restore items from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121804
2021-08-10 05:29:31 +00:00
Sam Foster
4c9b1e21f7 Bug 1719463 - Part 3: Remove the Protections Report items from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121803
2021-08-10 05:29:31 +00:00
Sam Foster
10c8de097c Bug 1719463 - Part 2: Remove the Fxa items from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121802
2021-08-10 05:29:30 +00:00
Sam Foster
3036a12f1b Bug 1719463 - Part 1: Remove the update banner items from the pre-proton appMenu view. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121801
2021-08-10 05:29:30 +00:00
Makoto Kato
6f9b5322ef Bug 1719110 - Don't use sync IPC to show suggestion by spellchecker. r=Gijs
CheckCurrentWord on content process causes sync IPC, so I would like to remove
this call on content process. New nsIEditorSpellChecker.suggest method can
avoid it.

Differential Revision: https://phabricator.services.mozilla.com/D119937
2021-08-10 03:55:25 +00:00
Harry Twyford
01ee18b1bf Bug 1721585 - Show tooltip for both reader-mode-button and reader-mode-button-icon. r=jaws
The bug was that the tooltip was only being shown for reader-mode-button-icon. The tooltip would show if you hovered right over the icon, and it would be undefined otherwise. This patch shows the tooltip regardless of the hover target. The other items on nodeToTooltipMap and nodeToShortcutMap are toolbarbuttons, so their icons are added in CSS and event handling always sees the parent node as the hover target. The reader mode button icon, however, is an <image> child of its parent. Either it or its parent could be hover targets. I considered added some handling in GetDynamicShortcutTooltipText along the lines of checking node.closest(reader-mode-button). I settled on just adding more entries to nodeToTooltipMap and nodeToShortcutMap since it's safer and easier to uplift.

Differential Revision: https://phabricator.services.mozilla.com/D122126
2021-08-09 19:08:33 +00:00
Tim Huang
9c2be62be0 Bug 1724677 - Add the missing colon symbol to the top_uri of the telemetry probe 'xfocsp-error-report'. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D122074
2021-08-09 09:38:26 +00:00
Marco Bonardo
e360fde801 Bug 1703475 - Wait for l10n in browser_bug432599.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D122001
2021-08-07 19:40:10 +00:00
Gijs Kruitbosch
6790a4c362 Bug 1718435 - fix clear recent history dialog when there are no open windows, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D121842
2021-08-06 22:18:35 +00:00
Brendan Dahl
9be2bd7c13 Bug 1724461 - Update pdf.js to version 2.11.91 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D122023
2021-08-06 22:15:48 +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
Butkovits Atila
0d09646c51 Backed out 8 changesets (bug 1650089) for causing Xpcshell failures on test_ext_redirects.js. CLOSED TREE
Backed out changeset ee763318d378 (bug 1650089)
Backed out changeset 24d7898ec4bd (bug 1650089)
Backed out changeset bcdd2f5c9840 (bug 1650089)
Backed out changeset 24a5bd7f97dd (bug 1650089)
Backed out changeset 1b8b4e939e82 (bug 1650089)
Backed out changeset a7a4f37a5d72 (bug 1650089)
Backed out changeset 78c012d4b071 (bug 1650089)
Backed out changeset e870508c1ddc (bug 1650089)
2021-08-06 04:35:52 +03:00
Nika Layzell
ee2b624f22 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-06 00:10:58 +00:00
Nika Layzell
161d654c8a 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-06 00:10:58 +00:00
Nika Layzell
7ee46273f6 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-06 00:10:57 +00:00
Nika Layzell
c1e1efbbcb 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-06 00:10:56 +00:00
Doug Thayer
422c3e0585 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
Kajal Sah
febad3b2f4 Bug 1722449 - Adds markup to the tab dialog box for screenshot component. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D120931
2021-08-05 17:43:00 +00:00
Gijs Kruitbosch
2f96ec197a Bug 1663571, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D89680
2021-08-05 17:03:34 +00:00
Jon Bauman
575d6f70ff Bug 1682995 - Enable AVIF support by default. r=jrmuizel,necko-reviewers,preferences-reviewers,valentin,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121819
2021-08-05 15:48:00 +00:00
Kagami Sascha Rosylight
7eb7a5a2ce Bug 1635018 - Part 3: Remove redundant dragexit listener from browser/base/content r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121191
2021-08-05 14:33:39 +00:00
Kagami Sascha Rosylight
40b97ae847 Bug 1635018 - Part 2: Replace dragexit with dragleave in browser/ r=Gijs,mak
Differential Revision: https://phabricator.services.mozilla.com/D121190
2021-08-05 14:33:39 +00:00
Mike Conley
3272561afd Bug 1721454 - Insert bookmarks before bottom Manage Bookmarks in Bookmarks Menu button. r=NeilDeakin
The CSS class panel-subview-footer-button was removed from the BMB_bookmarksShowAll
element in the Bookmarks Menu toolbar button, but this class is used by browser-places.js
to know where to insert the user's bookmarks in the structure of the menu.

Since this is the only menu that attachPlacesView attaches to, we can supply
the ID of the bottom Manage Bookmarks element, which will cause browserPlacesView.js
to insert the user's bookmarks above it.

Differential Revision: https://phabricator.services.mozilla.com/D121759
2021-08-04 18:53:45 +00:00
Barret Rennie
b59a93e36c 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
c8caa831d9 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
94a2b65fb1 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
999e347437 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
066abd285f 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
56bfde27c5 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
14d6febbd0 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
1da3a8940d 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
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
Noemi Erli
dec3cca55f 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
ab600b516f 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
c466912318 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
9fccd4021f 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
0c2e579295 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
7a5499a27f 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
f0a8082876 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
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