Commit graph

269 commits

Author SHA1 Message Date
Abdoulaye O. Ly
124fcbe21d Bug 1500098 - Reopen multi-selected tabs in container. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D11145

--HG--
extra : moz-landing-system : lando
2018-11-12 18:43:48 +00:00
Cosmin Sabou
00f29cfcf6 Merge mozilla-central to mozilla-inbound. 2018-11-10 13:51:14 +02:00
Jared Wein
0aa2d95695 Bug 1497980 - Add a 'Duplicate Tabs' menuitem when multiple tabs are selected. r=Felipe,dao
Differential Revision: https://phabricator.services.mozilla.com/D11281

--HG--
extra : moz-landing-system : lando
2018-11-09 21:51:40 +00:00
Andreea Pavel
f5408b7aeb Backed out changeset 4ff11c25342d (bug 1497980) for failing bc at browser/base/content/test/tabs/browser_multiselect_tabs_duplicate.js on a CLOSED TREE 2018-11-09 22:08:56 +02:00
Jared Wein
b357a678c4 Bug 1497980 - Add a 'Duplicate Tabs' menuitem when multiple tabs are selected. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D11281

--HG--
extra : moz-landing-system : lando
2018-11-09 17:19:03 +00:00
Paolo Amadini
cdb5b4eb19 Bug 1471403 - Part 4 - Convert "notificationbox" to a custom class. r=bgrins
As part of the conversion, support for notificationsHidden and children that are not notifications is also removed.

Differential Revision: https://phabricator.services.mozilla.com/D10894

--HG--
rename : toolkit/content/widgets/notification.xml => toolkit/content/widgets/notificationbox.js
extra : rebase_source : 36a5412e1e9a9dc591fd486d1123c1f763a6f173
2018-11-09 14:58:18 +00:00
Paolo Amadini
ce13039af3 Bug 1471403 - Part 2 - Lazify the creation of "notificationbox" elements. r=dao,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D10892

--HG--
extra : rebase_source : f66fe90d780c3d446f4a065c0397cbb37f43cb0c
2018-11-09 14:38:49 +00:00
Gurzau Raul
59e4d470eb Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-08 21:16:11 +02:00
Paolo Amadini
4270e25239 Bug 1505791 - Separate the browser panel from the notification box. r=dao,bgrins
This clarifies the intention of each caller, and opens up the possibility of converting the notificationbox element to a class that creates the DOM nodes on demand.

Differential Revision: https://phabricator.services.mozilla.com/D10577

--HG--
extra : rebase_source : e311dd7144cf9f7cd513761f97bb3dd0a35dce71
extra : source : 9532194794ba9c87025da92cf70f76c21a277220
2018-11-08 15:31:37 +00:00
Jared Wein
dde3450d5d Bug 1502083 - Move the 'Close Other Tabs' and 'Close Tabs to the Right' back to the main tab context menu and out of a submenu. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D11223

--HG--
extra : moz-landing-system : lando
2018-11-08 09:11:42 +00:00
Jared Wein
938dee6e20 Bug 1504274 - Close Tabs to the Right in a multiselect context should close all tabs to the right of the contextual tab that are not selected. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D11250

--HG--
extra : moz-landing-system : lando
2018-11-08 11:00:13 +00:00
Mike Conley
b457d05277 Bug 1356920 - Don't calculate and flush layout inside browser-tabsintitlebar.js. r=dao
Folded together the following revisions:

Bug 1356920 - Remove all toolbar layout code from browser-tabsintitlebar. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7805

***

Bug 1356920 - Move TabsToolbar and toolbar-menubar into the titlebar, and put the titlebar into the navigator-toolbox. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7806

***

Bug 1356920 - Put a spacer in the menubar to push titlebar items to the end, and stop the menu from stretching vertically. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7822

***

Bug 1356920 - Adjust CSS rules for new XUL document structure. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7807

***

Bug 1356920 - Fix placement of tracking protection icon. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7808

***

Bug 1356920 - Get rid of the spacer before the window caption buttons now in the TabsToolbar. r=dao

The spacer isn't necessary, since the tabbrowser-tabs node will flex to fill the available
space anyways.

Differential Revision: https://phabricator.services.mozilla.com/D7809

***

Bug 1356920 - Move movingtab attribute to navigator-toolbox to account for TabsToolbar not being a sibling of nav-bar anymore. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7810

***

Bug 1356920 - Hide the window caption buttons hbox if the native titlebar is being drawn. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7811

***

Bug 1356920 - Keep the macOS window caption buttons vertically centered when drag space is enabled. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7812

***

Bug 1356920 - Switch window caption XUL nodes from IDs to classes so that more than one can exist per doc. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7813

***

Bug 1356920 - Move titlebar items out into a preprocessed file to be included at build-time. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7814

***

Bug 1356920 - Reorganize TabsToolbar contents to force most items to the bottom of it. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D9669

***

Bug 1356920 - Update CSS to account for new DOM structure under TabsToolbar. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D9670

***

Bug 1356920 - Fix titlebar button rendering when using a lwtheme without the Windows compositor. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D9671

***

Bug 1356920 - Put an ordinal rule on the window caption buttons to help ensure they stay at the end of the toolbar. r=dao

This is to ensure that the buttons are placed after the post-tabs titlebar placeholder.

Differential Revision: https://phabricator.services.mozilla.com/D7815

***

Bug 1356920 - Stretch window caption buttons to fill vertical space on Windows 8+ when using extra drag space. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7817

***

Bug 1356920 - Update onViewToolbarsPopupShowing to search for toolbars that are grandchildren of the toolbox. r?jaws

Differential Revision: https://phabricator.services.mozilla.com/D7818

***

Bug 1356920 - Hide the titlebar items in the TabsToolbar if the menubar is being displayed. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7825

***

Bug 1356920 - Fix selector for titlebar. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7826

***

Bug 1356920 - Fix titlebar themeing on Linux. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7828

***

Bug 1356920 - Remove browser-tabsintitlebar layout flushes from performance test whitelist. r?florian

Differential Revision: https://phabricator.services.mozilla.com/D7829

***

Bug 1356920 - Fix bottom border of tabbar to account for new DOM structure. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7830

***

Bug 1356920 - Hide the titlebar-buttonbox-container when in fullscreen mode. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7833

--HG--
extra : rebase_source : fe4acce0443df2fad8e15bf54733b7d810cdd2ca
2018-10-25 12:03:14 -04:00
rjairath
097ef1e594 Bug 1494045 - Remove mURIFixup and use Services.uriFixup r=dao
Differential Revision: https://phabricator.services.mozilla.com/D10015

--HG--
extra : moz-landing-system : lando
2018-11-02 09:04:20 +00:00
Gijs Kruitbosch
b2642e4564 Bug 1362774 - don't create about:blank for the initial browser, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D10338

--HG--
extra : rebase_source : dc525622761d3d39c652096125c93de9464f345e
2018-11-01 11:06:32 +00:00
Jay Lim
b232c83d80 Bug 1472212 - Ensure that tab does not show busy or burst status whenever we navigate to about:home, about:newtab, or about:welcome in a new window. r=Gijs
Now that we have moved some about: pages to the privileged content process,
opening these URLs from a non-privileged content process will trigger SessionStore
to restore the tab state due to a process flip. We will set favicons for these
URLs earlier to avoid flickering and improve perceived performance.

This patch also prevents the spinner whenever a page with a local about: URI
(about:blank and about: pages that resolve to jar:// or file:// URIs) is
loaded from a process that the URI cannot load in (e.g. loading about:newtab
in the web content process), as well as during tab duplication or session
restoration for such local about: URIs.

Before this patch, there were additional frames when opening a new window, causing
browser/base/content/test/performance/browser_windowopen.js to fail. This patch
will reduce the number of frames when opening a new window.

MozReview-Commit-ID: yjj2964KSz

--HG--
extra : source : cecc2d52e72e7c6e61137a9147735cb07a079d51
extra : intermediate-source : 21a6f1a83c73ce4fff654d4b2118e98375f0a528
extra : histedit_source : e8b8132856b7ee27b530798c2721b76118de655e
2018-07-20 16:43:12 -04:00
Ciure Andrei
60ea98ca60 Backed out 10 changesets (bug 1501044, bug 1472212) for fetch-destination.https.html perma failure CLOSED TREE
Backed out changeset aa35078cabaa (bug 1472212)
Backed out changeset bf02793f802d (bug 1472212)
Backed out changeset 95a7ef6102a6 (bug 1472212)
Backed out changeset 7b7fa6ab2229 (bug 1472212)
Backed out changeset 4fe4ec18f2f3 (bug 1472212)
Backed out changeset 18f824674b76 (bug 1472212)
Backed out changeset 1978a7837502 (bug 1472212)
Backed out changeset 21a6f1a83c73 (bug 1472212)
Backed out changeset 48242d39d532 (bug 1472212)
Backed out changeset 0b5cf2f4305a (bug 1501044)
2018-10-30 23:31:10 +02:00
Jay Lim
6fe4aee23e Bug 1472212 - Ensure that tab does not show busy or burst status whenever we navigate to about:home, about:newtab, or about:welcome in a new window. r=Gijs
Now that we have moved some about: pages to the privileged content process,
opening these URLs from a non-privileged content process will trigger SessionStore
to restore the tab state due to a process flip. We will set favicons for these
URLs earlier to avoid flickering and improve perceived performance.

This patch also prevents the spinner whenever a page with a local about: URI
(about:blank and about: pages that resolve to jar:// or file:// URIs) is
loaded from a process that the URI cannot load in (e.g. loading about:newtab
in the web content process), as well as during tab duplication or session
restoration for such local about: URIs.

Before this patch, there were additional frames when opening a new window, causing
browser/base/content/test/performance/browser_windowopen.js to fail. This patch
will reduce the number of frames when opening a new window.

MozReview-Commit-ID: yjj2964KSz

--HG--
extra : rebase_source : a5588b5b6496c983350f591602d0959f906235d5
extra : intermediate-source : 176f3ee14e67f493bafefbd599fbf0fe194a25a6
extra : source : cecc2d52e72e7c6e61137a9147735cb07a079d51
2018-07-20 16:43:12 -04:00
Csoregi Natalia
cc313f779c Backed out 9 changesets (bug 1472212) for browser-chrome tests run issues on Linux x64 asan and failures on browser_ext_windows_create_tabId.js. CLOSED TREE
Backed out changeset 18e46df44cd1 (bug 1472212)
Backed out changeset 2e5de66c1f60 (bug 1472212)
Backed out changeset b94f9883aef0 (bug 1472212)
Backed out changeset ebdca743668c (bug 1472212)
Backed out changeset f8a06d01437e (bug 1472212)
Backed out changeset b6996abc7d90 (bug 1472212)
Backed out changeset 24c257cd18c3 (bug 1472212)
Backed out changeset 176f3ee14e67 (bug 1472212)
Backed out changeset b4baa63e5b1b (bug 1472212)
2018-10-30 01:58:21 +02:00
Jay Lim
6687faac63 Bug 1472212 - Ensure that tab does not show busy or burst status whenever we navigate to about:home, about:newtab, or about:welcome in a new window. r=Gijs
Now that we have moved some about: pages to the privileged content process,
opening these URLs from a non-privileged content process will trigger SessionStore
to restore the tab state due to a process flip. We will set favicons for these
URLs earlier to avoid flickering and improve perceived performance.

This patch also prevents the spinner whenever a page with a local about: URI
(about:blank and about: pages that resolve to jar:// or file:// URIs) is
loaded from a process that the URI cannot load in (e.g. loading about:newtab
in the web content process), as well as during tab duplication or session
restoration for such local about: URIs.

Before this patch, there were additional frames when opening a new window, causing
browser/base/content/test/performance/browser_windowopen.js to fail. This patch
will reduce the number of frames when opening a new window.

MozReview-Commit-ID: yjj2964KSz

--HG--
extra : rebase_source : b5087686ad3e1c3eb16d0be9a8031b01d14cb6ab
extra : source : cecc2d52e72e7c6e61137a9147735cb07a079d51
2018-07-20 16:43:12 -04:00
Mike Conley
3269c2c585 Bug 1501789 - Use the JSM global to create permanentKeys to avoid leaking windows after tab tear out / adoption. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D9975

--HG--
extra : moz-landing-system : lando
2018-10-28 01:53:14 +00:00
Mark Banner
e7f2c79ef9 Bug 1502069 - isTabEmpty should be a property on the tab rather than a global function. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9926

--HG--
extra : moz-landing-system : lando
2018-10-26 16:42:11 +00:00
Vineeth Karra
f72bdd91ff Bug 1499661 - use 'this' instead of 'gBrowser' in moveTabsToStart and moveTabsToEnd, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9374

--HG--
extra : moz-landing-system : lando
2018-10-22 15:56:01 +00:00
Csoregi Natalia
84278bdac8 Backed out changeset e9ce17673999 (bug 1499661) for missing bugzilla component for PHABTEST. CLOSED TREE
--HG--
extra : rebase_source : cabe1d0a348a8ecd6a4f7b098680c9dad81fac19
2018-10-22 17:25:49 +03:00
Vineeth Karra
a8cf5d4304 Bug 1499661 - use 'this' instead of 'gBrowser' in moveTabsToStart and moveTabsToEnd, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9374

--HG--
extra : moz-landing-system : lando
2018-10-22 13:08:27 +00:00
Matthew Noorenberghe
b059591dff Bug 1435871 - Implement a basic tab-modal dialog container for Payment Request. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D7934

--HG--
extra : moz-landing-system : lando
2018-10-20 03:39:32 +00:00
Ryan Hendrickson
0c271cf6af Bug 1419947 - Extend tabbrowser to track and use tab successors; r=dao
The successor of a tab is similar to the owner of a tab, in that if an active
tab is closed, the successor will be activated next. The differences are that
successor always defaults to being unset (an extension can set it through a
not-yet-implemented API), whereas tabbrowser sets owner to be the opener of
background tabs; successor is always consulted when an active tab is closed,
whereas the use of owner is gated by a pref; and when a tab is closed, hidden,
or moved to another window, any tabs whose successor is the affected tab
inherit that tab's successor, whereas in the parallel situation with owners,
the owner of such tabs is simply set to null.

Differential Revision: https://phabricator.services.mozilla.com/D4731

--HG--
extra : moz-landing-system : lando
2018-10-19 01:08:06 +00:00
Brindusan Cristian
1420f3437e Backed out 2 changesets (bug 1435871) for multiple browser-chrome failures on payments. CLOSED TREE
Backed out changeset 0f7592b662e2 (bug 1435871)
Backed out changeset 039f6d65036e (bug 1435871)
2018-10-19 12:36:13 +03:00
Matthew Noorenberghe
28552cda7d Bug 1435871 - Implement a basic tab-modal dialog container for Payment Request. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D7934

--HG--
extra : moz-landing-system : lando
2018-10-19 05:06:22 +00:00
Dorel Luca
001975a583 Backed out 3 changesets (bug 1435871) for mochitest crashes. CLOSED TREE
Backed out changeset 8eab3320b8c5 (bug 1435871)
Backed out changeset 29777ddd9def (bug 1435871)
Backed out changeset afdc3066f12c (bug 1435871)
2018-10-17 23:06:14 +03:00
Alex Gaynor
0f75e99151 Bug 1127393 - removed three now-unused helper functions for handling the window and document as CPOWs; r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D8985

--HG--
extra : moz-landing-system : lando
2018-10-17 15:47:28 +00:00
Matthew Noorenberghe
72a245b99d Bug 1435871 - Implement a basic tab-modal dialog container for Payment Request. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D7934

--HG--
extra : moz-landing-system : lando
2018-10-17 18:46:27 +00:00
Ed Lee
a62355e0b1 Bug 1460423 - "New Tab" tab label is empty after restore previous session if restoring about:blank or new tabs set to "Blank Page" r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D8750

--HG--
extra : moz-landing-system : lando
2018-10-17 11:16:38 +00:00
Jared Wein
1994dde2de Bug 629232 - Update remoteness of swapped browsers to ensure we can load them in a new window. r=mconley
We also need to guard against mStateFlags being undefined.

Differential Revision: https://phabricator.services.mozilla.com/D7839

--HG--
extra : moz-landing-system : lando
2018-10-17 14:42:48 +00:00
Andrew Gregory
86547606ba Bug 1497479 - Fix indentation in discardBrowser r=dao
Differential Revision: https://phabricator.services.mozilla.com/D8559

--HG--
extra : moz-landing-system : lando
2018-10-17 10:31:38 +00:00
Oriol Brufau
aed30a6f84 Bug 1499340 - Remove TabSelect event listener from _setupEventListeners. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D8862

--HG--
extra : moz-landing-system : lando
2018-10-17 08:49:49 +00:00
Jared Wein
d38a852ff0 Bug 1480532 - Remove 'Reload All Tabs' from tab context menu. r=Felipe
I left off the part about adding Reload Tabs to the All Tabs menu since the specs don't mention how this would appear with the New Container Tab menuitem and the Tab Manager project has been split off from the multiselect tabs project.

Differential Revision: https://phabricator.services.mozilla.com/D8274

--HG--
extra : moz-landing-system : lando
2018-10-12 21:16:44 +00:00
Dão Gottwald
3f7e0d3561 Bug 1493343 - Make adoptTab remove the new tab if the original tab couldn't be adopted. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D8077

--HG--
extra : moz-landing-system : lando
2018-10-09 16:38:02 +00:00
Jason Laster
23c04604af Revert "Backed out changeset edc506b37439 (bug 1495300) for failing at /browser_toolbox_options_disable_buttons.js on a CLOSED TREE"
This reverts commit f42585540c95dd9a2874a75f0a10125a313979f9.
2018-10-05 10:28:46 -04:00
Jared Wein
7535dd6f3a Bug 1496091 - Remove 'Selected' from a couple tab context menuitems for consistency and disable instead of hide the 'Close Tab Options' item for consistency. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7612

--HG--
extra : moz-landing-system : lando
2018-10-03 20:06:26 +00:00
Jared Wein
a4f446bd82 Bug 1495975 - Maintain visual order when unpinning multiple tabs. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7572

--HG--
extra : moz-landing-system : lando
2018-10-03 20:05:01 +00:00
Jared Wein
849eed8400 Bug 1480461 - Add 'Move Tab' sub-menu and 'Move To Start' and 'Move to End' options in tab context menu. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7228

--HG--
extra : moz-landing-system : lando
2018-10-02 20:12:28 +00:00
Jared Wein
c7db0393c6 Bug 1480472 - Replace 'Close Tabs to the Right' and 'Close Other Tabs' with 'Close Tab Options' submenu. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7225

--HG--
extra : moz-landing-system : lando
2018-10-02 19:41:38 +00:00
Mike Conley
e965c5db94 Bug 1492950 - Get rid of getBrowserForDocument, getBrowserForContentWindow and _getTabForContentWindow. r=NeilDeakin
Depends on D6716

Differential Revision: https://phabricator.services.mozilla.com/D6718

--HG--
extra : moz-landing-system : lando
2018-10-02 17:54:15 +00:00
Mike Conley
df8929c37c Bug 1492950 - Get tabbrowser.js and browser.js off of _getTabForContentWindow. r=NeilDeakin
Depends on D6715

Differential Revision: https://phabricator.services.mozilla.com/D6716

--HG--
extra : moz-landing-system : lando
2018-10-02 17:53:47 +00:00
Mike Conley
c31b6c25c3 Bug 1492950 - Get rid of tabbrowser.getBrowserIndexForDocument. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D6706

--HG--
extra : moz-landing-system : lando
2018-10-02 17:49:35 +00:00
Jared Wein
435e84add2 Bug 1480529 - Changed 'Bookmark All Tabs' to 'Bookmark Tab' for single tab selections. r=Felipe
I changed the toolbar context menuitem from 'Bookmark All Tabs' to 'Bookmark Selected Tabs' because it is separated from a specific tab and thus it is not clear which tab would get bookmarked if only one is selected. This seemed much clearer to me in my testing. The wording of 'Bookmark Selected Tabs' is already used elsewhere where we have 'Reload Selected Tabs', 'Close Selected Tabs', etc.

Differential Revision: https://phabricator.services.mozilla.com/D7217

--HG--
extra : moz-landing-system : lando
2018-10-02 16:24:43 +00:00
Bogdan Tara
46ad559c5f Backed out changeset 1f4d7ab6cd6d (bug 1480529) for perma failing on browser_multiselect_tabs_bookmark.js 2018-10-02 18:33:49 +03:00
Jared Wein
1b023a3753 Bug 1480529 - Changed 'Bookmark All Tabs' to 'Bookmark Tab' for single tab selections. r=Felipe
I changed the toolbar context menuitem from 'Bookmark All Tabs' to 'Bookmark Selected Tabs' because it is separated from a specific tab and thus it is not clear which tab would get bookmarked if only one is selected. This seemed much clearer to me in my testing. The wording of 'Bookmark Selected Tabs' is already used elsewhere where we have 'Reload Selected Tabs', 'Close Selected Tabs', etc.

Differential Revision: https://phabricator.services.mozilla.com/D7217

--HG--
extra : moz-landing-system : lando
2018-10-02 03:19:01 +00:00
Brian Hackett
c27c10805b Bug 1495342 - Add 'Reload and Record Tab' menu item and functionality, r=jlast.
--HG--
extra : rebase_source : d8c053278ec3d50367f63219e51cf178b8decf7a
2018-10-01 09:42:50 -10:00
arthur.iakab
f0410f8d4b Merge mozilla-central to mozilla-inbound 2018-09-29 01:00:35 +03:00