Commit graph

723 commits

Author SHA1 Message Date
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
Antonin LOUBIERE
35892803e0 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-08-26 03:33:07 +00:00
Alexandru Michis
6692fa0e63 Backed out changeset 6aaaf18f2aae (bug 1722567) for causing bc failures in browser_forget_async_closings.js
CLOSED TREE
2021-08-21 21:17:21 +03:00
Antonin LOUBIERE
6edccbe185 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-08-21 17:11:56 +00:00
Nika Layzell
d1e4226c32 Bug 1650089 - Part 6: Don't set maychangeremoteness on non-e10s browsers, r=Gijs
This change makes all browsers which were not created with an initial `remote`
attribute within a non-`useRemoteTabs` window be unable to process-switch, as
otherwise we may attempt to switch loads into a content process. We need to
keep process switching enabled for explicitly-remote browsers loaded in a
non-`useRemoteTabs` window as it's relied on for tests and can lead to
assertion failures due to loading remote content in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D121285
2021-08-10 14:31:18 +00:00
Butkovits Atila
22fb2b6793 Backed out 8 changesets (bug 1650089) for causing Xpcshell failures on test_ext_redirects.js. CLOSED TREE
Backed out changeset ee763318d378 (bug 1650089)
Backed out changeset 24d7898ec4bd (bug 1650089)
Backed out changeset bcdd2f5c9840 (bug 1650089)
Backed out changeset 24a5bd7f97dd (bug 1650089)
Backed out changeset 1b8b4e939e82 (bug 1650089)
Backed out changeset a7a4f37a5d72 (bug 1650089)
Backed out changeset 78c012d4b071 (bug 1650089)
Backed out changeset e870508c1ddc (bug 1650089)
2021-08-06 04:35:52 +03:00
Nika Layzell
b2cd12ea84 Bug 1650089 - Part 6: Don't set maychangeremoteness on non-e10s browsers, r=Gijs
This change makes all browsers which were not created with an initial `remote`
attribute within a non-`useRemoteTabs` window be unable to process-switch, as
otherwise we may attempt to switch loads into a content process. We need to
keep process switching enabled for explicitly-remote browsers loaded in a
non-`useRemoteTabs` window as it's relied on for tests and can lead to
assertion failures due to loading remote content in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D121285
2021-08-06 00:10:58 +00:00
Doug Thayer
f907b5b4a4 Bug 1546847 - Backed out bug 1546847 and related revs r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121898
2021-08-05 18:34:56 +00:00
Alexandru Michis
5ca72bfc53 Backed out 7 changesets (bug 1650089) for causing xpcshell failures in test_ext_cookieBehaviors.js
Backed out changeset 336d6eb2fc15 (bug 1650089)
Backed out changeset 283ba29cdbeb (bug 1650089)
Backed out changeset c470e4c65117 (bug 1650089)
Backed out changeset 8fc2f428694d (bug 1650089)
Backed out changeset 37e5185dae14 (bug 1650089)
Backed out changeset a26afdc56d91 (bug 1650089)
Backed out changeset 32e207558b3d (bug 1650089)
2021-08-04 12:32:07 +03:00
Nika Layzell
86eb6e4a0b Bug 1650089 - Part 6: Don't set maychangeremoteness on non-e10s browsers, r=Gijs
This change makes all browsers which were not created with an initial `remote`
attribute within a non-`useRemoteTabs` window be unable to process-switch, as
otherwise we may attempt to switch loads into a content process. We need to
keep process switching enabled for explicitly-remote browsers loaded in a
non-`useRemoteTabs` window as it's relied on for tests and can lead to
assertion failures due to loading remote content in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D121285
2021-08-03 18:17:56 +00:00
Noemi Erli
6cd9318b66 Backed out 7 changesets (bug 1650089) foe causing bustages in ProcessIsolation.cpp
Backed out changeset 4e73beb8872c (bug 1650089)
Backed out changeset 092451e931ce (bug 1650089)
Backed out changeset ca9ba60010c6 (bug 1650089)
Backed out changeset ee61b69ba556 (bug 1650089)
Backed out changeset 091c4efa36a7 (bug 1650089)
Backed out changeset dbdee40ef8a0 (bug 1650089)
Backed out changeset 54d12a4333a0 (bug 1650089)
2021-08-03 20:15:54 +03:00
Nika Layzell
53b9fff29c Bug 1650089 - Part 6: Don't set maychangeremoteness on non-e10s browsers, r=Gijs
This change makes all browsers which were not created with an initial `remote`
attribute within a non-`useRemoteTabs` window be unable to process-switch, as
otherwise we may attempt to switch loads into a content process. We need to
keep process switching enabled for explicitly-remote browsers loaded in a
non-`useRemoteTabs` window as it's relied on for tests and can lead to
assertion failures due to loading remote content in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D121285
2021-08-03 15:39:35 +00:00
Nika Layzell
29295703f8 Bug 1715773 - Remove preloaded newtab process selection logic, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D121423
2021-08-03 15:17:07 +00:00
Doug Thayer
0f70c8373a Bug 1546847 - Cache tab icons in worker to avoid serialization r=kashav
Read this as a first step. It's the easiest first step I could think of to
both reduce the quantity of stuff we serialize and ship to the worker as
well as to spread it out over multiple messages.

Anyway, the motivation is pretty simple. Taking a look at a session store
file on disk, a giant chunk of it is base64 encoded tab icons. I suspect
that in many cases these are not distinct. For my session store it's about
90% the same repeated searchfox icon over and over.

So what I did was I changed the "image" property of the tab to be a reference
into a deduplicated cache of objects (in this case strings). Whenever the tab
icon changes, we drop a reference to its cache entry and add a reference to a
new or existing entry. Each time a cache entry is added or deleted, we send
a message to the worker to update its own copy of the cache. This does
represent a memory hit, since the cache is maintained on the worker as well as
the main thread, but I think it's going to be minor, and it's only in one
process. Given the deduplication there is the possibility of an overall
reduction in memory use? This needs more testing.

Once it comes time to write the session data to disk, we send the payload with
"image" entries referencing IDs in the cache. When the worker gets the message
to write, it adds its internal cache to the object, which it then serializes
to JSON and writes to disk as usual.

When reading the data off disk, we take the cache items that had been written
and we slowly populate the worker's internal cache with them (to not overload
during startup with a giant message). And when populating tab icons of tabs in
the tab strip, we look up the image in the main thread copy of the cache. Also,
if we cannot find the entry, we assume that the image is just the raw
representation of the image. This ensures that we interpret a sessionstore file
from prior to this patch correctly.

Additionally, since we have the cache duplicated on both threads, if the worker
gets terminated for some reason, we rehydrate it with the snapshot of the cache
from when we noticed it was a problem.

I suspect some tests will need to be updated, or maybe many tests. However I
wanted to throw this patch past someone with more knowledge of the session
store's inner workings before throwing a bunch of time at that.

Differential Revision: https://phabricator.services.mozilla.com/D114196
2021-08-02 16:17:30 +00:00
Gijs Kruitbosch
ee4d7daea5 Bug 1512851 - make share menu handling more generic and replace the file menu's email link with it on macOS, r=sfoster,fluent-reviewers,flod
Depends on D120637

Differential Revision: https://phabricator.services.mozilla.com/D120638
2021-07-26 12:22:38 +00:00
Gijs Kruitbosch
e2e1f06304 Bug 1512851 - extract share menu handling from tabbrowser.js into a utility in browser.js, r=sfoster
Depends on D120636

Differential Revision: https://phabricator.services.mozilla.com/D120637
2021-07-26 12:22:38 +00:00
Toshihito Kikuchi
a7bf50d1d1 Bug 1715858 - Part1. Add a new telemetry histogram TAB_UNLOAD_TO_RELOAD. r=NeilDeakin
The new histogram `TAB_UNLOAD_TO_RELOAD` records how long a tab had been
unloaded until it was reload by a user.  With this data, we can evaluate
the selection logic to choose a tab to unload.  For example, if many of
unloaded tabs are reloaded within 30 seconds or so, we unload a wrong tab.

Differential Revision: https://phabricator.services.mozilla.com/D120019
2021-07-22 21:15:00 +00:00
Neil Deakin
b8424dd0fb Bug 1717680, use popup.triggerNode instead of document.triggerNode when determining bookmarks tooltips, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D118521
2021-07-09 11:51:14 +00:00
Daisuke Akatsuka
1cc55fd4cf Bug 1686951: Support switch-to-tab in private browsing window. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D117974
2021-06-21 01:33:26 +00:00
Gijs Kruitbosch
1221473bc5 Bug 1711519 - remove non-proton notificationbox code and remove conditionals for proton, r=jaws
Depends on D116630

Differential Revision: https://phabricator.services.mozilla.com/D116631
2021-06-03 11:41:54 +00:00
Gijs Kruitbosch
a9281aec97 Bug 1711519 - remove trivial gProton and gProtonDoorhangers checks, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D116630
2021-06-03 11:41:54 +00:00
Neil Deakin
5b9b440b1f Bug 1709379, don't special case picture in picture mode in tooltips as the button is still a mute button, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D115555
2021-05-31 13:09:44 +00:00
Neil Deakin
0b4418c6a7 Bug 1696214, use moveToAnchor to position the tab and places tooltips so that the close and mute button tooltips appear correctly, r=jaws
This involves changing moveToAnchor to be allowed while the popup is showing. This change allows the buttons within the tab to use the normal algorithm for determining the tooltip position. This also fixes bug 1695900 so that tooltips for items in bookmarks menus also appear offset as well. Only the main tab and bookmarks on the toolbar appear aligned with the button's bottom edge.

Differential Revision: https://phabricator.services.mozilla.com/D115558
2021-05-31 13:07:35 +00:00
Gijs Kruitbosch
1d7f4797cd Bug 1712306 - add telemetry for the close multiple tabs modal, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D115840
2021-05-27 21:01:01 +00:00
Ed Lee
43b619e124 Bug 1706963 - Close other window modal subdialog before quit/close window prompts r=Gijs
Allow quit/close dialogs to jump the queue with new method gDialogBox.replaceDialogIfOpen().

Differential Revision: https://phabricator.services.mozilla.com/D114654
2021-05-21 17:56:20 +00:00
Florian Quèze
777e422931 Bug 1704868 - avoid triggering the notificationbar stack lazy getter for every tab close, r=mstriemer.
Differential Revision: https://phabricator.services.mozilla.com/D111891
2021-04-16 22:32:30 +00:00
Bogdan Tara
dadf80687b Backed out 2 changesets (bug 1704868) for browser_app.js mochitest failures CLOSED TREE
Backed out changeset 0ac53cac5ca8 (bug 1704868)
Backed out changeset cc993666f052 (bug 1704868)
2021-04-16 22:37:35 +03:00
Florian Quèze
664c69eabf Bug 1704868 - avoid triggering the notificationbar stack lazy getter for every tab close, r=mstriemer.
Differential Revision: https://phabricator.services.mozilla.com/D111891
2021-04-16 17:37:06 +00:00
Jan-Ivar Bruaroey
f0138debf4 Bug 1697487 - Show gray cam/mic indicator during permission grace periods. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D111000
2021-04-14 11:20:15 +00:00
Emilio Cobos Álvarez
3e0cb7c68b Bug 1703289 - Make mixed content blocker use a session-persistent permission rather than ad-hoc code. r=ckerschb,smaug
This is more fission-compatible, and a lot simpler.

Differential Revision: https://phabricator.services.mozilla.com/D111480
2021-04-12 18:04:12 +00:00
Gabriel Luong
f12235b53c Bug 1692840 - Add "Open a New Tab" at the top of the tabstrip context menu. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D108365
2021-04-12 10:28:46 +00:00