Commit Graph

230 Commits

Author SHA1 Message Date
Jared Wein
d2a192e6e0 Bug 1495975 - Maintain visual order when unpinning multiple tabs. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7572
2018-10-03 20:05:01 +00:00
Jared Wein
155ccb4b21 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
2018-10-02 20:12:28 +00:00
Jared Wein
7547f30558 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
2018-10-02 19:41:38 +00:00
Mike Conley
3bc9dd6cb2 Bug 1492950 - Get rid of getBrowserForDocument, getBrowserForContentWindow and _getTabForContentWindow. r=NeilDeakin
Depends on D6716

Differential Revision: https://phabricator.services.mozilla.com/D6718
2018-10-02 17:54:15 +00:00
Mike Conley
31f7955d2a Bug 1492950 - Get tabbrowser.js and browser.js off of _getTabForContentWindow. r=NeilDeakin
Depends on D6715

Differential Revision: https://phabricator.services.mozilla.com/D6716
2018-10-02 17:53:47 +00:00
Mike Conley
10584d530d Bug 1492950 - Get rid of tabbrowser.getBrowserIndexForDocument. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D6706
2018-10-02 17:49:35 +00:00
Jared Wein
2d6a3e988f 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
2018-10-02 16:24:43 +00:00
Bogdan Tara
ad579c1651 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
f42d5228b2 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
2018-10-02 03:19:01 +00:00
Brian Hackett
e72f877834 Bug 1495342 - Add 'Reload and Record Tab' menu item and functionality, r=jlast. 2018-10-01 09:42:50 -10:00
arthur.iakab
aee2718314 Merge mozilla-central to mozilla-inbound 2018-09-29 01:00:35 +03:00
Jared Wein
9d221a8f86 Bug 1480456 - Add 'Select All Tabs' into tab context menu. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7129
2018-09-28 18:17:23 +00:00
Noemi Erli
e092395f45 Backed out changeset 634bcbff6b05 (bug 1480456) for failures in browser_customization_context_menus.js CLOSED TREE 2018-09-28 20:54:07 +03:00
Ehsan Akhgari
7bddc35620 Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-28 14:46:02 -04:00
Noemi Erli
7fb8829472 Backed out 12 changesets (bug 1493563) for failures in test_css-logic-getCssPath.html CLOSED TREE
Backed out changeset d2e83655082f (bug 1493563)
Backed out changeset 1ce58f004593 (bug 1493563)
Backed out changeset 344298c73ee7 (bug 1493563)
Backed out changeset 02b8b073f7d7 (bug 1493563)
Backed out changeset 3ef707008502 (bug 1493563)
Backed out changeset bb2720a401fe (bug 1493563)
Backed out changeset ce0211be57a1 (bug 1493563)
Backed out changeset 83d6c2bf8dc6 (bug 1493563)
Backed out changeset 1844af4cc25b (bug 1493563)
Backed out changeset c8ab17addb7a (bug 1493563)
Backed out changeset a1ff0cd62563 (bug 1493563)
Backed out changeset 932b41e211e0 (bug 1493563)
2018-09-28 21:31:18 +03:00
Ehsan Akhgari
6c662bd61e Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-28 13:24:41 -04:00
Jared Wein
693e3e8e00 Bug 1480456 - Add 'Select All Tabs' into tab context menu. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7129
2018-09-28 14:48:40 +00:00
Marco Bonardo
6ef9e246cd Bug 1493193 - Add an initial UrlbarProvidersManager implementation. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D6508
2018-09-28 14:18:04 +00:00
Brendan Dahl
a327440df4 Bug 1492327 - Mimic XUL activeElement behavior for XUL in XHTML. r=smaug
Return the document element as the activeElement when there is no body
element, the document is chrome privileged, and the document element
is a XUL element.

MozReview-Commit-ID: JFDLAqOmLTS

Differential Revision: https://phabricator.services.mozilla.com/D6448
2018-09-25 16:00:13 +00:00
Jared Wein
899a5a8492 Bug 1482385 - Check if tooltipNode is non-null before dereferencing it. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D6708
2018-09-24 23:14:10 +00:00
Rob Wu
d3b588550f Bug 1393570 - Support cookieStoreId in windows.create extension API r=Gijs,rpl
Other (internal API) changes besides extension API changes:

- This also introduces support for opening a window with multiple tabs
  in a non-default container tab.

- This also adds LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL to the
  gBrowser.loadTabs call, unless allowInheritPrincipal is set.
  For backwards-compatibility, this flag defaults to true.

Depends on D4928

Differential Revision: https://phabricator.services.mozilla.com/D4929
2018-09-19 10:57:48 +00:00
Jonathan Kingston
adaa868721 Bug 1485305 - browser/ Ensure loadURI always passes a triggeringPrincipal() r=Mossop
Differential Revision: https://phabricator.services.mozilla.com/D4551
2018-08-29 15:43:27 +01:00
Brindusan Cristian
6c0094d53f Backed out 10 changesets (bug 1485305) for browser-chrome failures on docshell/test/browser/browser_loadURI.js. CLOSED TREE
Backed out changeset 50439ec01661 (bug 1485305)
Backed out changeset a05e40ef7215 (bug 1485305)
Backed out changeset c99b97b4348b (bug 1485305)
Backed out changeset 75220b2f6669 (bug 1485305)
Backed out changeset e698f2fc1c1a (bug 1485305)
Backed out changeset acce14683c13 (bug 1485305)
Backed out changeset 323773a395cc (bug 1485305)
Backed out changeset 1b74152cabc1 (bug 1485305)
Backed out changeset 4b5c9d5929fc (bug 1485305)
Backed out changeset 238d92348159 (bug 1485305)
2018-09-19 18:47:27 +03:00
Jonathan Kingston
52a379b132 Bug 1485305 - browser/ Ensure loadURI always passes a triggeringPrincipal() r=Mossop
Differential Revision: https://phabricator.services.mozilla.com/D4551
2018-08-29 15:43:27 +01:00
arthur.iakab
f36e6bf3d0 Backed out 10 changesets (bug 1485305)for failing browser chrome tests on browser_loadDisallowInherit.js
Backed out changeset 138b8596a9cd (bug 1485305)
Backed out changeset d9f04aeeeef7 (bug 1485305)
Backed out changeset cd063d8afe4e (bug 1485305)
Backed out changeset 2f8a5a03ccb5 (bug 1485305)
Backed out changeset 8085d1eefd7c (bug 1485305)
Backed out changeset 3aaccb374a59 (bug 1485305)
Backed out changeset 3a111e9e5c9c (bug 1485305)
Backed out changeset 61aa1cfb0b01 (bug 1485305)
Backed out changeset bca973d90acc (bug 1485305)
Backed out changeset 4eb33bf25d6f (bug 1485305)
2018-09-18 20:30:07 +03:00
Jonathan Kingston
b7aabac2a5 Bug 1485305 - browser/ Ensure loadURI always passes a triggeringPrincipal() r=Mossop
Differential Revision: https://phabricator.services.mozilla.com/D4551
2018-08-29 15:43:27 +01:00
Tiberius Oros
75126ef309 Backed out 10 changesets (bug 1485305) for failures at browser/content/browser.js on a CLOSED TREE
Backed out changeset 63c50fd60ae4 (bug 1485305)
Backed out changeset bf0f2adb765e (bug 1485305)
Backed out changeset 721871bb64f1 (bug 1485305)
Backed out changeset e9da73786c5f (bug 1485305)
Backed out changeset e02038177b6b (bug 1485305)
Backed out changeset 35bd32f99f60 (bug 1485305)
Backed out changeset f40900bf8621 (bug 1485305)
Backed out changeset 03632075ac2c (bug 1485305)
Backed out changeset 2fee48378f73 (bug 1485305)
Backed out changeset 6263695b3cb8 (bug 1485305)
2018-09-18 14:46:54 +03:00
Jonathan Kingston
b194222905 Bug 1485305 - browser/ Ensure loadURI always passes a triggeringPrincipal() r=Mossop
Differential Revision: https://phabricator.services.mozilla.com/D4551
2018-08-29 15:43:27 +01:00
Gijs Kruitbosch
9c681e0239 Bug 1488822 - propagate allowScriptsToClose via the frameloader instead of relying on frame scripts, r=mconley,kmag,nika
Differential Revision: https://phabricator.services.mozilla.com/D5775
2018-09-15 08:26:33 +00:00
Coroiu Cristina
7eaf5bd4a0 Backed out 2 changesets (bug 1393570) for build bustage on linux on a CLOSED TREE
Backed out changeset 23f496cd8a42 (bug 1393570)
Backed out changeset e41e69aa9eb5 (bug 1393570)
2018-09-12 20:40:27 +03:00
Rob Wu
886b08d264 Bug 1393570 - Support cookieStoreId in windows.create extension API r=Gijs,rpl
Other (internal API) changes besides extension API changes:

- This also introduces support for opening a window with multiple tabs
  in a non-default container tab.

- This also adds LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL to the
  gBrowser.loadTabs call, unless allowInheritPrincipal is set. Currently
  there are no callers that set this flag, but in case it's desired,
  I added an opt-in via window.arguments[10] in browser.xul/js.

  For single-argument URLs, the flag is an opt-out, since there are
  multiple callers that rely on principal inheritance (bug 1475201).

Depends on D4928

Differential Revision: https://phabricator.services.mozilla.com/D4929
2018-09-12 15:15:22 +00:00
Dale Harvey
02db992aaa Bug 1478348 - Dont show doorhanger on about:newtab. r=johannh
MozReview-Commit-ID: EmHV3OS6Kra
2018-09-12 16:15:03 +01:00
Tiberius Oros
967e769da9 Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE
Backed out changeset 0bb55b604bfd (bug 1493563)
Backed out changeset 8e25c301675a (bug 1493563)
Backed out changeset 4f608b8801d4 (bug 1493563)
Backed out changeset f58d0b1ca088 (bug 1493563)
Backed out changeset eae105f2bf6d (bug 1493563)
Backed out changeset 7a8a0d1cfd69 (bug 1493563)
Backed out changeset dbba8451aab1 (bug 1493563)
Backed out changeset a6141dbd0328 (bug 1493563)
Backed out changeset f4ca3d8fa90e (bug 1493563)
Backed out changeset 56bab7fae64d (bug 1493563)
Backed out changeset 66787e603401 (bug 1493563)
2018-09-26 06:16:22 +03:00
Ehsan Akhgari
d60107096d Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-25 21:02:51 -04:00
Rob Wu
e0ba3f78b4 Bug 1415333 - Use tab.setAttribute instead of tab.setUserContextId r=Gijs
Use tab.setAttribute instead of tab.setUserContextId, in case the XBL
bindings are not ready yet.

Differential Revision: https://phabricator.services.mozilla.com/D5013
2018-09-05 09:53:17 +00:00
Rob Wu
1018b8cd58 Bug 1415333 - Set correct userContextId at window creation r=Gijs
The container tab indicator should also be set on the tab, not just on
the browser. Otherwise it is possible for the indicator to be missing
when a new window is opened.

And previously, if the URL was an "about:blank" URL, the tab in the new
window would use the default container because of the early return in
_handleURIToLoad. This is fixed by accounting for window.arguments[6]
when initializing the default (about:blank) tab in the tabbrowser.

Unit tests for these code path will be added in bug 1393570.

Differential Revision: https://phabricator.services.mozilla.com/D4920
2018-09-05 09:39:56 +00:00
Brian Grinstead
9daf9f596c Bug 1485157 - Check to make sure document.activeElement exists before attempting to blur it;r=Gijs
We're ending up in a case here where document.activeElement is null in
browser.xhtml but it's a <browser> tag in browser.xul.

We'll need more analysis and testing to decide if we want the HTML or XUL
activeElement behavior, and then adjust as needed. But in the meantime,
this unbreaks a bunch of browser.xhtml tests and is a safe null check in
both cases.

Differential Revision: https://phabricator.services.mozilla.com/D4705
2018-09-04 20:46:08 +00:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Abdoulaye O. Ly
d314ec5174 Bug 1483786 - Add aOptions object param to 'replaceTabsWithWindow' function in browser/base/content/tabbrowser.js file. r=jaws
replaceTabsWithWindow calls replaceTabWithWindow to create a new window window with a first tab.
But unlike the later function, the former cited function don't take an object param (aOptions) containing informations such as the mouse position (which helps set the new window position).
To adress the issue, we added support for passing an option param to replaceTabsWithWindow which just transferts the param to replaceTabWithWindow.

Differential Revision: https://phabricator.services.mozilla.com/D4735
2018-08-31 05:11:34 +00:00
Jared Wein
50b04dc067 Bug 1481473 - Hide the 'Duplicate Tab' menuitem when there is a selection of tabs. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D4549
2018-08-29 18:07:30 +00:00
Jared Wein
411550e070 Bug 1468440 - Update close, unblock audio and mute/unmute button tooltips for multi-selected tabs. r=mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D4390
2018-08-29 18:44:35 +00:00
Arshad Kazmi
50ab04fb5c Bug 1396684 - Allow extensions to access tab's "attention" flag r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3984
2018-08-28 14:41:31 +00:00
Gijs Kruitbosch
1def1f45ac Bug 1486079 - create initial browser dynamically so we can set various attributes from the start, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D4248
2018-08-28 11:07:34 +00:00
Bianca Danforth
0a93f06dfe Bug 1457226 - Revert Savant Shield study commits; r=rhelmer
The Savant pref flip Shield study was ended on 08-20-18 (https://bugzilla.mozilla.org/show_bug.cgi?id=1457226#c28), so this patch removes all temporary study code from Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D4285
2018-08-27 18:17:43 +00:00
Oriol Brufau
2590091dc8 Bug 1479129 - Implement support for updateProperties.highlighted in browser.tabs.update(). r=mixedpuppy,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3800
2018-08-23 22:09:45 +00:00
Dorel Luca
4e6ab61008 Merge mozilla-central to autoland 2018-08-21 12:57:58 +03:00
Mike Conley
f9f2a53781 Bug 1478112 - Get rid of preselect tabbox workaround, and adjust focus after changing visible tab right away. r=dao
The "select" event handler workaround was originally added in bug 1379270 to make it
possible to focus and select the URL bar a little bit later. This ugly hack was to
workaround an issue with WebExtensions that override about:newtab with the
chrome_url_overrides property (the issue would be that the URL bar would not be
properly focused and selected if about:newtab was overridden).

Back in the day, this was necessary because the overriding URL was fully displayed
in the URL bar (moz-webextension://...). These days, when about:newtab is overridden,
the URL bar is still empty - we just end up showing the information about the
WebExtension overriding about:newtab to the left of the URL bar.

So I think we can remove the old workaround.

Differential Revision: https://phabricator.services.mozilla.com/D3447
2018-08-21 06:55:47 +00:00
Brindusan Cristian
88692eb22a Backed out changeset 5a6ea725be3f (bug 1472476) for ESlint failure on /sessionstore/TabState.jsm:15:1. CLOSED TREE 2018-08-20 19:06:53 +03:00
Dave Townsend
93c80fae0a Bug 1472476: Allow restoring sessions from before favicons were only allowed to be local schemes. r=adw
Re-introduces support for setting remote icons provided a loading principal is
passed. Removes some now defunkt code from sessionstore.

Differential Revision: https://phabricator.services.mozilla.com/D3123
2018-08-20 15:46:39 +00:00
Dave Townsend
9f2e1e5621 Bug 1472476: Allow restoring sessions from before favicons were only allowed to be local schemes. r=adw
Re-introduces support for setting remote icons provided a loading principal is
passed. Removes some now defunkt code from sessionstore.

Differential Revision: https://phabricator.services.mozilla.com/D3123
2018-08-20 12:32:27 -07:00