Commit Graph

899 Commits

Author SHA1 Message Date
Gregory Pappas
7b8c07142a Bug 1809094 - Implement tab.autoDiscardable property r=robwu,geckoview-reviewers,extension-reviewers,Gijs,owlish,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D166440
2023-06-21 07:50:17 +00:00
Cosmin Sabou
811d79e739 Backed out changeset f3fe6cc42791 (bug 1809094) for bc failures on browser_ext_tabs_autoDiscardable.js. 2023-06-21 03:24:56 +03:00
Gregory Pappas
ad10790d6e Bug 1809094 - Implement tab.autoDiscardable property r=robwu,geckoview-reviewers,extension-reviewers,Gijs,owlish,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D166440
2023-06-20 23:59:08 +00:00
Sandor Molnar
1e6677e684 Backed out changeset 0ee2d1b2ec37 (bug 1809094) for causing android bustages. CLOSED TREE 2023-06-21 02:20:26 +03:00
Gregory Pappas
b89c0a7e67 Bug 1809094 - Implement tab.autoDiscardable property r=robwu,geckoview-reviewers,extension-reviewers,Gijs,owlish,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D166440
2023-06-20 23:06:37 +00:00
Katherine Patenio
ce9d8a5dad Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 18:44:48 +00:00
Cristian Tuns
f826f1b621 Backed out 2 changesets (bug 1834831) for causing node failures with checkBundles CLOSED TREE
Backed out changeset 58b351a155c8 (bug 1834831)
Backed out changeset 1acbb5231d14 (bug 1834831)
2023-06-19 13:22:35 -04:00
Katherine Patenio
333197cd22 Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 16:46:18 +00:00
Daisuke Akatsuka
c1ce24fd5a Bug 1836051: Restore selection range when tab switching r=tabbrowser-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D180415
2023-06-14 22:16:21 +00:00
Daisuke Akatsuka
1f42ad0209 Bug 1836051: Make the urlbar to revert its previous focus state when switching tabs r=tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D180266
2023-06-14 22:16:20 +00:00
Butkovits Atila
e013ce3291 Backed out 2 changesets (bug 1836051) for causing failures at browser_keepStateAcrossTabSwitches.js. CLOSED TREE
Backed out changeset 1b340c6a4e28 (bug 1836051)
Backed out changeset b15e56c19bb7 (bug 1836051)
2023-06-14 19:19:31 +03:00
Daisuke Akatsuka
f01241b6d9 Bug 1836051: Restore selection range when tab switching r=tabbrowser-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D180415
2023-06-14 12:53:12 +00:00
Daisuke Akatsuka
7e13016aa7 Bug 1836051: Make the urlbar to revert its previous focus state when switching tabs r=tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D180266
2023-06-14 12:53:12 +00:00
Dão Gottwald
a1da4da44d Bug 1837174 - Replace [first-visible-unpinned-tab] selector with :nth-child and get rid of _setPositionalAttributes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D180213
2023-06-07 18:42:07 +00:00
Niklas Baumgardner
cafd4fd680 Bug 1811115 - Make tab owner a weak reference. r=dao,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D179558
2023-06-06 13:26:39 +00:00
Sam Foster
ffc79712f2 Bug 1819675 - rename SessionStore.getClosedTabCount and getClosedTabData to getClosedTabCountForWindow and getClosedTabDataForWindow. r=dao,fxview-reviewers,kcochrane
- As closed tabs will change to mean closed tabs from all windows, rename these functions to make
  changes in later patches clearer when we mean closed tabs from this window specifically, or closed
  tabs for all private/non-private windows

Differential Revision: https://phabricator.services.mozilla.com/D177849
2023-05-30 18:54:12 +00:00
Fred Chasen
b2ee1caee5 Bug 574385 - Reset related tabs on system triggered page navigations r=mhowell
Check the triggering principal of document loads in TabProgressListener's onLocationChange event,
and clear the related tabs if load was triggered by the system principal (typed in the url bar / bookmarks / history, etc.) to prevent grouping unrelated tabs.

Differential Revision: https://phabricator.services.mozilla.com/D178373
2023-05-23 16:47:48 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Niklas Baumgardner
30cead34a2 Bug 1791231 - Open link in new tab after selected tab. r=dao,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D178242
2023-05-18 15:18:11 +00:00
Brice Laurencin
f7bb93f59c Bug 1418462 - Middleclick on new tab button launch clipboard r=Gijs
Original code from bruntonross@protonmail.com,
adapted to current Firefox version.

Differential Revision: https://phabricator.services.mozilla.com/D170097
2023-05-10 10:08:24 +00:00
Stanca Serban
67a233d35f Backed out changeset 50c9a0bea4c6 (bug 1418462) for causing mochitests failures in browser_middleClick.js. CLOSED TREE 2023-05-10 02:50:36 +03:00
Brice Laurencin
b6311d6f18 Bug 1418462 - Middleclick on new tab button launch clipboard r=Gijs
Original code from bruntonross@protonmail.com,
adapted to current Firefox version.

Differential Revision: https://phabricator.services.mozilla.com/D170097
2023-05-09 20:50:04 +00:00
Niklas Baumgardner
ec558f08b8 Bug 1188978 - Expose tab playing to accessibility clients. r=dao,mhowell,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D176814
2023-05-03 17:51:57 +00:00
Emilio Cobos Álvarez
7b99f3eb89 Bug 1828477 - Support input type=date in non-tabbrowser windows. r=Gijs,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D175771
2023-04-20 21:14:07 +00:00
Cristina Horotan
1f70ff41ad Backed out changeset fcd3e501bdac (bug 1828477) for causing gv-junit failures. CLOSED TREE 2023-04-19 17:28:42 +03:00
Emilio Cobos Álvarez
2290a1d8e2 Bug 1828477 - Support input type=date in non-tabbrowser windows. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D175771
2023-04-19 11:15:08 +00:00
Natalia Csoregi
34a8f8c95d Backed out changeset 8abb5d78b663 (bug 1828477) for causing multiple failures e.g gv-junit on emptyShareReturnsTypeError. CLOSED TREE 2023-04-18 22:27:29 +03:00
Emilio Cobos Álvarez
df2c483941 Bug 1828477 - Support input type=date in non-tabbrowser windows. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D175771
2023-04-18 17:35:48 +00:00
Daisuke Akatsuka
f1441c3114 Bug 1824040: Make the loading URL opened in _blank target to be the target of Session Restore r=mak,smaug,farre,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D173790
2023-04-14 01:59:44 +00:00
Emilio Cobos Álvarez
a0c2c34335 Bug 1819721 - Add some debugging utilities for StatusPanel debugging. r=dao
Not sure if this is worth it, your call. But I wrote this so I figured
someone debugging this code might find it useful.

Depends on D172033

Differential Revision: https://phabricator.services.mozilla.com/D172034
2023-04-13 15:31:03 +00:00
Dão Gottwald
e7a78cd6d0 Bug 1822532 - Avoid flushing layout to determine a tab's width when closing it. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D174127
2023-03-30 21:01:22 +00:00
Shane Hughes
7cf9a86c67 Bug 1818829 - Implement Feature Callout theme configuration. r=jprickett,omc-reviewers,fxview-reviewers,sfoster
Add logic to apply theme colors to Feature Callout based on where it's
going to show. We can use in-content CSS properties for Firefox View and
other themed system pages, but not for PDF.js, nor for any callouts we
might show in the browser chrome in the future. For the browser chrome
in general, we can use the lightweight theme properties directly, in the
same way the chrome frontend does. But PDF.js is a special case, since
although it exists in the chrome, it's meant to appear like it's in the
PDF.js viewer. And the PDF.js viewer has its own theme totally
independent of everything else. So this dynamically applies themes from
different sources.

This also fixes the bug where the PDF.js color scheme could mismatch the
PDF.js viewer if the browser theme and system color scheme don't match,
e.g. where system color scheme is light but a dark theme is installed,
or vice versa. For PDF.js specifically, we can use the
-moz-content-prefers-color-scheme media query to follow the color scheme
as it exists in the PDF.js viewer page instead of the color scheme in
the chrome window where the Feature Callout actually exists.

It also adds or modifies some colors that were previously missing or
different from the prototype, fixes the illegibility of buttons in HCM
and forced colors mode, and makes some other minor color changes.

Differential Revision: https://phabricator.services.mozilla.com/D173088
2023-03-28 00:38:42 +00:00
Cosmin Sabou
c31085cb42 Backed out changeset fecef27ba1fa (bug 1818829) for causing newtab failures on _feature-callout-theme.scss. CLOSED TREE 2023-03-28 02:46:44 +03:00
Shane Hughes
43bb7f08b0 Bug 1818829 - Implement Feature Callout theme configuration. r=jprickett,omc-reviewers,fxview-reviewers,sfoster
Add logic to apply theme colors to Feature Callout based on where it's
going to show. We can use in-content CSS properties for Firefox View and
other themed system pages, but not for PDF.js, nor for any callouts we
might show in the browser chrome in the future. For the browser chrome
in general, we can use the lightweight theme properties directly, in the
same way the chrome frontend does. But PDF.js is a special case, since
although it exists in the chrome, it's meant to appear like it's in the
PDF.js viewer. And the PDF.js viewer has its own theme totally
independent of everything else. So this dynamically applies themes from
different sources.

This also fixes the bug where the PDF.js color scheme could mismatch the
PDF.js viewer if the browser theme and system color scheme don't match,
e.g. where system color scheme is light but a dark theme is installed,
or vice versa. For PDF.js specifically, we can use the
-moz-content-prefers-color-scheme media query to follow the color scheme
as it exists in the PDF.js viewer page instead of the color scheme in
the chrome window where the Feature Callout actually exists.

It also adds or modifies some colors that were previously missing or
different from the prototype, fixes the illegibility of buttons in HCM
and forced colors mode, and makes some other minor color changes.

Differential Revision: https://phabricator.services.mozilla.com/D173088
2023-03-27 23:07:45 +00:00
Daisuke Akatsuka
56c121f318 Bug 610357: Show pending URL in location bar and tab while loading. r=mak,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D170045
2023-03-23 21:24:11 +00:00
Gijs Kruitbosch
5e7d1aeb25 Bug 1823706 - rename addMultipleTabs and batchInsertingTabs parameter for clarity, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D173271
2023-03-23 10:00:35 +00:00
Sandor Molnar
8ba916acb7 Backed out changeset b8ae8c3725cd (bug 610357) for causing multiple failures in browser_link_in_tab_title_and_url_prefilled.js / browser_cdp.js 2023-03-23 04:35:38 +02:00
Daisuke Akatsuka
c6baf52b6c Bug 610357: Show pending URL in location bar and tab while loading. r=mak,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D170045
2023-03-23 00:44:47 +00:00
Gijs Kruitbosch
5a7f5e02ed Bug 1822854 - ensure session store doesn't assume _tPos is set and has good stub info for recently restored tabs so we don't break manual session restore, r=dao
Either of these changes (ie dropping the setTabState call for batch restored
tabs, or ensuring the restoreTabs code correctly fills its array with dummy
entries) is sufficient here. I chose to do both because I think in both cases
the brokenness is not limited to this scenario or the issues at hand.

Specifically, the setTabState call was added in bug 1521346 to deal with
moved lazy tabs, but is now being invoked for session restore because of
the batchInsertingTabs optimization work. It doesn't actually need to be,
as far as I can tell, and the lacking _tPos in this case (because we don't
insert the tab into the tabstrip a few lines above) is what breaks things
inside _ensureNoNullsInTabDataList. Note that this _already_ was breaking
things in restoreTab(), which would assign into tabs[undefined] on the
window state object, so just dropping the call seemed better than wallpapering
the absence of _tPos.

The restoreTabs code, pre-patch, calls _ensureNoNullsInTabDataList but that
will never do anything, because right before calling it we change the array
length, so maxPos was always smaller than the size of the list. This meant
we still had empty slots in the array, which was also causing confusion down
the line.

I added the explicit exception for the broken _tPos in restoreTab so that we
notice any future issues with this more quickly. Doing so without any of the
other fixes broke the pre-existing browser_586068-apptabs.js test, so
hopefully that will catch any future changes that break the code's assumptions.

Differential Revision: https://phabricator.services.mozilla.com/D173070
2023-03-21 16:29:06 +00:00
Gijs Kruitbosch
e65dc4cca0 Bug 1822072 - split up tabbrowser's addTab so it's easier to understand, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D170924
2023-03-16 15:37:28 +00:00
Luca Greco
29d1c32414 Bug 1819794 - Ensure userContextId is set in the session store tab state for tabs created as discarded. r=Gijs,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D171570
2023-03-15 11:47:01 +00:00
Norisz Fay
faa1cfe3cd Backed out changeset f0bc703cf531 (bug 1822072) for causing bc failures on browser_ext_tabs_discard_reversed.js CLOSED TREE 2023-03-14 04:18:39 +02:00
Gijs Kruitbosch
92681c3227 Bug 1822072 - split up tabbrowser's addTab so it's easier to understand, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D170924
2023-03-14 00:29:26 +00:00
Gijs Kruitbosch
f6eafeeea6 Bug 1718082 - move hasSiblings from BrowserChild to BC and update as a synced field, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D171645
2023-03-13 17:32:08 +00:00
Gijs Kruitbosch
4ee9373eaa Bug 1718082 - move isAppTab from docshell to browsing context, r=nika,rpl
Differential Revision: https://phabricator.services.mozilla.com/D171412
2023-03-13 17:32:07 +00:00
Gijs Kruitbosch
b6fec007b1 Bug 1718082 - make updating apptab and usercontext information solely tabbrowser's responsibility, r=mconley
I'm removing the apptab bits completely in one of the later commits,
but trying to keep this modular so it's easy to figure out regressions,
should there be any.

Differential Revision: https://phabricator.services.mozilla.com/D171411
2023-03-13 17:32:07 +00:00
Gijs Kruitbosch
9785c9cc61 Bug 1718082 - remove expired container/userContextId telemetry, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D171410
2023-03-13 17:32:06 +00:00
Dão Gottwald
b4df38a218 Bug 1819359 - Replace removeTab's byMouse parameter with triggeringEvent parameter. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D171459
2023-03-02 15:22:00 +00:00
Eemeli Aro
3dc060b88e Bug 1818916 - Clear tab tooltip on display. r=Gijs
The unnecessary tabbrowser-tab-tooltip is dropped, as it's the same single variable references in all locales. Also, setting the title as the label directly avoids a minuscule but observable delay that's the source of this issue.

Differential Revision: https://phabricator.services.mozilla.com/D171103
2023-03-01 08:57:07 +00:00