Commit graph

541 commits

Author SHA1 Message Date
Gijs Kruitbosch
fca766666b Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-23 14:04:49 +00:00
Dorel Luca
d4c820fa0f Backed out changeset 3671a57712e4 (bug 1646780) for Browser-chrome failures in webrtc/browser_devices_get_user_media_tear_off_tab.js 2020-06-19 04:22:23 +03:00
Gijs Kruitbosch
f457ccd655 Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-19 00:02:11 +00:00
Nika Layzell
4206cf7b5e Bug 1645882 - Remove extra space in [F] tab tooltip, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80020
2020-06-17 16:00:37 +00:00
Neil Deakin
58ca41961b Bug 1645541, use outerWindowId from the windowGlobal instead of using the Browser:Init message, Also makes the BrowserTab actor specific to the main browser, r=mconley,remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D79609
2020-06-17 15:01:28 +00:00
Neil Deakin
b5c20e028a Bug 1645541, remove uncommonly used outerid to browser map and just iterate over the tabs instead, r=mconley
The map is only used by payments and about:devtools.

Differential Revision: https://phabricator.services.mozilla.com/D79608
2020-06-17 15:00:50 +00:00
Nika Layzell
24afe9ee3d Bug 1640019 - Part 6: Get rid of the rebuild_frameloaders pref, r=Gijs
This pref was enabled on all platforms, and the codepath which has it disabled
has been untested for some time. Remove the pref to simplify the code handling
the old case.

Differential Revision: https://phabricator.services.mozilla.com/D78974
2020-06-15 23:24:00 +00:00
Nika Layzell
ae9eaf84c4 Bug 1640019 - Part 5: Remove a number of now-unused 'updateBrowserRemoteness' parameters, r=Gijs
These were only used by process switches triggered via DocumentChannel, which
now take the PROCESS_BEHAVIOR_STANDARD codepath.

Differential Revision: https://phabricator.services.mozilla.com/D78973
2020-06-15 23:23:58 +00:00
Nika Layzell
4a9372aa21 Bug 1640019 - Part 4: Get rid of PROCESS_BEHAVIOR_CUSTOM, r=mattwoodrow,Gijs,necko-reviewers,valentin
As tabbrowser now uses `PROCESS_BEHAVIOR_STANDARD`, `PROCESS_BEHAVIOR_CUSTOM` is
now unused. This patch removes that now-unused code.

Differential Revision: https://phabricator.services.mozilla.com/D78972
2020-06-15 23:23:56 +00:00
Nika Layzell
0e74912c80 Bug 1640019 - Part 2: Use new process switch logic in tabbrowser, r=mattwoodrow,Gijs
Add a series of extra hooks and methods to allow tabbrowser to use the new
process switching codepath. This duplicates some of the logic from
`updateBrowserRemoteness` into event handlers.

Differential Revision: https://phabricator.services.mozilla.com/D78970
2020-06-15 23:23:46 +00:00
Neil Deakin
7e87e93b6b Bug 1644155, remove some message listeners that are no longer used, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D78692
2020-06-12 23:28:47 +00:00
Narcis Beleuzu
a8dde16e58 Backed out 10 changesets (bug 1508306, bug 1640019) for bc failures on browser_autoOpen.js . CLOSED TREE
Backed out changeset 8844170ff408 (bug 1508306)
Backed out changeset b750f1d873cf (bug 1508306)
Backed out changeset c7170e76e676 (bug 1640019)
Backed out changeset 5905995e4815 (bug 1640019)
Backed out changeset 7bf86513348e (bug 1640019)
Backed out changeset f7d0605295f7 (bug 1640019)
Backed out changeset 521b4d5a9a89 (bug 1640019)
Backed out changeset 8542edc564bc (bug 1640019)
Backed out changeset 4f6a03152526 (bug 1640019)
Backed out changeset 30d2bf04719b (bug 1640019)
2020-06-12 22:47:50 +03:00
Nika Layzell
eb18c1a614 Bug 1640019 - Part 6: Get rid of the rebuild_frameloaders pref, r=Gijs
This pref was enabled on all platforms, and the codepath which has it disabled
has been untested for some time. Remove the pref to simplify the code handling
the old case.

Differential Revision: https://phabricator.services.mozilla.com/D78974
2020-06-12 16:52:07 +00:00
Nika Layzell
6069ccac68 Bug 1640019 - Part 5: Remove a number of now-unused 'updateBrowserRemoteness' parameters, r=Gijs
These were only used by process switches triggered via DocumentChannel, which
now take the PROCESS_BEHAVIOR_STANDARD codepath.

Differential Revision: https://phabricator.services.mozilla.com/D78973
2020-06-12 16:52:04 +00:00
Nika Layzell
38d3ef0a32 Bug 1640019 - Part 4: Get rid of PROCESS_BEHAVIOR_CUSTOM, r=mattwoodrow,Gijs,necko-reviewers,valentin
As tabbrowser now uses `PROCESS_BEHAVIOR_STANDARD`, `PROCESS_BEHAVIOR_CUSTOM` is
now unused. This patch removes that now-unused code.

Differential Revision: https://phabricator.services.mozilla.com/D78972
2020-06-12 16:52:02 +00:00
Nika Layzell
aaf6c3a006 Bug 1640019 - Part 2: Use new process switch logic in tabbrowser, r=mattwoodrow,Gijs
Add a series of extra hooks and methods to allow tabbrowser to use the new
process switching codepath. This duplicates some of the logic from
`updateBrowserRemoteness` into event handlers.

Differential Revision: https://phabricator.services.mozilla.com/D78970
2020-06-12 16:52:01 +00:00
Matt Woodrow
71638cf5c0 Bug 1613589 - Persist TabProgressListener::mRequestCount across process switches. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D78838
2020-06-09 09:46:45 +00:00
Johann Hofmann
2f56a8a52d Bug 1515073 - Part 3 - Add support for skipping session entries without user interaction on desktop. r=JanH,Gijs
Depends on D27586

Differential Revision: https://phabricator.services.mozilla.com/D27587
2020-06-09 14:50:18 +00:00
Jared Wein
7bc3b4c0c7 Bug 1642084 - Check that tabs are connected when determining the amount of closed tabs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D78076
2020-06-03 16:02:37 +00:00
Emma Malysz
ed9faa91db Bug 1634046: lazy load invalid form, date/time picker, and autoscroll panels and popups by placing in templates. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D75971
2020-06-03 15:44:03 +00:00
Jared Wein
d9d492eda7 Bug 887515 - Restore multiple tab closings using Undo Close Tab(s) after a multiple-tab operation. r=fluent-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D76087
2020-05-30 06:48:18 +00:00
Mihai Alexandru Michis
415dcacc56 Backed out changeset 3d607fcf4dee (bug 887515) for causing failures in toolbar-context-menu-undo-close-tab
CLOSED TREE
2020-05-30 09:25:30 +03:00
Jared Wein
803b52c5dd Bug 887515 - Restore multiple tab closings using Undo Close Tab(s) after a multiple-tab operation. r=fluent-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D76087
2020-05-30 05:38:56 +00:00
Agi Sferro
7e790d6b73 Bug 1629113 - Move caret browsing handler to tabbrowser.js. r=NeilDeakin
We don't use it on GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D72724
2020-05-27 23:49:55 +00:00
Razvan Maries
c61dea7188 Backed out changeset 9abcbf533b08 (bug 1629113) as per Agi's request. CLOSED TREE 2020-05-28 02:06:05 +03:00
Agi Sferro
4d2ed19feb Bug 1629113 - Move caret browsing handler to tabbrowser.js. r=NeilDeakin
We don't use it on GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D72724
2020-05-27 22:26:17 +00:00
Anny Gakhokidze
28243d5736 Bug 1630323 - Do not override user preferences when clicking on a service worker notification to open a new document, r=Gijs,nika,geckoview-reviewers,snorp
In Bug 1622749 a user preference for where to open new documents (from a
service worker notification) was temporarily overriden in order to quickly fix
a crash that was happening in mozilla::dom::ClientOpenWindow. The crash was
ocurring when the pref "browser.link.open_newwindow" was set to 2, meaning new
documents are opened in a new window, instead of a new tab. The reason the
browser crashed is because the path for opening a new document is different
depending on the current user setting, and in NEWWINDOW case we did not get a
browsing context returned when calling mozilla::dom::OpenWindow which resulted
in a failed assertion.

The solution is to pass in a callback to mozilla::dom::OpenWindow as part of
nsOpenWindowInfo object, and invoke that callback with a corresponding
BrowsingContext in nsFrameLoader when that browsing context is ready.

After we call mozilla::dom::OpenWindow, we wait on a promise, that will be
resolved when the callback is invoked, before executing the rest of the code
that depends on the browsing context for a newly opened document being
available.

Differential Revision: https://phabricator.services.mozilla.com/D72745
2020-05-27 18:15:36 +00:00
Razvan Maries
06a194ef3b Backed out changeset 5b97f74fb6fd (bug 1629113) for perma failures on test_keycodes.xhtml. CLOSED TREE 2020-05-27 21:16:13 +03:00
Agi Sferro
1e7ad33a14 Bug 1629113 - Move caret browsing handler to tabbrowser.js. r=NeilDeakin
We don't use it on GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D72724
2020-05-27 01:33:50 +00:00
Gijs Kruitbosch
cb82792e02 Bug 1626842 - migrate the browser window title to fluent, r=zbraniecki,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D75854
2020-05-25 10:01:42 +00:00
Neil Deakin
5846219ee4 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-19 13:42:41 +00:00
Mike Conley
27a590bd9e Bug 1634796 - Add a panel that warns users before switching tabs when sharing the window over WebRTC. r=johannh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D73734
2020-05-18 22:41:43 +00:00
Andreea Pavel
9257ea9bef Backed out 2 changesets (bug 1594752) for causing bug 1638148 on a CLOSED TREE
Backed out changeset 66cc44b67170 (bug 1594752)
Backed out changeset e781cf38f088 (bug 1594752)
2020-05-15 13:47:49 +03:00
Neil Deakin
e11f8b01e0 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-13 19:26:10 +00:00
Mihai Alexandru Michis
7686b00958 Backed out 2 changesets (bug 1594752) for causing failures in browser_e10s_switchbrowser.js
CLOSED TREE

Backed out changeset b54107a687e4 (bug 1594752)
Backed out changeset 801d1e226947 (bug 1594752)
2020-05-11 18:11:24 +03:00
Neil Deakin
c4073b529c Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-11 09:03:03 +00:00
Ian Moody
011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Gijs Kruitbosch
3e60b89564 Bug 1634431 - actually update tab colours when container data changes, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D73684
2020-05-04 14:21:22 +00:00
Mélanie Chauvel (ariasuni)
9632cae262 Bug 1560218 - browser.tabs.duplicate() can now specify index and active property r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D67782
2020-05-04 01:11:32 +00:00
Dão Gottwald
042ea1810d Bug 1633635 - Make tab animations obey prefers-reduced-motion. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D72791
2020-04-30 18:43:37 +00:00
jayati
8a94be457d Bug 1634012 - Remove the browser.tabs.showAudioPlayingIcon pref.r=dao
Differential Revision: https://phabricator.services.mozilla.com/D73084
2020-04-29 17:22:48 +00:00
Dão Gottwald
4c346b3be6 Bug 1633781 - Remove activemedia-blocked icon from tab when discarding browser. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73009
2020-04-29 09:23:55 +00:00
Dão Gottwald
885b51f04c Bug 1632319 - Remove soundplaying icon from tab when discarding browser. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D72656
2020-04-27 23:49:35 +00:00
Nika Layzell
975ef89398 Bug 1625513 - Part 1: Perform onMayChangeProcess handling within DocumentLoadListener, r=mattwoodrow,pbone,droeh,necko-reviewers,valentin
When I first added this method last year, I added it in JS, handled from within
SessionStore.jsm, as that was the easiest place to do it. Now that
DocumentLoadListener exists, it makes more sense to handle this logic directly
from within that code.

Many parts of the process switch are still handled by frontend JS, such as
selecting remote types, and performing toplevel process switches.

Differential Revision: https://phabricator.services.mozilla.com/D68594
2020-04-21 22:33:00 +00:00
Cosmin Sabou
190731f374 Backed out 5 changesets (bug 1625513) for bc failures on browser_identity_UI.js. CLOSED TREE
Backed out changeset 88ac5d853e38 (bug 1625513)
Backed out changeset 8ac6db819435 (bug 1625513)
Backed out changeset cc19c74910d1 (bug 1625513)
Backed out changeset 8c235f0f967c (bug 1625513)
Backed out changeset 24a646225c68 (bug 1625513)
2020-04-22 00:17:08 +03:00
Nika Layzell
8438107f7a Bug 1625513 - Part 1: Perform onMayChangeProcess handling within DocumentLoadListener, r=mattwoodrow,pbone,droeh,necko-reviewers,valentin
When I first added this method last year, I added it in JS, handled from within
SessionStore.jsm, as that was the easiest place to do it. Now that
DocumentLoadListener exists, it makes more sense to handle this logic directly
from within that code.

Many parts of the process switch are still handled by frontend JS, such as
selecting remote types, and performing toplevel process switches.

Differential Revision: https://phabricator.services.mozilla.com/D68594
2020-04-21 18:33:39 +00:00
Noemi Erli
6ce4e6b1e0 Backed out 4 changesets (bug 1625513) for causing assertion in WindowGlobalChild.cpp
Backed out changeset 0366bbc9e0f7 (bug 1625513)
Backed out changeset 3554e0be2e66 (bug 1625513)
Backed out changeset ad09a911bc43 (bug 1625513)
Backed out changeset f2dbff5d584f (bug 1625513)
2020-04-20 22:28:20 +03:00
Nika Layzell
8624c6d38b Bug 1625513 - Part 1: Perform onMayChangeProcess handling within DocumentLoadListener, r=mattwoodrow,pbone,droeh,necko-reviewers,valentin
When I first added this method last year, I added it in JS, handled from within
SessionStore.jsm, as that was the easiest place to do it. Now that
DocumentLoadListener exists, it makes more sense to handle this logic directly
from within that code.

Many parts of the process switch are still handled by frontend JS, such as
selecting remote types, and performing toplevel process switches.

Differential Revision: https://phabricator.services.mozilla.com/D68594
2020-04-20 16:57:01 +00:00
aarushivij
bca188c461 Bug 1631416 - Remove unused gBrowser._XUL_NS r=dao
Differential Revision: https://phabricator.services.mozilla.com/D71563
2020-04-20 14:57:54 +00:00
Dão Gottwald
0f5c169db7 Bug 1630167 - Remove busy, progress, pendingicon attributes when discarding browser. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D71302
2020-04-17 20:13:36 +00:00