Commit graph

284 commits

Author SHA1 Message Date
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
Gijs Kruitbosch
9525b90d38 Bug 1427186 - stop ever showing 'new tab' as a title for about:privatebrowsing in private windows, r=dao
There are 3 issues here:
- the runtime changing of the title causes issues where the content title is
  not set. This is fixed by setting it to the private title by default;
  there is very little (if any) UI that allows users to even open
  about:privatebrowsing in 'normal' windows so we care a lot less about
  flicker there. To be able to include this title in the markup, we switched
  to a dtd.
- the 'empty tab' title we set on the tab initially is set when the tab is
  created. This has been updated to check for private windows, and default to
  'Private Browsing' instead. This will obviously also affect other new tabs
  in private browsing, but that seems desirable/consistent.
- Likewise, we use this title when updating a tab's title that we don't yet
  have a content title for (which can still happen while about:privatebrowsing
  is loading because e10s), and so that is updated, too.

MozReview-Commit-ID: nVfXD2M6UZ

--HG--
extra : rebase_source : e5a698da70f215d8c7ccca242fbddc0fcaf9bf6b
2018-03-07 20:13:54 +00:00
Narcis Beleuzu
298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Noemi Erli
ac0a30f58c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-13 01:16:04 +02:00
Dão Gottwald
3a59da2e31 Bug 1444891 - Remove the statuspanel binding. r=jaws
MozReview-Commit-ID: KcpOYuObiNG

--HG--
extra : rebase_source : 6784b6b8ae7d9615fedfc6e4bb7ac2d27c297f72
2018-03-12 20:47:31 +01:00
manikishan
92de2db258 Bug 1431050 - Replace NS_ASSERT with conditional exceptions/console.assert and remove the debug.js module. r=mak
console.assert keeps the same semantics as NS_ASSERT in that it doesn't throw an exception,
but a lot of the places code was using it in a way that would be better served by throwing
an exception when the condition is false.

MozReview-Commit-ID: DEF5HSfYO36
2018-02-03 11:32:25 +05:30
Dão Gottwald
d24c2050b5 Bug 1444694 - Set up the initial browser and tab in a dedicated method. r=Gijs
MozReview-Commit-ID: 5KoqeQ4r7im

--HG--
extra : rebase_source : d44465f7e61edb7c80588e41c1697b3288026f8f
2018-03-11 23:03:58 +01:00
Dão Gottwald
85e05fc170 Bug 1444625 - Set gBrowser properties directly on the object rather than sequentially in init(). r=Gijs
MozReview-Commit-ID: 3fBLokkFMnP

--HG--
extra : rebase_source : 9f109c2bbe0893b4d6f67deb042804dcef2d9000
2018-03-10 19:22:50 +01:00
Dão Gottwald
58b8d0ab4c Bug 1444530 - Set --tab-min-width in the tabs binding rather than gBrowser.init. r=Gijs
MozReview-Commit-ID: E4EJKerJAng
2018-03-10 12:13:47 +01:00
Omar
94fac0f818 Bug 1443833 - Remove unused gBrowser.tabContextMenu property. r=dao
MozReview-Commit-ID: 6dJuanIFMxy
2018-03-09 17:10:16 +01:00
Cosmin Sabou
b7b21eb5b0 Backed out changeset 4805bc295b9a (bug 1444891) for ESlint failure on browser/base/content/browser.js 2018-03-12 19:49:23 +02:00
Dão Gottwald
494566d194 Bug 1444891 - Remove the statuspanel binding. r=jaws
MozReview-Commit-ID: JaMhIAWHbEv

--HG--
extra : rebase_source : 09a2bff84c8f1b47e64c7f6fde65689b7d5f11c9
2018-03-12 14:55:55 +01:00
Dão Gottwald
ac5db0581a Bug 1444613 - Use parameter default values in _callProgressListeners. r=jaws
MozReview-Commit-ID: 5PKsGlxRNEI

--HG--
extra : rebase_source : bcc7cc9f1828ae09aca854deb675407f9131d6ee
2018-03-10 14:44:44 +01:00
layely
4602f64f69 Bug 1387976 - Persist tab-muted state across restarts of the browser. r=jaws
--HG--
extra : rebase_source : 7cb1290f867698cef77b024932557c3254c79bfc
2018-03-12 15:43:53 -04:00
Kris Maglione
e4b6dffc2a Bug 1443983: Part 2 - Remove remaining interpositions. r=mconley
MozReview-Commit-ID: AHwNsBB7OAQ

--HG--
extra : rebase_source : d25b9ce77529130b98b6199d9c9e06c3890a2f87
2018-03-07 18:10:24 -08:00
Dão Gottwald
cad2207fbc Bug 1443318 - Set tabbox before tabContainer in gBrowser.init since the tabContainer's XBL constructor needs the tabbox. r=Gijs
MozReview-Commit-ID: GH2HZk3gEyf

--HG--
extra : rebase_source : ec8055ac3ff6193059aa545f336abddcea2b1f26
2018-03-08 12:17:32 +01:00
Cosmin Sabou
372f39f032 Backed out changeset d679c9a9afa0 (bug 1442582) for mochitest browser chrome failures at browser_ext_tabs_create.js on a CLOSED TREE 2018-03-07 22:19:53 +02:00
Dão Gottwald
3d577d8685 Bug 1442582 - Remove the tabbrowser-tabpanels binding. r=mconley
MozReview-Commit-ID: GBOzGTZFBcJ

--HG--
extra : rebase_source : 1955bf18ce22371fecaf4c56800346640051647b
2018-03-07 11:35:57 +01:00
Dão Gottwald
c5f58c6d1f Bug 1443837 - Set the "hasadjacentnewtabbutton" attribute in the tabbrowser-tabs binding rather than gBrowser. r=Gijs
MozReview-Commit-ID: GzmaJ4nVwtP

--HG--
extra : rebase_source : e9ebc1200b800562f06279d1a2576f771f34fe0b
2018-03-07 17:45:34 +01:00
Mike Conley
3cb1bcb379 Bug 1443315 - Don't set docShellIsActive to false for preloaded browsers that are being inserted. r=dao
MozReview-Commit-ID: LxZ9qaG1ls7

--HG--
extra : rebase_source : 30d722fbd9fe8aad4e935d526f321ee9711a4581
2018-03-06 14:37:27 -05:00
Mike Conley
4a49655321 Bug 1443315 - Make preloaded about:newtab's layers always rendered so that we avoid the flash when opening new tabs. r=florian
MozReview-Commit-ID: I0MvCnzskhB

--HG--
extra : rebase_source : 150a709f655a8f98b63aa1e975ecdbbe5d201530
2018-03-05 17:03:09 -05:00
Dão Gottwald
92ae27a927 Bug 1442398 - Convert the TabBrowser class to a plain object and make gBrowser available already before gBrowser.init returns. r=bgrins
MozReview-Commit-ID: Cmq8IOaoxn5

--HG--
extra : rebase_source : c74ea804ea39e7e6f9df24b45a4efa37b0aead51
2018-03-07 06:49:53 +01:00
Dão Gottwald
732eeec0ab Bug 1442651 - Remove the tabbrowser element and binding. r=bgrins
MozReview-Commit-ID: 2IXukkFq5C2

--HG--
extra : rebase_source : 4fd817951e19b39b5b06e75614031302177e86b2
2018-03-05 20:33:36 +01:00
Dão Gottwald
5d11b950a7 Bug 1436361 - Extract the async tab switcher from tabbrowser.js into its own JSM. r=mconley
MozReview-Commit-ID: AQaVOmQ548v

--HG--
rename : browser/base/content/tabbrowser.js => browser/modules/AsyncTabSwitcher.jsm
extra : rebase_source : 2ca6b3e21aead7de333ffec9bcbfc3f2b8bebdcb
2018-03-02 12:51:15 +01:00
Dão Gottwald
be2c54c8a1 Backed out changeset 0d138609abfd (bug 1344749)
MozReview-Commit-ID: 2Mx1CpM0uyH
2018-03-03 15:04:51 +01:00
Dão Gottwald
d5956623e1 Backed out changeset dcfe51f25e29 (bug 1344749)
MozReview-Commit-ID: GEvjVYpAUhS
2018-03-03 15:04:25 +01:00
Dão Gottwald
32245cbe28 Bug 1344749 - followup: fix indentation
MozReview-Commit-ID: FKpyXZhqS58

--HG--
extra : rebase_source : d31eb700417b614312b1b8239bd9094c74b25c7a
2018-03-02 11:27:45 +01:00
Bob Silverberg
ee896b579b Bug 1344749 - Expose API to customize where new tabs open, r=dao,mixedpuppy
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 : 71dac785c2edbf9edaa79e0e99dca6714addc9d8
2018-01-19 12:59:53 -05:00
Dão Gottwald
92884f6cd6 Bug 1441816 - Move mTabProgressListener into its own class. r=jaws
MozReview-Commit-ID: Fj5MtThJvld

--HG--
extra : rebase_source : 52b68f1c632247f99da772190d36da2fbc54aa90
2018-03-01 07:56:39 +01:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Brian Grinstead
18bb37dcc8 Bug 1392352 - Part 2 - Translate the tabbrowser implementation into a JS class;r=mconley,r=dao CLOSED TREE
We keep the XBL binding around for <content>, <constructor>, and <destructor>. This can
eventually be migrated to a Custom Element once we have platform support, but in the meantime
this is a way to get the many thousands of LOC into a JS class.

MozReview-Commit-ID: 1dCQp527yF9

--HG--
extra : rebase_source : 26b833413bab71168aa15e03f0f3803884be3f6b
extra : amend_source : 150cef6748ca8a9e819de0c674fac5966dd574cf
2018-02-27 10:04:14 -08:00
Brian Grinstead
378c6e27f2 Bug 1392352 - Part 1 - hg cp tabbrowser.xml to tabbrowser.js;r=dao
This will allow us to preserve blame as best as possible when the implementation
of this binding gets rewritten to JS in the next changeset.

MozReview-Commit-ID: HTBXcvQDAQZ

--HG--
rename : browser/base/content/tabbrowser.xml => browser/base/content/tabbrowser.js
extra : rebase_source : 9e9ffd02922966faedaa69c80e587e5b776b74c3
2018-02-27 09:47:52 -08:00