Commit graph

5257 commits

Author SHA1 Message Date
Mark Striemer
0201d62878 Bug 1702330 - Graduate infobars to main proton pref r=jaws,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D110638
2021-04-08 22:25:04 +00:00
Zibi Braniecki
00a0221bcd Bug 1694661 - Update tab switch checkbox labels for content prompts, r=Gijs,fluent-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D107571
2021-04-07 11:06:50 +00:00
Neil Deakin
4ca286a995 Bug 1701668, remove onBeforeLinkTraversal implementations and handle links in docshell, r=kmag,mixedpuppy,geckoview-reviewers,agi
This also fixes links in top or in-process subframes and out-of-process subframes in extensions sidebars and panels so that they open in new tabs.

Differential Revision: https://phabricator.services.mozilla.com/D110102
2021-04-06 18:52:46 +00:00
Mark Striemer
355b6522d8 Bug 1690333 - Proton infobar styles r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D104585
2021-03-29 02:38:56 +00:00
Butkovits Atila
e3f13578b0 Backed out changeset 1890d2ac5a43 (bug 1690333) for causing failures on test_bug509732.xhtml. CLOSED TREE 2021-03-29 02:56:02 +03:00
Mark Striemer
bc875387b4 Bug 1690333 - Proton infobar styles r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D104585
2021-03-28 19:04:34 +00:00
Butkovits Atila
71d46d5a75 Backed out 2 changesets (bug 1690333, bug 1699250) for causing failures on test_bug509732.xhtml. CLOSED TREE
Backed out changeset dcba2814dbc4 (bug 1690333)
Backed out changeset ae3a0e6dde00 (bug 1699250)
2021-03-28 21:16:58 +03:00
Mark Striemer
5711775e12 Bug 1690333 - Proton infobar styles r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D104585
2021-03-28 17:02:21 +00:00
Cosmin Sabou
4618d0a607 Backed out 2 changesets (bug 1690333, bug 1699250) for mochitest failures on test_notificationbox.xhtml.
Backed out changeset d6780d34ca05 (bug 1690333)
Backed out changeset 50cc5db86f1e (bug 1699250)
2021-03-27 23:58:04 +02:00
Mark Striemer
ce67801c64 Bug 1690333 - Proton infobar styles r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D104585
2021-03-27 21:02:51 +00:00
Jared Wein
bf9bf52bb8 Bug 1701003 - Move proton tabs to the proton general pref. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D109764
2021-03-26 22:55:21 +00:00
Jared Wein
bb408b4167 Bug 1670972 - Fix default value preference type mismatches with calls to defineLazyPreferenceGetter. r=vbudhram,markh,tjr
Differential Revision: https://phabricator.services.mozilla.com/D93400
2021-03-25 20:15:39 +00:00
Gijs Kruitbosch
9e20a27ad0 Bug 1694511 - update references inside the prefs/about:addons to Preferences/Options to use 'Settings' instead, r=preferences-reviewers,fluent-reviewers,jaws,robwu
Differential Revision: https://phabricator.services.mozilla.com/D106199
2021-03-25 19:11:47 +00:00
Doug Thayer
6f388475d6 Bug 1694811 - Ensure tabmodalprompts also hide PanelUI notification panels r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D109528
2021-03-25 17:54:10 +00:00
Doug Thayer
6e2e64a6e2 Bug 1694811 - Hide notifications for gDialogBox modals r=Gijs
Fairly self-explanatory. This just extends the tab-based modal popup hiding
behavior to modals going through gDialogBox.

Differential Revision: https://phabricator.services.mozilla.com/D109527
2021-03-25 17:54:10 +00:00
Doug Thayer
c8daa84209 Bug 1694811 - Extend existing popup hiding logic to PanelUI r=Gijs
This effectively mirrors the panel hiding logic we use to hide
PopupNotifications panels so that we also hide notifications attached to the
hamburger menu. This will cover alerts and other similar modals originating
from content.

Differential Revision: https://phabricator.services.mozilla.com/D109526
2021-03-25 17:54:10 +00:00
Emma Malysz
5688cf327e Bug 1699473: bold first sentence in disk storage infobar r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D109678
2021-03-25 15:42:00 +00:00
Csoregi Natalia
a60c66265b Backed out changeset 816285ac4de4 (bug 1694511) for failures on browser_experimental_features.js. CLOSED TREE 2021-03-24 15:15:27 +02:00
Gijs Kruitbosch
65f48ef9b0 Bug 1694511 - update references inside the prefs/about:addons to Preferences/Options to use 'Settings' instead, r=preferences-reviewers,fluent-reviewers,jaws,robwu
Differential Revision: https://phabricator.services.mozilla.com/D106199
2021-03-24 11:27:27 +00:00
Scott
1e202523c4 Bug 1693376 - Move save to Pocket to the toolbar. r=Gijs,fluent-reviewers,gvn,flod
Differential Revision: https://phabricator.services.mozilla.com/D107744
2021-03-23 20:06:03 +00:00
Mike Conley
42f43cbb1f Bug 1698063 - Update confirmation hint string for bookmarking. r=flod
Not porting to Fluent here because updating ConfirmationHint to use Fluent
strings for all hints is out of scope.

Differential Revision: https://phabricator.services.mozilla.com/D109378
2021-03-22 17:49:44 +00:00
Scott
fc1515023f Bug 1699516 - Change Pocket main.js file name to pktUI.js r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D109096
2021-03-19 20:18:15 +00:00
Gijs Kruitbosch
f7401d75b1 Bug 1695442 - raise minimized or occluded windows when showing a window-modal prompt, r=pbz
This ensures the modal is visible. I'm deliberately not doing this for content or tab-modal
prompts, where there wasn't a history of doing this and where I think it would open up
dos-style annoyance vectors.

Differential Revision: https://phabricator.services.mozilla.com/D109058
2021-03-19 16:27:49 +00:00
Andrew McCreight
c684b1b069 Bug 1699614 - Work around document use-after-unlink in Proton pref callback. r=Gijs
Due to some kind of weirdness, you can end up with a weakly held preference
callback being run even after the DOM objects it holds references to are unlinked
by the cycle collector, which can cause crashes. This patch works around
that by taking advantage of the fact that we now drop weak references to DOM
objects when they are unlinked to change the preference callback closure to
instead hold a weak reference.

Differential Revision: https://phabricator.services.mozilla.com/D109031
2021-03-19 15:12:11 +00:00
Mark Striemer
82cccfaf64 Bug 1697788 - Move popup blocked infobar to informational r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108814
2021-03-18 16:21:54 +00:00
Tim Nguyen
e0e0e47210 Bug 1699083 - Remove blocklist_favicon.png and use blocked.svg instead. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108760
2021-03-17 19:03:51 +00:00
Emma Malysz
030b47279a Bug 1691464, remove screenshot feature from page action panel and move to dedicated widget r=fluent-reviewers,sfoster,flod
The widget is only added if screenshots are enabled (similar behavior to the fxa
toolbar button).
Button must take into account onLocationChange due to the fact that screenshots
extension is not available on about pages.
Adds a test for the disabled state, with more screenshot tests intended in the future

Differential Revision: https://phabricator.services.mozilla.com/D107727
2021-03-17 20:19:23 +00:00
Cosmin Sabou
dc2b83b3e4 Backed out changeset 294ee16f9e45 (bug 1699083) for gtest failures on WebRtcIceConnectTest. CLOSED TREE 2021-03-17 22:22:24 +02:00
Tim Nguyen
f26c169fa0 Bug 1699083 - Remove blocklist_favicon.png and use blocked.svg instead. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108760
2021-03-17 19:03:51 +00:00
Mark Banner
0dedfd16f1 Bug 1474941 - Remove the browser.search.context.loadInBackground preference from the WebExtension search flow. r=mixedpuppy
The preference shouldn't affect WebExtensions as it is non-obvious (WebExtensions might not be using a context menu so a user wouldn't expect that preference to affect them), and WebExtensions can choose themselves if a tab needs to be in the background or not.

This also removes it from the command line search flow where it had no effect anyway.

Differential Revision: https://phabricator.services.mozilla.com/D107870
2021-03-17 14:13:49 +00:00
Tim Nguyen
9bee18195e Bug 1698210 - Simplify RTL icon animations and multi-transform patterns with CSS individual transforms. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108280
2021-03-14 15:51:09 +00:00
Paul Zuehlcke
5d2d56e536 Bug 1693621 - Only clear temporary block permissions on user reload. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D106496
2021-03-12 10:06:15 +00:00
Gijs Kruitbosch
ea276e4ba5 Bug 1696793 - improve close and multiple dialog handling for window-modal dialogs, r=mtigley
The html:dialog event can respond to [esc] keypresses itself. In that case,
we need to close the embedded dialog ourselves, or the UI ends up broken.

We also need to make sure that if e.g. the opening multiple pages from bookmarks warning is up,
and then the user tries to quit or in some other way opens another dialog, things don't break.
This also applies to tests that repeatedly invoke dialogs, where we need to wait for both
the SubDialog instance and the wrapping html:dialog element to agree on their state.

Differential Revision: https://phabricator.services.mozilla.com/D107463
2021-03-11 11:34:35 +00:00
Erica Wright
314b24db0d Bug 1682676 - Position infobars inside of the chrome. r=mstriemer
Depends on D106012

Differential Revision: https://phabricator.services.mozilla.com/D104741
2021-03-10 19:22:56 +00:00
Emilio Cobos Álvarez
2e965c1195 Bug 1695323 - Update canvas permission panel strings. r=mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D107053
2021-03-09 18:50:10 +00:00
Nika Layzell
aa17bf647b Bug 1209947 - Part 1: Skip more of XULBrowserWindow.onLocationChange for subframes, r=Gijs
With the changes in this patch stack, it will become more common for frontend
code to receive onLocationChange notifications for subframes, as we will now
correctly report events for oop subframes, and will also deliver notifications
for the first document loaded in subframes in order to update the current remote
URI on CanonicalBrowsingContext.

This change makes more of the callbacks fired by onLocationChange be guarded by
the isTopLevel check, including setting the "URL" crash annotation and updating
the macOS touchbar, which should hopefully both fix existing latent bugs, and
ensure that these issues don't occur with the more frequent onLocationChange
callbacks.

Differential Revision: https://phabricator.services.mozilla.com/D105554
2021-03-09 15:29:39 +00:00
Marco Bonardo
2b99ea2e97 Bug 1696752 - Allow to Add Web Engines from the urlbar contextual menu. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107370
2021-03-09 13:44:03 +00:00
Csoregi Natalia
fa029583ab Backed out changeset 0a8323260fa7 (bug 1696752) for build bustages on page_action_menu_add_search_engine_2.xml CLOSED TREE 2021-03-09 14:13:06 +02:00
Marco Bonardo
46c22b83c6 Bug 1696752 - Allow to Add Web Engines from the urlbar contextual menu. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107370
2021-03-09 11:19:40 +00:00
Noemi Erli
aca0968430 Backed out changeset 8bd015dd9182 (bug 1696793) for causing failures in browser_confirm_unblock_download.js CLOSED TREE 2021-03-09 13:45:50 +02:00
Gijs Kruitbosch
82bee9c9a8 Bug 1696793 - fix window modal dialog handling of html:dialog closing separately, r=mtigley
The html:dialog event can respond to [esc] keypresses itself. In that case,
we need to close the embedded dialog ourselves, or the UI ends up broken.

Differential Revision: https://phabricator.services.mozilla.com/D107463
2021-03-09 10:26:14 +00:00
Mike Conley
389534e150 Bug 1696418 - Don't highlight the default action for more permission panels when Proton is enabled. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D107505
2021-03-09 03:06:51 +00:00
Gijs Kruitbosch
0285465585 Bug 1693277 - fix positioning of content dialogs irrespective of size, r=mtigley
This commit uses CSS grid layout to position content modal prompts, and to get the
requisite 5% top and bottom margins in a way that doesn't require JS to update,
and adapts to resizing and things like the find bar and devtools opening. To make
this work right it also removes the 5px negative top margin for these dialogs.

Then this commit adds some logic to SubDialog.jsm to support this behaviour.
Prior to this change, SubDialog.jsm sets height/width on the dialogs that go
through it, except if they pass sizeto=available (used by the print dialog).

This new sizeTo value similarly avoids all the complex sizing logic - but also
avoids the print logic of having an aspect ratio to maintain when the window
changes size. We use the content size it determines to set the height of the
dialog (a grid row): either 90% (so there's 5% above and 5% below) or the
document height, whichever is smaller.

The next commit will use this setup to deal with the problem of variable length
content inside the dialog that we're trying to show.

Differential Revision: https://phabricator.services.mozilla.com/D107110
2021-03-05 10:50:52 +00:00
Alexandru Michis
55e499c3cf Backed out 3 changesets (bug 1693277) for causing bc failures in browser_modal_resize.js
CLOSED TREE

Backed out changeset 0580aaec32a0 (bug 1693277)
Backed out changeset be8108cd9820 (bug 1693277)
Backed out changeset 8b9986d057d7 (bug 1693277)
2021-03-05 03:58:03 +02:00
Gijs Kruitbosch
d81adf55b0 Bug 1693277 - fix positioning of content dialogs irrespective of size, r=mtigley
This commit uses CSS grid layout to position content modal prompts, and to get the
requisite 5% top and bottom margins in a way that doesn't require JS to update,
and adapts to resizing and things like the find bar and devtools opening. To make
this work right it also removes the 5px negative top margin for these dialogs.

Then this commit adds some logic to SubDialog.jsm to support this behaviour.
Prior to this change, SubDialog.jsm sets height/width on the dialogs that go
through it, except if they pass sizeto=available (used by the print dialog).

This new sizeTo value similarly avoids all the complex sizing logic - but also
avoids the print logic of having an aspect ratio to maintain when the window
changes size. We use the content size it determines to set the height of the
dialog (a grid row): either 90% (so there's 5% above and 5% below) or the
document height, whichever is smaller.

The next commit will use this setup to deal with the problem of variable length
content inside the dialog that we're trying to show.

Differential Revision: https://phabricator.services.mozilla.com/D107110
2021-03-05 00:07:36 +00:00
Jared Wein
c6f4ebbf27 Bug 1696322 - Move the formatted tab and bookmarks tooltip behind its own Proton pref. r=bwinton
Differential Revision: https://phabricator.services.mozilla.com/D107171
2021-03-04 18:03:58 +00:00
Horst
e8193fff6f Bug 1685883 - fix javascript error when marionette is disabled r=whimboo,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104526
2021-03-04 11:56:55 +00:00
Emilio Cobos Álvarez
abf614f578 Bug 1695085 - Update IndexedDB permission prompt. r=mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D107060
2021-03-03 20:17:22 +00:00
Sam Foster
0f8cdcd29b Bug 1686521 - Proton: Show FxA button based on signed-in state. r=markh,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D105702
2021-03-03 00:01:12 +00:00
Neil Deakin
fb6f781783 Bug 1670808, if session history in parent is available, use that to get the items for the back forward menu instead. Otherwise, don't cancel showing the context menu if only one history item is available, r=Gijs
FillHistoryMenu was returning early and preventing the context menu from opening when there is only one history item. For long-presses, the menu typically doesn't open until after the updateSessionHistory callback was finished so the menu shows properly, but context menus have no delay. However, when browsingContext.sessionHistory is available, we can get the history without callbacks.

Also, combine the two similar session history tests into one more complete test.

Differential Revision: https://phabricator.services.mozilla.com/D106694
2021-03-02 10:59:27 +00:00