Commit Graph

914 Commits

Author SHA1 Message Date
Kagami Sascha Rosylight
4fb733cb3b Bug 1773740 - Part 4: Reapply mach -l eslint --fix with use-isInstance changes r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148939
2022-06-27 20:31:34 +00:00
Ben Hearsum
43829ee1b3 Bug 1761288: set private window option correctly when tearing tabs from a private window. r=Gijs
This didn't matter until recently, when we started making changes to the native window's AUMID and Icon if this is set.

Differential Revision: https://phabricator.services.mozilla.com/D149908
2022-06-27 15:45:37 +00:00
Emilio Cobos Álvarez
51af54fe65 Bug 1774378 - Make select code harder to mess up. r=Gijs
Right now we rely on the menulist to be injected by hand in all the
relevant windows. Instead create it lazily, making the select code more
standalone.

The DevTools window was missing it, for example.

Differential Revision: https://phabricator.services.mozilla.com/D149620
2022-06-21 21:42:58 +00:00
Dão Gottwald
f453703731 Bug 1774377 - Add Firefox View menu item to the Tools menu. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149367
2022-06-17 07:56:26 +00:00
Butkovits Atila
246c21a815 Backed out changeset df17ec7a8095 (bug 1774377) for causing assertion failures at ErrorResult.h. CLOSED TREE 2022-06-16 01:20:24 +03:00
Dão Gottwald
ff2e859367 Bug 1774377 - Add Firefox View menu item to the Tools menu. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149367
2022-06-15 21:34:44 +00:00
Dão Gottwald
365511d874 Bug 1766896 - Redirect attempts to load something else in the Firefox View tab to new tabs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D145613
2022-05-10 22:16:45 +00:00
Emilio Cobos Álvarez
086ee93a91 Bug 1768004 - Remove another unused variable.
MANUAL PUSH: ESLint fix CLOSED TREE
2022-05-05 19:19:24 +02:00
Emilio Cobos Álvarez
9052d4d000 Bug 1768004 - Remove some leftover usage I missed and ESLint caught.
MANUAL PUSH: ESLint fix CLOSED TREE
2022-05-05 18:58:48 +02:00
Dão Gottwald
e4a09e1f3f Bug 1762903 - Implement Firefox View toolbar button. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D144735
2022-05-04 16:25:54 +00:00
Oriol Brufau
ce0f675cd9 Bug 1764452 - Avoid tabs.onUpdated events for 'attention' when value doesn't change. r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D143553
2022-04-21 08:30:07 +00:00
Shane Hughes
5dcdf4653d 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
1fb46fa941 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
23147a47db 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
3ea77b2aa2 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
05d7d28dae 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
3317a3ef3f 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
ab635d20bf 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
cbe3c84f12 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
d72e806ccf 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
35cf387506 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
ac27d9d5d6 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
71c36bb525 Backed out changeset e00a268f35f3 (bug 1564738) for causing Bug 1753106 as requested by emk. 2022-02-03 08:42:46 +02:00
Kashav Madan
c46f450d48 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
64b27b323d Backed out changeset 78000a724660 (bug 1564738) for tab related bc failures. CLOSED TREE 2022-02-01 02:39:12 +02:00
Kashav Madan
c87f35ed2c 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
d35f05bc80 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
e87c866cd5 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
7aebd7f3db 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
d35104b746 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
3394fc2082 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
10610dc7d0 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
1e7de4ec93 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
76b585cfb0 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
8e978de919 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
6e9d812757 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
4aaadc5fa2 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
45acd46f45 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
96c4882d22 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
a81e51b3a2 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
04101af708 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
4e48ff311d 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
4371a29cbf 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
6fb67ded6d 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
3879838cd7 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
5dd0f0a1a6 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
607de2af06 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
3242939660 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
1893b193f9 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
15155e8511 Bug 1584678 - Revert patch that landed accidentally.
MANUAL PUSH: Backout of accidentally-landed patch CLOSED TREE
2021-10-12 18:34:55 +02:00