Commit graph

181 commits

Author SHA1 Message Date
Mike Conley
3ff2d20fd3 Bug 1362569 - Don't flush layout when locking the tab size during tab close. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D2140

--HG--
extra : moz-landing-system : lando
2018-07-18 09:27:49 +00:00
Dão Gottwald
36e378f88a Bug 1475537 - Clean up addTab parameter handling. r=mikedeboer
MozReview-Commit-ID: JF9hNLmd3bF

--HG--
extra : rebase_source : 3c1368c275719ec6d4812950154b6c266af4f98a
2018-07-17 13:54:23 +02:00
Coroiu Cristina
49f35eaa07 Backed out changeset 1d9cd6db7f77 (bug 1475537) for devtools failures at devtools/client/netmonitor/test/browser_net_open_request_in_tab.js on a CLOSED TREE 2018-07-17 14:20:12 +03:00
Abdoulaye O. Ly
ce5ee236b1 Bug 1458067 - Implement ability to bookmark a selection of tabs. r=Gijs
MozReview-Commit-ID: 4KE3qSf3j0y

--HG--
extra : rebase_source : e4a30f6706c455f08d9519e86b61ea389eb89ed5
2018-07-12 00:25:35 +00:00
Dão Gottwald
29d6f89109 Bug 1475537 - Clean up addTab parameter handling. r=mikedeboer
MozReview-Commit-ID: FuTHVHN43XA

--HG--
extra : rebase_source : 0c60d8f92304aa7a6521c592362ac19a24e3e8bf
2018-07-13 15:24:09 +02:00
Abdoulaye O. Ly
c9f1e7bcbf Bug 1472910 - Close all unselected tabs except those pinned with gBrowser.removeAllTabsBut(aTab) when aTab is multi-selected. r=jaws
MozReview-Commit-ID: 9gqSJmiBbCs

--HG--
extra : rebase_source : 902c72d83f3169a62e8109147fbd913dc050248f
2018-07-12 06:49:04 +00:00
Ehsan Akhgari
fb93671fb6 Bug 1474384 - Memoize the nsIURI object returned from the currentURI getter for lazy <xul:browser> objects; r=dao 2018-07-12 13:11:00 +03:00
Manish Kumar
f453080096 Bug 1473253 - Stop setting onerror attribute on tabs. r=dao 2018-07-09 20:03:57 +02:00
Dão Gottwald
04dcfe28d9 Bug 1473309 - Move TabContextMenu and stray usercontext-related functions from browser.js to tabbrowser.js. r=bgrins
MozReview-Commit-ID: CA3F65x08Kg

--HG--
extra : rebase_source : 5383ad0d4365cbba53a33c835677b5fcc5facc22
2018-07-04 16:24:37 +02:00
Abdoulaye O. Ly
7e388f04c4 Bug 1472074 - Fix behavior for multiselection using shift key to match other popular apps such as Chrome or Windows Explorer. r=Gijs
MozReview-Commit-ID: 8vWJJcGMOwA

--HG--
extra : rebase_source : d5b681625db23971cda2ae6f301994c3d6cc4e57
2018-06-30 03:11:31 +00:00
arthur.iakab
403038737b Merge inbound to mozilla-central a=merge 2018-07-03 11:55:46 +03:00
Abdoulaye O. Ly
9bf68371e3 Bug 1458061 - Implement ability to reload a selection of tabs. r=Gijs
MozReview-Commit-ID: CyJLk7pxGRr

--HG--
extra : amend_source : 97c7d53733c2996e06aa2994f57949357cef35ad
2018-06-29 02:39:18 +00:00
Oriol Brufau
34612e7041 Bug 1472305 - browser.tabs.highlight() with single tab should not set multiselected=true r=Gijs,mixedpuppy
MozReview-Commit-ID: 8cvtMkHoRxD

--HG--
extra : rebase_source : 094065c51ab011aaf58ca86b9e14f66fd0030717
2018-06-30 17:27:12 +02:00
Dave Townsend
f713e07b96 Bug 1472475: Properly clear the current favicon when navigating to a new URL. r=mak
In practice this is an easy fix, just clear the icon when the page first changes
to a new URL. In practice that breaks our hack for setting an early favicon for
certain in-content pages so we have to workaround that somewhat.

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

--HG--
extra : moz-landing-system : lando
2018-07-02 16:42:43 +00:00
Coroiu Cristina
a4cd34df05 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-06-30 01:00:54 +03:00
Dave Townsend
d8b7fb22e3 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
Differential Revision: https://phabricator.services.mozilla.com/D1869

--HG--
rename : browser/base/content/test/general/browser_bug408415.js => browser/base/content/test/favicons/browser_bug408415.js
rename : browser/base/content/test/general/browser_bug550565.js => browser/base/content/test/favicons/browser_bug550565.js
rename : browser/base/content/test/general/browser_favicon_change.js => browser/base/content/test/favicons/browser_favicon_change.js
rename : browser/base/content/test/general/browser_favicon_change_not_in_document.js => browser/base/content/test/favicons/browser_favicon_change_not_in_document.js
rename : browser/base/content/test/general/browser_subframe_favicons_not_used.js => browser/base/content/test/favicons/browser_subframe_favicons_not_used.js
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon1.ico
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon2.ico
rename : browser/base/content/test/general/file_bug970276_popup1.html => browser/base/content/test/favicons/file_bug970276_popup1.html
rename : browser/base/content/test/general/file_bug970276_popup2.html => browser/base/content/test/favicons/file_bug970276_popup2.html
rename : browser/base/content/test/general/file_favicon_change.html => browser/base/content/test/favicons/file_favicon_change.html
rename : browser/base/content/test/general/file_favicon_change_not_in_document.html => browser/base/content/test/favicons/file_favicon_change_not_in_document.html
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_generic_favicon.ico
rename : browser/base/content/test/general/file_with_favicon.html => browser/base/content/test/favicons/file_with_favicon.html
extra : rebase_source : 6372b2681a59d267f966e9fa2ca9a54e3ff0cea0
extra : intermediate-source : b11aa832c41ac5beef9065f804d11fb7c9887990
extra : source : 638eb8a41245f6d9932861afda21edd5e0b2618a
2018-06-28 16:06:09 -07:00
Abdoulaye O. Ly
d59d524fbe Bug 1458060 - Implement ability to pin/unpin a selection of tabs. r=jaws
MozReview-Commit-ID: Hqt8QrqQ62V

--HG--
extra : rebase_source : d7edcc85fbe7dd217b4a129f9c7d87457eca3284
2018-06-23 18:07:48 +00:00
Brindusan Cristian
51f77cdfc4 Backed out changeset b11aa832c41a (bug 1453751) for Mochitest-15 failures in toolkit/components/extensions/test/mochitest/test_ext_webrequest_filter.html. CLOSED TREE
--HG--
rename : browser/base/content/test/favicons/browser_bug408415.js => browser/base/content/test/general/browser_bug408415.js
rename : browser/base/content/test/favicons/browser_bug550565.js => browser/base/content/test/general/browser_bug550565.js
rename : browser/base/content/test/favicons/browser_favicon_change.js => browser/base/content/test/general/browser_favicon_change.js
rename : browser/base/content/test/favicons/browser_favicon_change_not_in_document.js => browser/base/content/test/general/browser_favicon_change_not_in_document.js
rename : browser/base/content/test/favicons/browser_subframe_favicons_not_used.js => browser/base/content/test/general/browser_subframe_favicons_not_used.js
rename : browser/base/content/test/favicons/file_generic_favicon.ico => browser/base/content/test/general/file_bug970276_favicon1.ico
rename : browser/base/content/test/favicons/file_bug970276_popup1.html => browser/base/content/test/general/file_bug970276_popup1.html
rename : browser/base/content/test/favicons/file_bug970276_popup2.html => browser/base/content/test/general/file_bug970276_popup2.html
rename : browser/base/content/test/favicons/file_favicon_change.html => browser/base/content/test/general/file_favicon_change.html
rename : browser/base/content/test/favicons/file_favicon_change_not_in_document.html => browser/base/content/test/general/file_favicon_change_not_in_document.html
rename : browser/base/content/test/favicons/file_with_favicon.html => browser/base/content/test/general/file_with_favicon.html
2018-06-28 23:15:49 +03:00
Dave Townsend
ae4e60478a Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850

--HG--
rename : browser/base/content/test/general/browser_bug408415.js => browser/base/content/test/favicons/browser_bug408415.js
rename : browser/base/content/test/general/browser_bug550565.js => browser/base/content/test/favicons/browser_bug550565.js
rename : browser/base/content/test/general/browser_favicon_change.js => browser/base/content/test/favicons/browser_favicon_change.js
rename : browser/base/content/test/general/browser_favicon_change_not_in_document.js => browser/base/content/test/favicons/browser_favicon_change_not_in_document.js
rename : browser/base/content/test/general/browser_subframe_favicons_not_used.js => browser/base/content/test/favicons/browser_subframe_favicons_not_used.js
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon1.ico
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon2.ico
rename : browser/base/content/test/general/file_bug970276_popup1.html => browser/base/content/test/favicons/file_bug970276_popup1.html
rename : browser/base/content/test/general/file_bug970276_popup2.html => browser/base/content/test/favicons/file_bug970276_popup2.html
rename : browser/base/content/test/general/file_favicon_change.html => browser/base/content/test/favicons/file_favicon_change.html
rename : browser/base/content/test/general/file_favicon_change_not_in_document.html => browser/base/content/test/favicons/file_favicon_change_not_in_document.html
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_generic_favicon.ico
rename : browser/base/content/test/general/file_with_favicon.html => browser/base/content/test/favicons/file_with_favicon.html
extra : rebase_source : 1e72949e4e1012025ccf87642cc239ea5f15217d
extra : source : 638eb8a41245f6d9932861afda21edd5e0b2618a
2018-06-04 12:53:55 -07:00
Oriol Brufau
050e9292da Bug 1465170 - Implement support for the 'highlighted' API for multiselect tabs with tabs.query r=jaws,mixedpuppy
MozReview-Commit-ID: 6eFnxrXJXXB

--HG--
extra : rebase_source : f0afa7ab08d32d7751c5bcbf1ed9fc65a1fba16b
2018-06-03 02:53:59 +02:00
Gijs Kruitbosch
006aa20e16 Bug 1438499 - show 'close multiple tabs' warning dialog when quitting, r=jaws,whimboo
MozReview-Commit-ID: J2gi9do8HK9

--HG--
extra : rebase_source : b22103b5a4d43fc6da535ef00f75ed6bc80d92fb
2018-06-13 09:34:52 -07:00
layely
9bbf17cc81 Bug 1458039 - Implement ability to mute/unmute a selection of tabs. r=jaws
MozReview-Commit-ID: 7aw08gxOOtk

--HG--
extra : rebase_source : 204170d0ea72c08c43a08b2d2ec359465894c1e8
2018-05-31 03:26:25 +00:00
layely
0e2c19f78e Bug 1467340 - Ctrl+w and Ctrl+f4 shortcuts close all selected tabs in multi-select context. r=jaws
MozReview-Commit-ID: AfrpuOKBfas

--HG--
extra : rebase_source : 8e1e093697389a5bf1a158b9d7015c1bc40a9d25
2018-06-07 13:36:17 +00:00
Bianca Danforth
ea4aa07dab Bug 1465694 - Add tab event telemetry for Savant Shield study; r=dao
These probes will register and record (for the duration of the study only):
* When a tab opens.
* When a tab closes.
* When a tab is selected.

MozReview-Commit-ID: BvknEH0ofS0

--HG--
extra : rebase_source : fecb98743781823f9fd08001b88d13f5c094b461
2018-06-06 03:44:48 -07:00
layely
20d9cf4517 Bug 1458018 - Add style for multiselected tabs. r=jaws
MozReview-Commit-ID: Ead7pIfHBJP

--HG--
extra : rebase_source : 72d469d6d4ab12e5179a4acd279f84b7ba0993b7
2018-06-03 05:04:48 +00:00
Oriol Brufau
b3e0d71d8a Bug 1466678 - Store multiple selected tabs in a WeakSet instead of a WeakMap r=jaws
MozReview-Commit-ID: 3sfRtQruInF

--HG--
extra : rebase_source : 52dd3036bb8d341ba1ea646fc93dcc405b030e36
2018-06-04 23:20:46 +02:00
Dão Gottwald
d559ce4ae4 Bug 1465401 - setTabTitle shouldn't wrap data URI shortening in try/catch. r=jfkthame
MozReview-Commit-ID: Cgh1iahbpWQ

--HG--
extra : rebase_source : a241adbc4ca8cdd783e8f9871ed437c469934bf7
2018-05-30 13:44:31 +02:00
layely
acb941a30e Bug 1458022 - Implement ability to close a selection of tabs. r=jaws
MozReview-Commit-ID: 4yjajKnONuK

--HG--
extra : rebase_source : 35a0c25a114c99c7cd1de71344f8dacc7536448f
2018-05-21 04:16:01 +00:00
Doug Thayer
c9a9de8c48 Bug 1176019 - Clear cached layers on location change r=mconley
To avoid a flash of stale content in the event of a slow tab
switch, we need to make sure we remove a tab from the cache if
its location changes while it's in the background.

MozReview-Commit-ID: ElpoWhhjb0n

--HG--
extra : rebase_source : 615ebd1a57916e0fe2b8c062ab47ffe748397033
2018-05-15 09:29:16 -07:00
Doug Thayer
6572652a7d Bug 1176019 - Cache layers of background tabs r=mconley
We maintain a simple LRU cache of tab layers by setting their
docShellIsActive = false with preserveLayers(true). Once they
are pushed out of the cache by more recently used tabs, their
layers are discarded.

Luckily most of the complexity of this could be contained in
the AsyncTabSwitcher - the one change that had to sit outside of
that was moving the aTab.closing = true earlier in the removeTab
call, so that we could use that information to eagerly evict tabs
from the cache. This was to address a leak in a few tests on try.

MozReview-Commit-ID: 2E3uU8LEYkD

--HG--
extra : rebase_source : d2865fd1ee10db17d9f41cca059a5cee697f259d
2018-04-16 15:35:41 -07:00
layely
9027df6ec0 Bug 1458013 - Add ability to select a range of tabs using Shift. r=jaws
MozReview-Commit-ID: DQxhkTEyRyq

--HG--
extra : rebase_source : 226b316c7222a8c827f98da60579bfdde06f9d64
2018-05-17 02:38:14 +00:00
Constantine Filin
8c1da4c1ae Bug 1446721: replacing parent.removeChild(child) with simpler child.remove; r=dao
MozReview-Commit-ID: 3QUuiu3CVo5

--HG--
extra : rebase_source : 583a4b8fbbe6606453d9856dc1c055c9be06387f
2018-05-17 00:10:28 -07:00
Shane Caraveo
4b808e5565 Bug 1458866 - Ensure sharingState is reset when the browser is discarded, r=Gijs
MozReview-Commit-ID: EgA66KNqzKY

--HG--
extra : rebase_source : c9a31f5224c6f74bfa4907d4e138a5b47eb952ed
2018-05-16 10:24:52 -05:00
Chris Pearce
55364ffa5c Bug 1458383 - Don't session restore browser.mediaBlocked. r=mikedeboer
This is a backout of Bug 1347791 part 4; 49b533231388.

49b533231388 took the mediaBlocked attribute and stored it in session store,
and caused us to call browser.resumeMedia() or blockMedia() as appropriate
upon restore. We don't want to session restore whether tabs have had delay
playback start unblocked anymore, so remove the code that session stores
that attribute.

MozReview-Commit-ID: AkRVlufrUAK

--HG--
extra : rebase_source : 613619e2ec587b546cede7795b76b049258df9dd
2018-05-04 16:22:16 +12:00
Erica Wright
dc93192a58 Bug 1448918 - Create about:welcome page in preparation for firstrun migration. r=dmose
MozReview-Commit-ID: L34uRsOeziS

--HG--
extra : rebase_source : 9e783e9ba1a8473c8867aa9c2a87337005acbab2
2018-04-23 15:47:57 -04:00
Bogdan Tara
babf96cf0c Backed out 3 changesets (bug 1176019) for frequently failing /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/Maybe.h a=backout
Backed out changeset 2dd8b719d645 (bug 1176019)
Backed out changeset 9c6b0eb062ca (bug 1176019)
Backed out changeset 2d0dfc54128e (bug 1176019)
2018-05-11 17:07:19 +03:00
Doug Thayer
bbadb1c753 Bug 1176019 - Cache layers of background tabs r=mconley
We maintain a simple LRU cache of tab layers by setting their
docShellIsActive = false with preserveLayers(true). Once they
are pushed out of the cache by more recently used tabs, their
layers are discarded.

Luckily most of the complexity of this could be contained in
the AsyncTabSwitcher - the one change that had to sit outside of
that was moving the aTab.closing = true earlier in the removeTab
call, so that we could use that information to eagerly evict tabs
from the cache. This was to address a leak in a few tests on try.

MozReview-Commit-ID: 2E3uU8LEYkD

--HG--
extra : rebase_source : b7e7bb3fcf1ed59e79a7c9fb9d3e6ce735ab54e9
2018-04-16 15:35:41 -07:00
Dorel Luca
e2b88544d0 Backed out 3 changesets (bug 1176019) for Browser-chrome failures on dom/plugins/test/mochitest/browser_tabswitchbetweenplugins.js. CLOSED TREE
Backed out changeset 31b295f557db (bug 1176019)
Backed out changeset 6c591b484a11 (bug 1176019)
Backed out changeset 3e7dbe6b5122 (bug 1176019)
2018-05-11 02:03:20 +03:00
Doug Thayer
2b3e7dfef6 Bug 1176019 - Cache layers of background tabs r=mconley
We maintain a simple LRU cache of tab layers by setting their
docShellIsActive = false with preserveLayers(true). Once they
are pushed out of the cache by more recently used tabs, their
layers are discarded.

Luckily most of the complexity of this could be contained in
the AsyncTabSwitcher - the one change that had to sit outside of
that was moving the aTab.closing = true earlier in the removeTab
call, so that we could use that information to eagerly evict tabs
from the cache. This was to address a leak in a few tests on try.

MozReview-Commit-ID: 2E3uU8LEYkD

--HG--
extra : rebase_source : b7e7bb3fcf1ed59e79a7c9fb9d3e6ce735ab54e9
2018-04-16 15:35:41 -07:00
Shane Caraveo
148048c417 Bug 1460221 - fix newtab placement when opened from pinned tab, r=Gijs
MozReview-Commit-ID: CwoFsFo0ThE

--HG--
extra : rebase_source : 0fd393dd70dd1d51ffec226ea6d0cd7d0ce4c83c
2018-05-10 10:44:55 -05:00
layely
1a0abb0c95 Bug 1458010 - Add ability to select multiple tabs using Ctrl/Cmd. r=jaws
MozReview-Commit-ID: BHelQhtv7Gk

--HG--
extra : rebase_source : 8af7fa34c174274364fe61650e406b4f2ad90ddc
2018-05-05 03:56:23 +00:00
Stephen A Pohl
860c14b396 Bug 1366808: Properly detect buildID mismatches between parent and child processes and display about:restartrequired to prompt the user to restart Firefox before proceeding. r=jimm,felipe,bz 2018-05-08 10:31:44 -04:00
Dorel Luca
54c649077a Backed out changeset 998791c75fbc (bug 1176019) for Browser-chrome failures on dom/plugins/test/mochitest/browser_bug1196539.js. CLOSED TREE 2018-05-08 10:55:32 +03:00
Doug Thayer
00e503831d Bug 1176019 - Cache layers of background tabs r=mconley
We maintain a simple LRU cache of tab layers by setting their
docShellIsActive = false with preserveLayers(true). Once they
are pushed out of the cache by more recently used tabs, their
layers are discarded.

Luckily most of the complexity of this could be contained in
the AsyncTabSwitcher - the one change that had to sit outside of
that was moving the aTab.closing = true earlier in the removeTab
call, so that we could use that information to eagerly evict tabs
from the cache. This was to address a leak in a few tests on try.

MozReview-Commit-ID: 2E3uU8LEYkD

--HG--
extra : rebase_source : 1de7c196b14b2f3a368bfbae970808cbf49e6e36
2018-04-16 15:35:41 -07:00
Shane Caraveo
a9dba8f395 Bug 1449700 refactor addTab/moveTabTo patterns, r=aswan,dao
Calculate all positioning of the tab during addTab to avoid extraneous events and to provide an accurate tab id during TabOpen.

MozReview-Commit-ID: AgcrAJ9hotF

--HG--
extra : rebase_source : 6f0e6f859b5f4145c1fd691fe0cd5c1815a66fb5
2018-04-26 10:38:18 -05:00
vidit23
753c26dd7e Bug 1453957 - Stop setting the "unread" attribute on tabs. r=dao 2018-05-04 19:46:17 +02:00
Dão Gottwald
51eab9cbe5 Bug 1183135 - Update tab position attributes when a tab becomes visually selected rather than synchronously when switching tabs. r=mconley
MozReview-Commit-ID: Lvf0edXlwTu

--HG--
extra : rebase_source : ca5899905428ce3d295eeb0211f02b5799c908f2
2018-05-03 13:32:28 +02:00
arthur.iakab
9befdc9927 Backed out changeset ee1e498e3c43 (bug 1183135) for failing browser chrome tests on browser/base/content/test/performance/browser_tabclose.js a=backout 2018-05-03 13:45:10 +03:00
Dão Gottwald
891e47b838 Bug 1183135 - Update tab position attributes when a tab becomes visually selected rather than synchronously when switching tabs. r=mconley
MozReview-Commit-ID: LGOk50fNaXe

--HG--
extra : rebase_source : 835411c7e88a48506a2652581443d15122025c52
2018-04-28 19:19:59 +02:00
Kris Maglione
bf4d9f1be5 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt

--HG--
extra : rebase_source : 5fff3d9973a0ea976096339a63ce9ff628b68441
2018-04-23 12:58:34 -07:00
Mark Striemer
b72766aef6 Bug 1408062 - Show hidden tabs that are playing audio r=dao
MozReview-Commit-ID: FHV3bmXbX9d

--HG--
extra : rebase_source : fcd11c3f0fd8b3a508584d0219d9cafaca1d02ce
2018-04-20 13:15:28 -05:00
Ed Lee
17be320585 Bug 1454344 - Setting New tabs to |Blank Page| does not become effective until the 2nd new tab. r=k88hudson
MozReview-Commit-ID: GNbMgaLpB9n

--HG--
extra : rebase_source : f5177816f7ae30c5d997b32ec8a93533ac943906
2018-04-24 16:29:02 -07:00
Dorel Luca
68398eade7 Backed out changeset f55f15b26569 (bug 1408062) for Browser-chrome failure on browser/base/content/test/general/browser_audioTabIcon.js. CLOSED TREE 2018-04-25 23:06:18 +03:00
Mark Striemer
c342d4e1ad Bug 1408062 - Show hidden tabs that are playing audio r=dao
MozReview-Commit-ID: FHV3bmXbX9d

--HG--
extra : rebase_source : d8fa008014d58d4898aeb1f7feb5f002ef7e2ebf
2018-04-20 13:15:28 -05:00
Mike Conley
0a0c4cc456 Bug 1358712 - Get rid of synchronous layout flushes when calculating where to put the StatusPanel. r=Felipe
MozReview-Commit-ID: KHagFdaRAzF

--HG--
extra : rebase_source : 4c79b7f23cc8980179ab0437eab13e7b03fd60c1
2018-03-07 17:39:20 -05:00
Luca Greco
764da92e2d Bug 1453280 - Clear and destroy tabbrowser tab's listener when adopting the last tab of a window. r=dao
MozReview-Commit-ID: 4XA866P0HJl

--HG--
extra : rebase_source : c7f68757edf02d0094b251f597a837af006b547d
2018-04-10 23:09:28 +02:00
Shane Caraveo
3ca9246dbe Bug 1442679 - fix insertAfterRelated for bulk opening via tabbrowser.loadTabs, r=dao
MozReview-Commit-ID: 1E90mhjvm81

--HG--
extra : rebase_source : c37e693f91386d4d601cea74e99012fce3e4936c
2018-04-05 11:33:39 -05:00
Gijs Kruitbosch
3929672b94 Bug 1371523 - remove find bar sync ipc message, r=mikedeboer
MozReview-Commit-ID: C0VO0U3UJ76

--HG--
extra : rebase_source : 4c29a0d740ff8b18dea35428a3f88ab5093ecc91
extra : source : cbf007a7027f20ecc1641ea9cc07e98817a49862
2018-03-21 17:10:40 +00:00
Mark Striemer
b1780b744c Bug 1408061 - Show hidden tabs in all tabs menu r=dao
MozReview-Commit-ID: FpbeT1FwEWe

--HG--
extra : rebase_source : 91d99cb327707fd51f8ec1b4819c8cac87a98b16
2018-04-03 13:58:48 -05:00
Brian Grinstead
244cee4afd Bug 1448555 - Part 1 - Allow the devtools toolbox to shrink when the window shrinks;r=dao,Gijs,jdescottes
By setting flex=10000 on the siblings of the toolbox and flex=1 on the toolbox iframe
we ensure that free space gets allocated to the browser contents and that the devtools
toolbox can shrink when the window needs to resize.

MozReview-Commit-ID: oel3kRw9m6

--HG--
extra : rebase_source : b87d6c024d8e57085115550bdc1b9169d3d70983
2018-04-03 13:57:30 -07:00
Manish Kumar
ca80552b9f Bug 1446719 - Rename getTabValue / setTabValue / deleteTabValue to getCustomTabValue / setCustomTabValue / deleteCustomTabValue. r=dao
--HG--
extra : rebase_source : 4d1ee61af6b01c58c07aa8e09d125959b62dcc75
2018-04-01 16:05:34 +02:00
Andreea Pavel
afdd07f3e2 Backed out changeset f80a1b8f781b (bug 1446719) for failing browser chrome at browser/components/sessionstore/test/browser_350525.js on a CLOSED TREE 2018-04-01 16:16:09 +03:00
Manish Kumar
6887194f83 Bug 1446719 - Rename getTabValue / setTabValue / deleteTabValue to getCustomTabValue / setCustomTabValue / deleteCustomTabValue. r=dao 2018-04-01 11:15:54 +02:00
Vivek Dhingra
58c16b4984 Bug 1446314 - Rename mIsBusy to _isBusy r=dao
MozReview-Commit-ID: H1H4om8F6dt

--HG--
extra : rebase_source : 1e2ad604ca7653be466087dcff671e63630bb163
2018-03-30 17:27:00 -04:00
Brindusan Cristian
1f01a16a9b Backed out changeset cbf007a7027f (bug 1371523) for browser chrome failures on toolkit/content/tests/browser/browser_findbar.js CLOSED TREE 2018-03-31 01:16:09 +03:00
Gijs Kruitbosch
1037d799f9 Bug 1371523 - remove find bar sync ipc message, r=mikedeboer
MozReview-Commit-ID: C0VO0U3UJ76

--HG--
extra : rebase_source : 01e33223409023b03bd2ac83652953cc586be1ae
2018-03-21 17:10:40 +00:00
Dão Gottwald
c37f295a17 Bug 1448303 - Refactor TabsInTitlebar initial update handling. r=florian
MozReview-Commit-ID: BQTe6cVyHo1

--HG--
extra : rebase_source : fdc23cfe4902ffd831adf0f9418177342906b241
2018-03-28 20:36:21 +02:00
Csoregi Natalia
f80b492e44 Backed out changeset 3e32fb05601e (bug 1448303) expected to fail on browser_windowopen.js. CLOSED TREE 2018-03-28 21:34:21 +03:00
Dão Gottwald
a791e420c3 Bug 1448303 - Refactor TabsInTitlebar initial update handling. r=florian
MozReview-Commit-ID: ASVRIsVIoKa

--HG--
extra : rebase_source : 2a388c9f15c75fb736550714df062d1c4d7a0ed2
2018-03-28 20:24:26 +02:00
Dão Gottwald
e71fb1aa39 Bug 1448482 - Remove <title> element from about:privatebrowsing since tabbrowser already sets the title. r=Gijs
MozReview-Commit-ID: 7oQrfiK0FRa

--HG--
extra : rebase_source : dcaeae1f53682531709bd8333cdf38a0a7e21298
2018-03-27 23:34:23 +02:00
Dão Gottwald
e6320ddb5d Bug 1448565 - Extract tab bar visibility handling from the tabs binding. r=Gijs
MozReview-Commit-ID: RDvodB7C8e

--HG--
extra : rebase_source : 821cfdd9e3a6cfafd19ab46a9395f06ad01f9ec8
2018-03-27 23:19:15 +02:00
Mike Conley
20eb6b854d Bug 1408026 - Remove early renderLayers for preloaded browsers now that Activity Stream takes care of it. r=florian
MozReview-Commit-ID: L9ROVXggr5k

--HG--
extra : rebase_source : 2d76c136487072ed7178742687bc84c225ed45bf
2018-03-27 16:01:36 -04:00
Margareta Eliza Balazs
b33efac796 Backed out changeset 49867cc4dcc2 (bug 1448482) for ss failures in browser/tools/mozscreenshots/primaryUI/browser_primaryUI.js on a CLOSED TREE 2018-03-27 20:13:36 +03:00
Dão Gottwald
08516a61ad Bug 1448482 - Remove <title> element from about:privatebrowsing since tabbrowser already sets the title. r=Gijs
MozReview-Commit-ID: 3VcK126FfWX

--HG--
extra : rebase_source : f06592918693f9eefbb7214e7232c8066be63740
2018-03-23 22:30:11 +01:00
Bogdan Tara
302a55b534 Merge inbound to mozilla-central. a=merge 2018-03-27 12:12:57 +03:00
Bob Silverberg
58a89452a8 Bug 1344749 - Expose API to customize where new tabs open, r=dao
This patch implements the preference "browser.tabs.insertAfterCurrent" which,
when set to true, will cause all tabs (related and unrelated) to be opened next
to the current tab.

It also implements the browserSettings API "newTabPosition", which allows
extensions to control both "browser.tabs.insertRelatedAfterCurrent", and
"browser.tabs.insertAfterCurrent" via values for "afterCurrent",
"relatedAfterCurrent" and "atEnd".

The code for "browser.tabs.insertAfterCurrent" including the test for it is
mostly taken from a patch attached to bug 933532 written by Masayuki Nakano.

MozReview-Commit-ID: KQE7M2FGpc7

--HG--
extra : rebase_source : d2dd721a58e675fc1db88ab0c0b90bb62e283231
2018-01-19 12:59:53 -05:00
Tim Nguyen
e002c63fa4 Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht

--HG--
extra : rebase_source : 881e10f2987606e84e55c267260661c0f7b3b746
2018-03-16 23:21:46 +00:00
Tim Nguyen
5e399b2f06 Bug 1444760 - Support only one form of loadURIWithFlags calls. r=dao
MozReview-Commit-ID: A5rMjQ6xnRw

--HG--
extra : rebase_source : 31166bca511e5bc16ffff2acab2e3295d9f6079c
2018-03-25 14:35:17 +02:00
Margareta Eliza Balazs
27703664b0 Backed out 2 changesets (bug 1444760) for ES lint failure in /builds/worker/checkouts/gecko/browser/base/content/browser.js on a CLOSED TREE
Backed out changeset 71f61091a716 (bug 1444760)
Backed out changeset 4956db1e9bdd (bug 1444760)
2018-03-25 15:29:54 +03:00
Tim Nguyen
e2ed0b5dfb Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht

--HG--
extra : rebase_source : 8e9f24d20829021db2239435c7d8d0db08e28bf9
2018-03-16 23:21:46 +00:00
Tim Nguyen
78b296ff06 Bug 1444760 - Support only one form of loadURIWithFlags calls. r=dao
MozReview-Commit-ID: A5rMjQ6xnRw

--HG--
extra : rebase_source : e44817bd271a3477fdd54f405beb1b5096a032d0
2018-03-25 13:59:50 +02:00
Dão Gottwald
1b366a1008 Bug 1448102 - Move tabWarmingEnabled, tabWarmingMax, tabWarmingUnloadDelay properties from gBrowser to AsyncTabSwitcher.jsm. r=mconley
MozReview-Commit-ID: 2pI1aDUxWFw

--HG--
extra : rebase_source : ed6f75031f47456e91ed419c939b2e29ecc58526
2018-03-22 19:36:00 +01:00
Tim Nguyen
74e6b6b1e9 Bug 1445099 - Remove unused properties from browser binding. r=enndeakin 2018-03-26 16:32:37 +02:00
Gurzau Raul
3057041352 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-16 19:58:27 +02:00
Vivek Dhingra
7b323d8758 Bug 1446060 - Rename mPanelContainer to tabpanels r=dao
MozReview-Commit-ID: 85PNkl3OeBE

--HG--
extra : rebase_source : d7bfb49a8736b8319f6d1ca45f39fe001d4214d8
2018-03-16 10:23:00 -04:00
Dão Gottwald
c16e018107 Bug 1446332 - Remove const nsI* from tabbrowser.js. r=Gijs
MozReview-Commit-ID: XZuOy5yJo6

--HG--
extra : rebase_source : 38705ee750615269023e28eacf50d91d75212763
2018-03-16 12:28:37 +01:00
Dão Gottwald
487924b63b Bug 1446414 - Remove underutilized browser.homePage and browser.goHome. r=enn 2018-03-16 16:31:59 +01:00
Brian Birtles
ee9982905f Bug 1420320 - Drop dom.animations-api.pending-member.enabled pref; r=bz,hiro
This pref was introduced in case we encountered compatibility issues from
changing the return value of Animation.playState (bug 1412765). Now that the
change to Animation.playState has shipped to release channel without any known
problems we should drop this pref.

MozReview-Commit-ID: CwMWRRtIf6u

--HG--
extra : rebase_source : b26c59a51880406c2b94baad8da2eafeb3ae3202
2018-03-16 12:49:55 +09:00
Gijs Kruitbosch
d2ebbb38df Bug 1358815 - remove sync reflow from find bar initialization, r=jaws
This removes the sync reflow from almost all cases. The only case where we keep it is when a keypress
caught in content triggers a sync message to the parent process. We should clean this up in bug 1371523.

I've tried to fix the tests, but a lot of them seem to be disabled anyway...

MozReview-Commit-ID: 9k36p7q8MKy

--HG--
extra : rebase_source : 311ee41ba9456a5c5d58b81a0cfa999bcef0027e
2018-03-12 14:01:44 +00:00
Dão Gottwald
7b82a59655 Bug 1446004 - Remove old non-e10s FX_TAB_SWITCH_TOTAL_MS probe. r=mconley
MozReview-Commit-ID: 9blsuI0AKje

--HG--
extra : rebase_source : 775dbb993d6dbd494fa1d0ce8ed60d727c28e4a6
2018-03-15 17:07:02 +01:00
Brindusan Cristian
4f5a76dc76 Backed out 2 changesets (bug 1358815) for bc failures on browser_pdfjs_main.js CLOSED TREE
Backed out changeset 880736d97de3 (bug 1358815)
Backed out changeset a2a0a0990e1a (bug 1358815)
2018-03-15 21:23:12 +02:00
Gijs Kruitbosch
59e21359c8 Bug 1358815 - remove sync reflow from find bar initialization, r=jaws
This removes the sync reflow from almost all cases. The only case where we keep it is when a keypress
caught in content triggers a sync message to the parent process. We should clean this up in bug 1371523.

I've tried to fix the tests, but a lot of them seem to be disabled anyway...

MozReview-Commit-ID: 9k36p7q8MKy

--HG--
extra : rebase_source : 311ee41ba9456a5c5d58b81a0cfa999bcef0027e
2018-03-12 14:01:44 +00:00
Noemi Erli
6e96a3f1e4 Merge autoland to mozilla-central. a=merge 2018-03-15 19:38:46 +02:00
Dão Gottwald
e8799dff1d Bug 1445949 - updateCurrentBrowser cleanup. r=mconley 2018-03-15 15:14:53 +01:00
Dão Gottwald
28fed2662a Bug 1445948 - Use gMultiProcessBrowser in gBrowser.init. r=mconley 2018-03-15 15:13:21 +01:00
Dão Gottwald
80e97e4bf5 Bug 1443462 - Copy default browser attributes from the initial browser to dynamically created ones. r=mconley
MozReview-Commit-ID: DGy6W2w75Y2

--HG--
extra : rebase_source : 58d2014b00780b1b8839e0ed847582f5e52896b7
2018-03-15 12:25:35 +01:00
Dão Gottwald
b408bbc765 Bug 1445572 - Rename mCurrentTab / mCurrentBrowser to _selectedTab / _selectedBrowser. r=jaws
MozReview-Commit-ID: IjH4bFnf5FA

--HG--
extra : rebase_source : 4e5e2d3bab9f9555ccf9265131516dd4bfb22d2e
2018-03-14 09:59:06 +01:00
Mike Conley
fd60b630a8 Bug 1445455 - Test that it's possible to show the same StatusPanel value twice in a row. r=dao
MozReview-Commit-ID: 17U8JHVO2PN

--HG--
extra : rebase_source : e1665eb08394ccc2e51695a74b31acc18d2e0b41
2018-03-13 18:21:47 -04:00
Mike Conley
f778f705e8 Bug 1445455 - StatusPanel needs to update label even when the label text has not changed. r=dao
MozReview-Commit-ID: BhfFZ14IEB8

--HG--
extra : rebase_source : 88a71f137ff9c14e0268644d66917d3095d171f1
2018-03-13 17:27:06 -04:00
Gijs Kruitbosch
d7cd5692c8 Bug 1427186 - treat empty tab title as non-content tab title (use default title) and update test, r=dao
MozReview-Commit-ID: FUR7edzMy1u

--HG--
extra : rebase_source : 9a6f02e599ceb717d7fcb91619ed6fa691387a32
2018-03-11 21:23:54 +00:00