Commit Graph

81 Commits

Author SHA1 Message Date
Gijs Kruitbosch
2426a4d9cd 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
2018-03-07 20:13:54 +00:00
Narcis Beleuzu
b732ff8724 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Noemi Erli
545af3c536 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-13 01:16:04 +02:00
Dão Gottwald
4de32902e2 Bug 1444891 - Remove the statuspanel binding. r=jaws
MozReview-Commit-ID: KcpOYuObiNG
2018-03-12 20:47:31 +01:00
manikishan
02874947cf 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
38812ed3d8 Bug 1444694 - Set up the initial browser and tab in a dedicated method. r=Gijs
MozReview-Commit-ID: 5KoqeQ4r7im
2018-03-11 23:03:58 +01:00
Dão Gottwald
e4148d70f1 Bug 1444625 - Set gBrowser properties directly on the object rather than sequentially in init(). r=Gijs
MozReview-Commit-ID: 3fBLokkFMnP
2018-03-10 19:22:50 +01:00
Dão Gottwald
29587ba57b 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
ab37dc68f7 Bug 1443833 - Remove unused gBrowser.tabContextMenu property. r=dao
MozReview-Commit-ID: 6dJuanIFMxy
2018-03-09 17:10:16 +01:00
Cosmin Sabou
6e9b9fb5f4 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
8cb00984d2 Bug 1444891 - Remove the statuspanel binding. r=jaws
MozReview-Commit-ID: JaMhIAWHbEv
2018-03-12 14:55:55 +01:00
Dão Gottwald
20cddec271 Bug 1444613 - Use parameter default values in _callProgressListeners. r=jaws
MozReview-Commit-ID: 5PKsGlxRNEI
2018-03-10 14:44:44 +01:00
layely
ce309ae7e9 Bug 1387976 - Persist tab-muted state across restarts of the browser. r=jaws 2018-03-12 15:43:53 -04:00
Kris Maglione
4d631d9048 Bug 1443983: Part 2 - Remove remaining interpositions. r=mconley
MozReview-Commit-ID: AHwNsBB7OAQ
2018-03-07 18:10:24 -08:00
Dão Gottwald
dbca2eebef Bug 1443318 - Set tabbox before tabContainer in gBrowser.init since the tabContainer's XBL constructor needs the tabbox. r=Gijs
MozReview-Commit-ID: GH2HZk3gEyf
2018-03-08 12:17:32 +01:00
Cosmin Sabou
acbb3f00b8 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
ab4c361849 Bug 1442582 - Remove the tabbrowser-tabpanels binding. r=mconley
MozReview-Commit-ID: GBOzGTZFBcJ
2018-03-07 11:35:57 +01:00
Dão Gottwald
a319c37f87 Bug 1443837 - Set the "hasadjacentnewtabbutton" attribute in the tabbrowser-tabs binding rather than gBrowser. r=Gijs
MozReview-Commit-ID: GzmaJ4nVwtP
2018-03-07 17:45:34 +01:00
Mike Conley
36cb8e0a60 Bug 1443315 - Don't set docShellIsActive to false for preloaded browsers that are being inserted. r=dao
MozReview-Commit-ID: LxZ9qaG1ls7
2018-03-06 14:37:27 -05:00
Mike Conley
1a0ef22e5e 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
2018-03-05 17:03:09 -05:00
Dão Gottwald
3171b9ddaf 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
2018-03-07 06:49:53 +01:00
Dão Gottwald
3f43e08bd6 Bug 1442651 - Remove the tabbrowser element and binding. r=bgrins
MozReview-Commit-ID: 2IXukkFq5C2
2018-03-05 20:33:36 +01:00
Dão Gottwald
5a372abca5 Bug 1436361 - Extract the async tab switcher from tabbrowser.js into its own JSM. r=mconley
MozReview-Commit-ID: AQaVOmQ548v
2018-03-02 12:51:15 +01:00
Dão Gottwald
e15710e39d Backed out changeset 0d138609abfd (bug 1344749)
MozReview-Commit-ID: 2Mx1CpM0uyH
2018-03-03 15:04:51 +01:00
Dão Gottwald
70524436ca Backed out changeset dcfe51f25e29 (bug 1344749)
MozReview-Commit-ID: GEvjVYpAUhS
2018-03-03 15:04:25 +01:00
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