Commit graph

5229 commits

Author SHA1 Message Date
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
Mike Conley
45a48a96c5 Bug 1693092 - Update strings for Safe Mode menu items. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D106812
2021-03-01 18:41:52 +00:00
Mike Conley
61c60021f1 Bug 1695721 - Make sure Safe Mode AppMenu menu item string gets updated when in Safe Mode. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D106810
2021-03-01 18:41:51 +00:00
Emilio Cobos Álvarez
915f02d25c Bug 1694951 - Remove printing.trigger telemetry. r=jwatt,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106465
2021-03-01 11:36:43 +00:00
Patrick Storz
5fd2488fce Bug 360332 - Enable modifiers / middle click for context search. r=Standard8
Allows to perform the search in a new foreground/background tab or
a new window using modifiers or middle mouse button.

Introduces a certain level of consistency with other entries in
the context menu, like navigation and "view image".

Differential Revision: https://phabricator.services.mozilla.com/D103354
2021-02-26 17:14:05 +00:00
Neil Deakin
f66ba76299 Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105750
2021-02-26 13:43:10 +00:00
Mike Conley
d1abcdce20 Bug 1693851 - Fix some variety of tests so that they pass with and without Proton AppMenu enabled. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D106381
2021-02-25 23:43:08 +00:00
Florian Quèze
9beeba38b3 Bug 1690368 - call updateFxaToolbarMenu before focusing the urlbar causes a style flush, r=markh.
Differential Revision: https://phabricator.services.mozilla.com/D106500
2021-02-25 22:49:29 +00:00
Cosmin Sabou
253c39a17a Backed out changeset 36b76c196497 (bug 1691499) for bc failures on browser_decoderDoctor.js. CLOSED TREE 2021-02-25 21:47:25 +02:00
Neil Deakin
86db2fec08 Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105750
2021-02-25 12:00:39 +00:00
Jared Wein
50acbfa8b6 Bug 1691488 - Remove the 'No thanks' button from the URI fixup infobar r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D105579
2021-02-24 15:20:09 +00:00
Jared Wein
fcc697ff62 Bug 1691488 - Change infobar button text to sentence case. r=fluent-reviewers,flod,Gijs
The "Preferences" -> "Settings" changes have been reverted so this can land now. Those string changes will be handled in bug 1694511.

Differential Revision: https://phabricator.services.mozilla.com/D105577
2021-02-24 15:20:08 +00:00
Emma Malysz
38dfb59850 Bug 1690131: create proton-specific fxa menu r=mconley,markh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D104937
2021-02-23 15:37:12 +00:00
Mike Conley
d4da30ccf4 Bug 1690573 - Migrate the report-site-issue UI access point to the Help menu. r=denschub,mixedpuppy,fluent-reviewers,webcompat-reviewers,flod
We're not 100% certain if Help is the right spot for this, but we're going
to give it a shot and see. If it turns out it _is_ the right spot, we'll
probably do something a little more self-contained, and less hacky.

I'm leaving the old .properties file just in case we change our mind here.
Yes, we'll want to port to Fluent anyways, but our ultimate choice of where
we put this thing is probably going to dictate where the string lives.

Differential Revision: https://phabricator.services.mozilla.com/D104832
2021-02-23 00:11:05 +00:00
Micah Tigley
7ebb03087c Bug 1690575 - Clarify toolbar context menu items. r=Gijs,fluent-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D104862
2021-02-22 21:41:29 +00:00
Kate Hudson
5ed61e3b12 Bug 1692230 - Move nimbus code to its own directory r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D105567
2021-02-20 02:51:12 +00:00
Julian Descottes
5e9590e26a Bug 1693626 - [devtools] Remote debugging visual cue for devtools should update dynamically r=nchevobbe
It should also not be displayed for the browser toolbox.

I messed up strings with the initial landing:
- wrong event name used in browser.js (no dynamic update)
- wrong flag passed from BT launcher (stripes show up when BT is used)

Sorry about that

Differential Revision: https://phabricator.services.mozilla.com/D105666
2021-02-19 06:34:59 +00:00
Sean Feng
93ae22d5b9 Bug 1692350 - Implement a telemetry probe to collect page load data for documents that use lazyload r=emilio,chutten
Differential Revision: https://phabricator.services.mozilla.com/D104912
2021-02-17 22:25:02 +00:00
Mihai Alexandru Michis
8d0efc214f Backed out changeset 6a0dcd8f4e3e (bug 1692350) for causing crashes in WindowContext.
CLOSED TREE
2021-02-17 21:02:59 +02:00
Sean Feng
7917a71b50 Bug 1692350 - Implement a telemetry probe to collect page load data for documents that use lazyload r=emilio,chutten
Differential Revision: https://phabricator.services.mozilla.com/D104912
2021-02-17 17:17:52 +00:00
Gijs Kruitbosch
9fd23bd547 Bug 1693282 - stop the proton main and tabs prefs toggling the same attribute, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D105461
2021-02-17 16:34:02 +00:00
Punam Dahiya
ad41a3d038 Bug 1688802 - Remove focus from the address bar in about:welcome r=dao,k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D103004
2021-02-17 06:25:09 +00:00
Julian Descottes
2b6f6c8116 Bug 1659129 - [devtools] Show a visual cue in the URL bar when DevTools has an opened socked r=ochameau,nchevobbe,freddyb
Differential Revision: https://phabricator.services.mozilla.com/D103776
2021-02-17 00:44:58 +00:00
Butkovits Atila
2b85c45f31 Backed out changeset 1a5c5bb711b4 (bug 1688802) for causing failures on browser_aboutwelcome_skipFocus.js. CLOSED TREE 2021-02-17 00:12:16 +02:00
Punam Dahiya
ae7e45b76f Bug 1688802 - Remove focus from the address bar in about:welcome r=dao,k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D103004
2021-02-16 21:07:41 +00:00
Butkovits Atila
79ddd88798 Backed out changeset 9e3376ccd1da (bug 1659129) for causing failure on test_devtools_socket_status.js. CLOSED TREE 2021-02-16 22:57:30 +02:00
Julian Descottes
daf94640ae Bug 1659129 - [devtools] Show a visual cue in the URL bar when DevTools has an opened socked r=ochameau,nchevobbe,freddyb
Differential Revision: https://phabricator.services.mozilla.com/D103776
2021-02-16 20:00:18 +00:00
Emma Malysz
9258625209 Bug 1690858: add safemode toggle to help menu r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D104747
2021-02-16 16:51:45 +00:00
james
16060f0cc4 Bug 1691274 - Use DOM hidden property methods instead of attribute methods in browser/ directory. r=ntim,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D104552
2021-02-13 23:33:51 +00:00