Commit Graph

109 Commits

Author SHA1 Message Date
Margareta Eliza Balazs
0be5f458ea 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
0196bd764d Bug 1448482 - Remove <title> element from about:privatebrowsing since tabbrowser already sets the title. r=Gijs
MozReview-Commit-ID: 3VcK126FfWX
2018-03-23 22:30:11 +01:00
Bogdan Tara
fdc4c696b0 Merge inbound to mozilla-central. a=merge 2018-03-27 12:12:57 +03:00
Bob Silverberg
53970dbf30 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
2018-01-19 12:59:53 -05:00
Tim Nguyen
d49de43825 Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht
2018-03-16 23:21:46 +00:00
Tim Nguyen
c389c6cf9c Bug 1444760 - Support only one form of loadURIWithFlags calls. r=dao
MozReview-Commit-ID: A5rMjQ6xnRw
2018-03-25 14:35:17 +02:00
Margareta Eliza Balazs
8ad3204b44 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
76bd43b52d Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht
2018-03-16 23:21:46 +00:00
Tim Nguyen
9f6b37eabb Bug 1444760 - Support only one form of loadURIWithFlags calls. r=dao
MozReview-Commit-ID: A5rMjQ6xnRw
2018-03-25 13:59:50 +02:00
Dão Gottwald
570d0e5c2c Bug 1448102 - Move tabWarmingEnabled, tabWarmingMax, tabWarmingUnloadDelay properties from gBrowser to AsyncTabSwitcher.jsm. r=mconley
MozReview-Commit-ID: 2pI1aDUxWFw
2018-03-22 19:36:00 +01:00
Tim Nguyen
06d8af81bb Bug 1445099 - Remove unused properties from browser binding. r=enndeakin 2018-03-26 16:32:37 +02:00
Gurzau Raul
2db91483a1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-16 19:58:27 +02:00
Vivek Dhingra
0ecbf733a5 Bug 1446060 - Rename mPanelContainer to tabpanels r=dao
MozReview-Commit-ID: 85PNkl3OeBE
2018-03-16 10:23:00 -04:00
Dão Gottwald
84c6f4ef16 Bug 1446332 - Remove const nsI* from tabbrowser.js. r=Gijs
MozReview-Commit-ID: XZuOy5yJo6
2018-03-16 12:28:37 +01:00
Dão Gottwald
5edc4b02c3 Bug 1446414 - Remove underutilized browser.homePage and browser.goHome. r=enn 2018-03-16 16:31:59 +01:00
Brian Birtles
5730792840 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
2018-03-16 12:49:55 +09:00
Gijs Kruitbosch
0ca6e1b639 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
2018-03-12 14:01:44 +00:00
Dão Gottwald
23567dc5d4 Bug 1446004 - Remove old non-e10s FX_TAB_SWITCH_TOTAL_MS probe. r=mconley
MozReview-Commit-ID: 9blsuI0AKje
2018-03-15 17:07:02 +01:00
Brindusan Cristian
a6e62d8ce3 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
54e2568278 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
2018-03-12 14:01:44 +00:00
Noemi Erli
d063f43975 Merge autoland to mozilla-central. a=merge 2018-03-15 19:38:46 +02:00
Dão Gottwald
cf54a10998 Bug 1445949 - updateCurrentBrowser cleanup. r=mconley 2018-03-15 15:14:53 +01:00
Dão Gottwald
42d6491906 Bug 1445948 - Use gMultiProcessBrowser in gBrowser.init. r=mconley 2018-03-15 15:13:21 +01:00
Dão Gottwald
7d50e56172 Bug 1443462 - Copy default browser attributes from the initial browser to dynamically created ones. r=mconley
MozReview-Commit-ID: DGy6W2w75Y2
2018-03-15 12:25:35 +01:00
Dão Gottwald
b0318e8dee Bug 1445572 - Rename mCurrentTab / mCurrentBrowser to _selectedTab / _selectedBrowser. r=jaws
MozReview-Commit-ID: IjH4bFnf5FA
2018-03-14 09:59:06 +01:00
Mike Conley
5fe23642d0 Bug 1445455 - Test that it's possible to show the same StatusPanel value twice in a row. r=dao
MozReview-Commit-ID: 17U8JHVO2PN
2018-03-13 18:21:47 -04:00
Mike Conley
62da7bc5ca Bug 1445455 - StatusPanel needs to update label even when the label text has not changed. r=dao
MozReview-Commit-ID: BhfFZ14IEB8
2018-03-13 17:27:06 -04:00
Gijs Kruitbosch
e87b49967e Bug 1427186 - treat empty tab title as non-content tab title (use default title) and update test, r=dao
MozReview-Commit-ID: FUR7edzMy1u
2018-03-11 21:23:54 +00:00
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