Commit Graph

504 Commits

Author SHA1 Message Date
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
Dale Harvey
28d0442384 Bug 1477294 - Hide identity popup when the user reloads. r=johannh
MozReview-Commit-ID: 26f1lSVKiVA
2018-08-18 11:21:30 +01:00
sahil bhosale
78c953c6d5 Bug 1478855 - Use ES6 default parameter in updateBrowserRemotenessByURL. r=dao 2018-08-15 17:24:42 +05:30
Jared Wein
0b29f4fd3a Bug 1476854 - Expose whether tabs are multiselected for accessibility. r=dao,Jamie
MozReview-Commit-ID: 4LAwQxqrKiO
2018-07-31 16:40:17 -04:00
Brian Grinstead
c8b3483e82 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275
2018-08-14 16:22:44 +00:00
Brian Grinstead
610d0593f5 Bug 1442058 - Override loadURI on tabbrowser browsers with an expando property;r=dao
This allows us to remove the XBL binding inheritance, simplifying the tree of
XBL bindings under "browser" and deleting two bindings in the process.

Differential Revision: https://phabricator.services.mozilla.com/D3263
2018-08-14 10:14:56 +00:00
Jonathan Kingston
bb6cd22c00 Bug 1466801 - Flipping disallowInheritPrincipal to be allow. r=ckerschb r=gijs 2018-07-16 10:17:51 +01:00
Bogdan Tara
349045ca70 Backed out changeset c9b0ce46ad4f (bug 1466801) for pause-remove-from-document-networkState.html failures CLOSED TREE 2018-08-11 03:20:30 +03:00
Jonathan Kingston
7c5bb7f8c7 Bug 1466801 - Flipping disallowInheritPrincipal to be allow. r=ckerschb r=gijs 2018-07-16 10:17:51 +01:00
Margareta Eliza Balazs
a704b1e8e1 Merge inbound to mozilla-central. a=merge 2018-08-10 12:17:09 +03:00
Abdoulaye O. Ly
a9ff1af78a Bug 1481700 - Release clear-selection lock when 'mouseup' event is fired for tabs. r=jaws
Reapply backed out changetset with 'browser/base/content/test/tabs/multiselect_tabs_event.js' tests fixed.

Differential Revision: https://phabricator.services.mozilla.com/D3037
2018-08-09 18:47:56 +00:00
Abdoulaye O. Ly
8e0ffb604a Bug 1458056 - Implement ability to move a selection of tabs into another window through drag and drop. r=jaws
MozReview-Commit-ID: LFFoE6HsBp8

Differential Revision: https://phabricator.services.mozilla.com/D2986
2018-08-09 18:45:52 +00:00
Brian Grinstead
1c86f46ecd Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw
2018-08-08 15:22:53 -07:00
Noemi Erli
a96af2f0dd Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-10 00:35:58 +03:00
Jonathan Kingston
07af5c5572 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb r=Gijs
Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-07-06 15:14:54 +01:00
dvarga
86b7ee6d9f Backed out 2 changesets (bug 1362034) for failure at browser/tools/mozscreenshots/primaryUI/browser_primaryUI.js on a CLOSED TREE
Backed out changeset 1c3329958b8a (bug 1362034)
Backed out changeset f68b1b76af36 (bug 1362034)
2018-08-08 22:11:56 +03:00
dvarga
b86620bf83 Backed out changeset 0bcce164a404 (bug 1481700) failure at browser/base/content/test/tabs/browser_multiselect_tabs_using_Shift.js on a CLOSED TREE 2018-08-08 22:08:03 +03:00
Abdoulaye O. Ly
da06b60153 Bug 1481700 - Release clear-selection lock when 'mouseup' event is fired for tabs. r=jaws
MozReview-Commit-ID: FslyILLXMrj
2018-08-08 03:00:29 +00:00
Jonathan Kingston
0e48203cf4 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb,Gijs
Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Subscribers: mixedpuppy, reviewbot

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-08-08 20:03:55 +03:00
Kris Maglione
a309347f9b Bug 1479318: Minimize the amount of content Findbar code loaded by default. r=felipe
MozReview-Commit-ID: Gu4RyWKmaAz
2018-07-29 14:38:44 -07:00
Cosmin Sabou
073139a2ec Backed out 12 changesets (bug 1479309, bug 1479312, bug 1479313, bug 1479310, bug 1479235, bug 1479945, bug 1479241, bug 1479318) for causing a big performance regression on OS X. a=backout
Backed out changeset 915862a355e9 (bug 1479318)
Backed out changeset f150e62dcbbd (bug 1479241)
Backed out changeset a68daa762119 (bug 1479312)
Backed out changeset 2a5aa9de1fd9 (bug 1479945)
Backed out changeset 163276881d35 (bug 1479945)
Backed out changeset 20a1a11b4d0b (bug 1479945)
Backed out changeset ca43bd11f431 (bug 1479945)
Backed out changeset 71700b368132 (bug 1479945)
Backed out changeset f5d647fae973 (bug 1479313)
Backed out changeset 3583823171de (bug 1479310)
Backed out changeset 2d46e1fe3121 (bug 1479309)
Backed out changeset 8f9c9580f687 (bug 1479235)
2018-08-07 17:30:52 +03:00
Oriol Brufau
d83caeb058 Bug 1479130 - Dispatch TabMultiSelect event when multiselection changes
MozReview-Commit-ID: JkLJyDXbOKL
2018-07-28 02:25:34 +02:00
Abdoulaye O. Ly
9713efab2c Bug 1477780 - In a multi-select context, 'Close Tabs To The Right' closes tabs located to right of the rightmost selected tab. r=jaws
MozReview-Commit-ID: 6Kwnv8fvFLa
2018-07-30 15:04:32 +00:00
Noemi Erli
d51469cc11 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-02 12:04:24 +03:00
Noemi Erli
fda51f21fc Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
Andreea Pavel
a458b6af91 Backed out changeset 177e4adb94d1 (bug 1479318) for failing android on different files on a CLOSED TREE 2018-08-02 03:10:16 +03:00
Kris Maglione
96720fbc27 Bug 1479318: Minimize the amount of content Findbar code loaded by default. r=felipe
MozReview-Commit-ID: Gu4RyWKmaAz
2018-07-29 14:38:44 -07:00