Commit graph

753 commits

Author SHA1 Message Date
Shane Hughes
aa61f3c263 Bug 1658103 - Fix lazy translation of tab context menu. r=dao
The tab context menu is designed to not be translated until the user
interacts with the tab strip in some way. However, the tab context menu
is now shared between the tab strip and the "all tabs" panel. So, it's
possible to open the tab context menu without interacting with the tab
strip. This results in the context menu being opened before it is
translated, so the user sees an essentially blank menu. Resolve this
by adding to the all tabs panel an extra initialization step that will
automatically translate the tab context menu.

Differential Revision: https://phabricator.services.mozilla.com/D142850
2022-04-15 05:06:47 +00:00
Gijs Kruitbosch
e9ba135d9f Bug 1758250 - deal with non-existing url values from session restore so they don't brick other functionality, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D142947
2022-04-12 10:39:03 +00:00
Tyler Kabaker
0736faf568 Bug 1134363 - Have Reader Mode use the same tab title as the normal browser view. r=niklas,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D142281
2022-04-11 20:24:25 +00:00
Nika Layzell
be0eb28428 Bug 1728332 - Part 1: Predict remote type when inserting restored tabs, r=Gijs
This should mostly avoid the issue where newly created pinned tabs when
restoring a session are first created in the shared web process, and
migrated into the correct process upon navigating. I also added
remoteType prediction to the undoCloseTab and duplicateTab codepaths
to avoid unnecessary process changes there as well.

Differential Revision: https://phabricator.services.mozilla.com/D141146
2022-03-25 22:25:55 +00:00
Cristian Tuns
7c41058507 Backed out changeset 30fa07c96caa (bug 1728332) for causing mochitest failures on browser_tabs_in_urlbar.js CLOSED TREE 2022-03-21 19:02:16 -04:00
Nika Layzell
697281862d Bug 1728332 - Predict remote type when inserting restored tabs, r=Gijs
This should mostly avoid the issue where newly created pinned tabs when
restoring a session are first created in the shared web process, and
migrated into the correct process upon navigating. I also added
remoteType prediction to the undoCloseTab and duplicateTab codepaths
to avoid unnecessary process changes there as well.

Differential Revision: https://phabricator.services.mozilla.com/D141146
2022-03-21 21:44:14 +00:00
Oriol Brufau
cb7ddecf63 Bug 1759299 - Make replaceTabsWithWindow handle adoptTab failures. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D140924
2022-03-21 10:19:07 +00:00
Niklas Baumgardner
8df33a3b36 Bug 1755748 - Keep PiP tabs in active state. r=mconley,dthayer
Differential Revision: https://phabricator.services.mozilla.com/D140394
2022-03-10 23:33:26 +00:00
Emilio Cobos Álvarez
7bb49e4226 Bug 1752663 - Don't override tabpanel background unless forcing colors. r=dao
Blaming this code goes all the way through interesting history. This
code was originally made conditional in bug 1379587. At that time, the
use_system_colors pref wasn't true on Windows by default (it is now).

I think we only really want to do this if we're forcing content colors.
Otherwise we really want to match the new tab page colors, and the
use_system_colors pref doesn't change that.

The code in the condition is not perfect, mind you. In particular, it
should deal with document_color_use = 1 + high contrast theme, plus the
canvas color should react to the content color-scheme, not the browser
color-scheme. I thought of how to best fix that, and I think probably a
new system color for chrome to expose this makes sense, or alternatively
a ChromeUtils API or something, because otherwise reverse-engineering
everything that goes on in layout/style/PreferenceSheet.cpp is going to
be a huge mess.

But I'd rather do that in a follow-up bug, since it's nothing new and
this should fix Windows' default behavior.

Differential Revision: https://phabricator.services.mozilla.com/D137377
2022-02-27 04:27:53 +00:00
Gijs Kruitbosch
814f569cac Bug 1753414 - stop switching tabs with the context menu open, r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D138972
2022-02-22 10:06:37 +00:00
Sarah Clements
bdd15984a3 Bug 1747430 - remove tabIndicatorReplacesIcon in browser tabs css file r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137775
2022-02-11 16:19:52 +00:00
Cosmin Sabou
33e28b3002 Backed out changeset e00a268f35f3 (bug 1564738) for causing Bug 1753106 as requested by emk. 2022-02-03 08:42:46 +02:00
Kashav Madan
24b78009fd Bug 1564738 - Unconditionally call TabBarVisbility.update() when adding "multiple" tabs. r=Gijs CLOSED TREE
The regressing bug (bug 1448286) removed a redundant call to
gBrowser.tabContainer.updateVisibility. It appears that removed call was
necessary for restoring the tabbar of windows that were originally opened as
dialogs.

In D53692, we tried to avoid the extra cost of removing and readding the tab if
we were restoring a single-tabbed window, but it turns out that it's required to
get around the above.

Differential Revision: https://phabricator.services.mozilla.com/D124358
2022-01-31 23:19:30 +00:00
Cosmin Sabou
1df7c6105f Backed out changeset 78000a724660 (bug 1564738) for tab related bc failures. CLOSED TREE 2022-02-01 02:39:12 +02:00
Kashav Madan
97503b0cc7 Bug 1564738 - Unconditionally call TabBarVisbility.update() when adding "multiple" tabs, r=Gijs
The regressing bug (bug 1448286) removed a redundant call to
gBrowser.tabContainer.updateVisibility. It appears that removed call was
necessary for restoring the tabbar of windows that were originally opened as
dialogs.

In D53692, we tried to avoid the extra cost of removing and readding the tab if
we were restoring a single-tabbed window, but it turns out that it's required to
get around the above.

Differential Revision: https://phabricator.services.mozilla.com/D124358
2022-01-31 23:19:30 +00:00
Dão Gottwald
068ad60ae4 Bug 1752344 - Stop re-throwing exceptions in addTab(). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137151
2022-01-28 17:40:12 +00:00
Gijs Kruitbosch
867dbaa85b Bug 1678965 - Part 2: set cross opener group for openLinkIn tabs opened as new tabs, r=dao
Depends on D100152

Differential Revision: https://phabricator.services.mozilla.com/D136176
2022-01-25 17:42:45 +00:00
aminomancer
c95531067d Bug 1591040 - show both fullscreen and normal toolbar/tabstrip context menus in full screen, r=jaws,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131493
2022-01-21 22:52:24 +00:00
Norisz Fay
d4c6499662 Backed out changeset e23259733a51 (bug 1591040) for causing bc failures on browser_fullscreen_context_menu.js CLOSED TREE 2022-01-19 13:32:54 +02:00
aminomancer
d6cedea199 Bug 1591040 - show both fullscreen and normal toolbar/tabstrip context menus in full screen, r=jaws,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131493
2022-01-19 10:14:34 +00:00
Anny Gakhokidze
81d0b36175 Bug 1721217 - Part 5: Change the error code when we cancel loads due to another one starting, r=nika
This allows us to move away from using IsNavigating field in parent-controlled
paths.  Use a new distinct error code in cases when we cancel loads in
Canonical BC due to another load starting. This way, we know to not reset the
urlbar if we are doing another load.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1721217#c10 for longer
explanation of what is going on here.

Differential Revision: https://phabricator.services.mozilla.com/D126845
2021-12-16 22:27:17 +00:00
Paul Zuehlcke
f5a1c69295 Bug 1745959 - Do not fall back to selected browser in TabDialogBox getter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133778
2021-12-16 16:38:54 +00:00
Chris Peterson
2780c442e1 Bug 1661791 - Remove Fission [F] tab toolip and move subframe pids to the (pid) tooltip. r=mconley
Instead of showing:

(pid 3) [F 2, 1, 4]

The tab tooltip will now show a combined list of pids with the content pid followed by a sorted list of subframe pids:

(pids 3, 1, 2, 4)

Depends on D133854

Differential Revision: https://phabricator.services.mozilla.com/D133855
2021-12-16 05:26:42 +00:00
Gijs Kruitbosch
c662e89070 Bug 1701394 - fix tab text moving when tab label direction doesn't match UI direction, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D132580
2021-12-01 17:45:48 +00:00
Narcis Beleuzu
4c87b2e488 Backed out 12 changesets (bug 1721217) for bc failures on browser_TopLevelNavigationDelegate.js
Backed out changeset 5fe3c617d521 (bug 1721217)
Backed out changeset c131e4a6d9d5 (bug 1721217)
Backed out changeset a59210a5b400 (bug 1721217)
Backed out changeset 74362b0c39c0 (bug 1721217)
Backed out changeset c8075b91d660 (bug 1721217)
Backed out changeset 46512deaf0e5 (bug 1721217)
Backed out changeset b38bc569d227 (bug 1721217)
Backed out changeset ee9bd012fda8 (bug 1721217)
Backed out changeset 7aa2726a0982 (bug 1721217)
Backed out changeset 885ced5f4bb4 (bug 1721217)
Backed out changeset 7d3f99ca3f44 (bug 1721217)
Backed out changeset 2f5a0164679a (bug 1721217)
2021-12-01 03:38:10 +02:00
Mark Banner
3252cf4d7b Bug 1743568 - Add functionality to tabbrowser to allow running the beforeunload handler separate to the removing tabs call. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D132462
2021-11-30 22:01:37 +00:00
Anny Gakhokidze
a2ec84dc5c Bug 1721217 - Part 5: Change the error code when we cancel loads due to another one starting, r=nika
This allows us to move away from using IsNavigating field in parent-controlled
paths.  Use a new distinct error code in cases when we cancel loads in
Canonical BC due to another load starting. This way, we know to not reset the
urlbar if we are doing another load.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1721217#c10 for longer
explanation of what is going on here.

Differential Revision: https://phabricator.services.mozilla.com/D126845
2021-11-30 16:31:36 +00:00
Narcis Beleuzu
a322582a00 Backed out 11 changesets (bug 1721217) for bc failures on browser_scrollPositions.js . CLOSED TREE
Backed out changeset 750f4a84b30e (bug 1721217)
Backed out changeset c4eb4ad769ad (bug 1721217)
Backed out changeset 81af11d67439 (bug 1721217)
Backed out changeset 548f2441b7c6 (bug 1721217)
Backed out changeset cd584129321a (bug 1721217)
Backed out changeset f5f5291d1da8 (bug 1721217)
Backed out changeset 9ad66ceec1e2 (bug 1721217)
Backed out changeset 10b53a21bb23 (bug 1721217)
Backed out changeset 3755cfbe22fe (bug 1721217)
Backed out changeset 71436dc6c4c4 (bug 1721217)
Backed out changeset ecf33b73ae60 (bug 1721217)
2021-11-26 01:51:03 +02:00
Anny Gakhokidze
5a620b3dd9 Bug 1721217 - Part 5: Change the error code when we cancel loads due to another one starting, r=nika
This allows us to move away from using IsNavigating field in parent-controlled
paths.  Use a new distinct error code in cases when we cancel loads in
Canonical BC due to another load starting. This way, we know to not reset the
urlbar if we are doing another load.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1721217#c10 for longer
explanation of what is going on here.

Differential Revision: https://phabricator.services.mozilla.com/D126845
2021-11-25 20:40:58 +00:00
Emilio Cobos Alvarez
012a09c534 Bug 1584678 - Ensure we don't change activeness when remoteness changes for real. r=mconley
We apparently have this code copy-pasted in two places? :(

Differential Revision: https://phabricator.services.mozilla.com/D130261
2021-11-04 18:21:52 +00:00
kz04px
cfc15812c6 Bug 1684876 - Separate Play and Mute tab menu icons and functionality r=Gijs,alwu,flod
Differential Revision: https://phabricator.services.mozilla.com/D128280
2021-10-26 16:33:10 +00:00
Gabriel Luong
c7a4bab1b6 Bug 1732219 - Add API for fetching the preview image. r=geckoview-reviewers,agi,mconley
Differential Revision: https://phabricator.services.mozilla.com/D128815
2021-10-22 06:04:04 +00:00
Narcis Beleuzu
d9da4a1ac6 Backed out changeset bd57366e61d8 (bug 1732219) for bc failures on browser_bad_meta_tags.js. CLOSED TREE 2021-10-22 00:46:39 +03:00
Gabriel Luong
4f70f62317 Bug 1732219 - Add API for fetching the preview image. r=geckoview-reviewers,agi,mconley
Differential Revision: https://phabricator.services.mozilla.com/D128815
2021-10-21 18:48:49 +00:00
Mark Banner
cbab0efd05 Bug 1735500 - When we do not have the initial URI the first browser in a window is loading, default the browser to the PRIVILEGEDABOUT_REMOTE_TYPE. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D128357
2021-10-16 07:57:56 +00:00
Emilio Cobos Álvarez
d1c208d857 Bug 1584678 - Ensure we don't change activeness when remoteness changes. r=mconley
The tab switcher seems confused, sometimes?

However this seems a better approach regardless.

Differential Revision: https://phabricator.services.mozilla.com/D128197
2021-10-14 21:42:14 +00:00
Cosmin Sabou
2d8fe8239c Backed out 2 changesets (bug 1735500, bug 1649599) for causing both Bug 1735649 and Bug 1735650.
Backed out changeset c7b8bd49a741 (bug 1649599)
Backed out changeset 8f569a8aacf0 (bug 1735500)
2021-10-14 00:47:48 +03:00
Mark Banner
d58a19b3ea Bug 1735500 - When we do not have the initial URI the first browser in a window is loading, default the browser to the PRIVILEGEDABOUT_REMOTE_TYPE. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D128357
2021-10-13 14:45:54 +00:00
Emilio Cobos Álvarez
cf38127559 Bug 1584678 - Revert patch that landed accidentally.
MANUAL PUSH: Backout of accidentally-landed patch CLOSED TREE
2021-10-12 18:34:55 +02:00
Emilio Cobos Álvarez
aeeed4555e Bug 1584678 - Ensure we don't change activeness when remoteness changes. r=mconley!
The tab switcher seems confused, sometimes?

However this seems a better approach regardless.

Differential Revision: https://phabricator.services.mozilla.com/D128197
2021-10-12 18:14:34 +02:00
Butkovits Atila
4b46b9b45b Backed out 3 changesets (bug 1719939, bug 1726437, bug 1730262) for causing failures on test_browserGlue_migration_ctrltab_recently_used_order.js.
Backed out changeset ea1653e9644f (bug 1719939)
Backed out changeset 01f90db715a7 (bug 1726437)
Backed out changeset c0e23b2acfbb (bug 1730262)
2021-09-21 05:15:31 +03:00
Junjie Ying
9b3839d3ba Bug 1719939 - Remove last fragments of code manually checking the browser.proton.enabled pref. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125345
2021-09-21 00:03:49 +00:00
Neil Deakin
d3c5d06270 Bug 1690390, add ability to perform telemetry when a notification bar is shown, a button is pressed, or is dismissed. Use this for the subframe crash notification bar which currently does this a different way, r=mstriemer,chutten
Differential Revision: https://phabricator.services.mozilla.com/D107756
2021-09-17 09:04:59 +00:00
Neil Deakin
a62618baa7 Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D107755
2021-09-17 09:04:59 +00:00
Narcis Beleuzu
72152613c6 Backed out 3 changesets (bug 1690390) for mochitest failures on test_notificationbox.xhtml . CLOSED TREE
Backed out changeset e6404b7424cd (bug 1690390)
Backed out changeset a161177099af (bug 1690390)
Backed out changeset cc7e02d3d418 (bug 1690390)
2021-09-16 23:41:21 +03:00
Neil Deakin
f26a058361 Bug 1690390, add ability to perform telemetry when a notification bar is shown, a button is pressed, or is dismissed. Use this for the subframe crash notification bar which currently does this a different way, r=mstriemer,chutten
Differential Revision: https://phabricator.services.mozilla.com/D107756
2021-09-16 19:11:17 +00:00
Neil Deakin
82501df9f7 Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D107755
2021-09-16 19:11:17 +00:00
Antonin LOUBIERE
19cd0c58b8 Bug 1722567 - Save group of closed tabs to restore the all group. r=kashav
When a group of tabs is closed, save the it in session data so tabs could be restored together.

Differential Revision: https://phabricator.services.mozilla.com/D121110
2021-09-12 17:01:17 +00:00
Neil Deakin
b978a45c34 Bug 1724964, change wording of closing multiple tabs warning, r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D124220
2021-09-08 12:32:57 +00:00
criss
cc0c2d2e19 Backed out changeset b911ae170ab6 (bug 1722567) for causing failures on browser_frame_history.js. CLOSED TREE 2021-08-26 09:28:01 +03:00