Commit Graph

494 Commits

Author SHA1 Message Date
Nika Layzell
e5267e854c 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
4c16085c87 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
b7903cea7a 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
Oana Pop Rus
0842848548 Backed out 2 changesets (bug 1625513) for bc failures in browser/base/content/test/siteIdentity/browser_identity_UI.js on a CLOSED TREE
Backed out changeset 876b33334577 (bug 1625513)
Backed out changeset 69f75d37ae8e (bug 1625513)
2020-04-09 00:57:32 +03:00
Dão Gottwald
6c448c34cd Bug 1627969 - Remove the megabar pref. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D70023
2020-04-08 19:04:24 +00:00
Nika Layzell
5e936cb7d5 Bug 1625513 - Part 1: Perform onMayChangeProcess handling within DocumentLoadListener, r=mattwoodrow,pbone,droeh
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-08 16:56:37 +00:00
Nika Layzell
4e2290e8e6 Bug 1616353 - Part 7.4: Pass nsOpenWindowInfo through tabbrowser, r=Gijs
The interface changes which browser.js and tabbrowser.js are being updated for
are performed in earlier parts. This patch just covers the required changes to
frontend code to propagate this information down to the nsFrameLoader when it is
created.

Differential Revision: https://phabricator.services.mozilla.com/D67053
2020-04-07 21:39:37 +00:00
Cosmin Sabou
6cffd2c78f Backed out 2 changesets (bug 1625513) for causing several reftest failures. CLOSED TREE
Backed out changeset 64dfd2e32a7b (bug 1625513)
Backed out changeset a78ae89b25b6 (bug 1625513)
2020-04-06 20:11:51 +03:00
Cosmin Sabou
357a0887a1 Backed out 24 changesets (bug 1616353) for fission assertion failures nsGlobalWindowOuter.cpp.
Backed out changeset 3a43210e4900 (bug 1616353)
Backed out changeset cb77e9149cf8 (bug 1616353)
Backed out changeset 3aacc7cfe33f (bug 1616353)
Backed out changeset c026b06063a5 (bug 1616353)
Backed out changeset 580e790c5d17 (bug 1616353)
Backed out changeset 6f09bc1c476d (bug 1616353)
Backed out changeset 6955906262c0 (bug 1616353)
Backed out changeset a7700472807a (bug 1616353)
Backed out changeset a4735096e01b (bug 1616353)
Backed out changeset bd1706c57d91 (bug 1616353)
Backed out changeset 363c13296fda (bug 1616353)
Backed out changeset e414df387524 (bug 1616353)
Backed out changeset 765d3364cca0 (bug 1616353)
Backed out changeset 8a13355b4ac4 (bug 1616353)
Backed out changeset ada17fb8fca7 (bug 1616353)
Backed out changeset 6b6b99af186d (bug 1616353)
Backed out changeset ea966e78b296 (bug 1616353)
Backed out changeset cb88e0bbb3b9 (bug 1616353)
Backed out changeset f89a89015114 (bug 1616353)
Backed out changeset ae6058552969 (bug 1616353)
Backed out changeset f42bb5b48c1b (bug 1616353)
Backed out changeset 1ab9d22c73bb (bug 1616353)
Backed out changeset 2692c2c1396b (bug 1616353)
Backed out changeset 11a279c8da08 (bug 1616353)
2020-04-06 20:03:02 +03:00
Nika Layzell
2ad3a8351d Bug 1625513 - Part 1: Perform onMayChangeProcess handling within DocumentLoadListener, r=mattwoodrow,pbone,droeh
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-06 15:17:40 +00:00
Nika Layzell
1c99918951 Bug 1616353 - Part 7.4: Pass nsOpenWindowInfo through tabbrowser, r=Gijs
The interface changes which browser.js and tabbrowser.js are being updated for
are performed in earlier parts. This patch just covers the required changes to
frontend code to propagate this information down to the nsFrameLoader when it is
created.

Differential Revision: https://phabricator.services.mozilla.com/D67053
2020-04-06 14:30:07 +00:00
Zibi Braniecki
19ebcdc58b Bug 1602808 - Revert Window Title to use DTD. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D68661
2020-04-01 18:44:03 +00:00
Narcis Beleuzu
5e4aeca080 Backed out changeset 16d82f57e0fb (bug 1602808) for bc failures on browser_privatebrowsing_windowtitle.js . CLOSED TREE 2020-04-01 10:24:08 +03:00
Zibi Braniecki
5914374212 Bug 1602808 - Revert Window Title to use DTD. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D68661
2020-03-31 23:52:03 +00:00
Emma Malysz
cd5c0033bd Bug 1624511, ensure that tab crashes within the same content process can be restored. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D68318
2020-03-27 15:28:11 +00:00
Mike Conley
d6296f089e Bug 1618936 - Make the front-end more robust in how it handles content process launch failures. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D67003
2020-03-20 19:50:20 +00:00
Andrea Marchesini
0fb9104888 Bug 1531289 - target=_blank with a download should close the download tab, r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66454
2020-03-19 13:03:14 +00:00
Coroiu Cristina
adde840cf3 Backed out changeset 0453b0a0c49d (bug 1531289) for browser-chrome failures at uriloader/exthandler/tests/mochitest/browser_auto_close_window.js on a CLOSED TREE 2020-03-18 15:55:43 +02:00
Andrea Marchesini
f31ee62e31 Bug 1531289 - target=_blank with a download should close the download tab, r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66454
2020-03-18 12:08:24 +00:00
Matt Woodrow
d77d408034 Bug 1620875 - Suppress extra onStateChange(STATE_START) notifications from RemoteWebProgress when switching DocumentChannel with a real channel. r=Gijs,nika
Note that this also suppresses notifications from the initial about:blank in the new process, and updates the tabbrowser to not expect those.

Differential Revision: https://phabricator.services.mozilla.com/D65923
2020-03-17 00:50:29 +00:00
Dão Gottwald
cac33ac967 Bug 1610479 - Remove UrlbarInput's dependency on focusAndSelectUrlBar. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D66954
2020-03-16 15:53:32 +00:00
Marco Bonardo
85b4838b84 Bug 1621328 - Move CreateExposableURI into nsIOService. r=Gijs,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D66269
2020-03-13 12:44:36 +00:00
Ed Lee
361cbdb4a5 Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128
2020-03-13 23:38:52 +00:00
Dão Gottwald
8ecbcda93d Bug 1610475 - Move URLBarSetURI to UrlbarInput. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D65535
2020-03-06 16:27:16 +00:00
Alastor Wu
17a07c5626 Bug 1577890 - part6 : remove browser's methods which were used for android media control. r=baku
These methods were used for media control and audio focus on Fennec, and we don't need them anymore.

Differential Revision: https://phabricator.services.mozilla.com/D65262
2020-03-05 06:15:33 +00:00
Morgan Reschenberg
630db0167f Bug 1617544: Add tabHasCustomZoom property to tabbrowser to correctly store state when siteSpecific zoom is disabled. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D65036
2020-03-04 02:30:07 +00:00
Gijs Kruitbosch
726ca4d4e7 Bug 1618379 - remove Web Replay (recordExecution/replayExecution) remnants from browser code, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D64747
2020-02-28 16:03:08 +00:00
Dão Gottwald
96083649f7 Bug 1508171 - Remove gBrowser.initialBrowser. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D63332
2020-02-19 15:49:19 +00:00
Zibi Braniecki
8954af4b6e Bug 1613801 - Don't include brand name in the window title on Mac. r=fluent-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D62391
2020-02-18 20:07:46 +00:00
shindli
6ce24c62d0 Backed out changeset e5c72e92c4dc (bug 1613801) for causing bc permafailures in browser_privatebrowsing_windowtitle.js CLOSED TREE 2020-02-18 03:07:08 +02:00
Zibi Braniecki
33378083a9 Bug 1613801 - Don't include brand name in the window title on Mac. r=fluent-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D62391
2020-02-17 14:39:00 +00:00
Nika Layzell
08ee11d536 Bug 1610614 - Part 2: Check for gFissionBrowser match in swapBrowsersAndCloseOther, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D61924
2020-02-10 21:34:30 +00:00
Mohd Umar Alam
b4314a566b Bug 356980 - Added context menu to tab manager menu. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D61799
2020-02-10 19:30:10 +00:00
Nihanth Subramanya
fd86f8fa69 Bug 1608713 - Add nsIWebNavigation load flags to force TRR mode and use them to load captive portal tabs with TRR disabled. r=valentin,Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D60860
2020-01-24 17:18:35 +00:00
Marco Bonardo
68383dc434 Bug 1601052 - Wait for both TabSelect and urlbar focus changes from the tab switcher. r=dao
The Async Tab Switcher seems to fire the TabSelect event in parallel with focus
changes, making the behavior non-predictable, because we need a stable situation
where both events happened.

Differential Revision: https://phabricator.services.mozilla.com/D61353
2020-01-31 15:10:27 +00:00
Emma Malysz
7466d7f29f Bug 1610463, move _setTabAttributes back into addTab because it was incorrectly named r=dao
Differential Revision: https://phabricator.services.mozilla.com/D61232
2020-01-29 15:17:05 +00:00
Mike Conley
49abd29c1d Bug 1576917 - Port PopupBlocker to JSWindowActors to make it Fission-compatible. r=NeilDeakin
This patch was started by Alex Vamvounis <a.vamvounis@gmail.com> and finished by
Mike Conley <mconley@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D53075
2020-01-22 21:24:19 +00:00
Doug Thayer
384b27b689 Bug 1596592 - Warm tab being switched to early during tab removal r=mconley,dao
Tab switch can be expensive if a page has a beforeunload handler. We should
start warming up the next tab to be shown early in the process of tab removal
to compensate for this. We could only do this if we know we have a
beforeUnload handler, but there shouldn't be any negative side effects of
getting started on the tab switch early regardless.

Differential Revision: https://phabricator.services.mozilla.com/D53099
2020-01-22 17:15:21 +00:00
Emma Malysz
701c209817 Bug 1607718, make addTab helper methods private r=dao
Differential Revision: https://phabricator.services.mozilla.com/D59892
2020-01-18 00:29:30 +00:00
Gijs Kruitbosch
fad91b3cec Bug 1608545 - ensure userContextId inherited from relatedTab is used throughout addTab and test for it, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D60017
2020-01-16 13:54:21 +00:00
Dimi Lee
e83925623c Bug 1600878 - P2. Use contentBlockingEvents in WindowGlobalParent instead of contentBlockingEvent in RemoteSecurityUI r=timhuang,Ehsan
ContentBlockingEvent in RemoteSecurityUI is updated after receiving a notification from a child process.
Since contentBlockingEvent will be removed from the child, this patch removes the use of
contentBlockingEvent in RemoteSecurityUI and uses the API defined in WindowGlobalActor.

Depends on D55621

Differential Revision: https://phabricator.services.mozilla.com/D55622
2019-12-17 11:25:23 +00:00
Abdoulaye Oumar Ly
56f05fd552 Bug 1578131 - (Multi-select tabs) Close window directly instead of removing tabs one by one when all tabs are selected and 'closeWindowWithLastTab' pref enabled. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D58699
2020-01-11 00:34:03 +00:00
Gijs Kruitbosch
abd7001820 Bug 1608036 - fix pinned tabs getting lost when restoring sessions, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D59335
2020-01-10 18:17:07 +00:00
Neil Deakin
05b7c143a8 Bug 1601301, rework webrtc permission granting UI around JSWindowActor, performing the work of determining the ultimate state for the tab icon and menu in the parent rather than the content process, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D56570
2020-01-10 15:09:59 +00:00
Matt Woodrow
8f333e70fe Bug 1603196 - Skip START_STOP notifications from old process being delivered to RemoteWebProgress when process switching during a load. r=kmag,nika
This doesn't block the STATE_START notification from the new process, as we currently have a second start notification (when DocumentChannel redirects to the real channel), so this is unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D56818
2020-01-09 22:31:40 +00:00
Emma Malysz
ae20eb9f28 Bug 1607441, ensure pinned tabs order is correct by updating their position attribute r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D59068
2020-01-08 10:48:43 +00:00
Emma Malysz
2eaff5f3a5 Bug 1242912, batch insert tabs during a session restore instead of adding tabs individually. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D53692
2020-01-07 00:38:24 +00:00
Shane Caraveo
b7031396e4 Bug 1586612 properly handle tab events that happen prior to firing tabs.onCreated r=rpl,Gijs
Ensure that our delay in firing the onCreated (TabOpen) event does not result
in other events happening prior to onCreated.

Differential Revision: https://phabricator.services.mozilla.com/D55865
2019-12-13 20:17:39 +00:00
Dave Townsend
e3e38a1edc Bug 1602123: Add a page action to open the current tab into a standalone window. r=Gijs
The action should open the SSB UI to show the page. No other custom behaviour
is expecgterd at this point.

Differential Revision: https://phabricator.services.mozilla.com/D56283
2019-12-12 20:22:50 +00:00
Dão Gottwald
11f5289a58 Bug 1599544 - Remove the workaround hiding the initial browser. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D56718
2019-12-12 14:06:40 +00:00