Commit Graph

356 Commits

Author SHA1 Message Date
Dão Gottwald
5fb1f02a91 Bug 1344749 - followup: fix indentation
MozReview-Commit-ID: FKpyXZhqS58
2018-03-02 11:27:45 +01:00
Bob Silverberg
bc6e5e563a 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
2018-01-19 12:59:53 -05:00
Dão Gottwald
0cd4992cac Bug 1441816 - Move mTabProgressListener into its own class. r=jaws
MozReview-Commit-ID: Fj5MtThJvld
2018-03-01 07:56:39 +01:00
Florian Quèze
f6add2cafd 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
938da9ee8f 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
2018-02-27 10:04:14 -08:00
Brian Grinstead
4fa6ea82ec 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
2018-02-27 09:47:52 -08:00