Commit graph

232 commits

Author SHA1 Message Date
Gijs Kruitbosch
d6e7c731e7 Bug 1558635 - use an html:template for the customize mode palette to avoid instantiating items in the palette, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D74097
2020-05-13 23:31:05 +00:00
Emma Malysz
f26d917593 Bug 1634033: lazify menus and panels used within customize mode by placing in template. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D74576
2020-05-11 18:13:57 +00:00
Dão Gottwald
7df9930846 Bug 1635095 - Obey prefers-reduced-motion in CustomizeMode.jsm. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73648
2020-05-04 21:19:26 +00:00
Gijs Kruitbosch
5169d79e96 Bug 1518500 - ensure we don't end up without a flexible space if moving items directly to toolbars, r=dao
Before this patch, we change aDraggedItemId somewhat late in the _applyDrop method -
significantly, we do this after the aTargetNode == areaCustomizationTarget check. So
we end up bailing out before adjusting aDraggedItemId, and we add the specific dummy
item from the palette into the toolbar, rather than adding a new spring to the
toolbar, and leaving the existing palette item alone.

Simply moving this adjustment to aDraggedItemId earlier into the method is sufficient
to fix the issue at hand.

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

--HG--
extra : moz-landing-system : lando
2020-02-17 15:43:32 +00:00
Dão Gottwald
446563f92e Bug 1609938 - Enable tab animation when closing the customize tab via ESC key or Done button. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D60248

--HG--
extra : moz-landing-system : lando
2020-01-17 23:22:49 +00:00
Dão Gottwald
3774eb8a9a Bug 1609932 - Make depopulatePalette synchronous and remove the customize tab immediately in CustomizeMode::exit. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D60243

--HG--
extra : moz-landing-system : lando
2020-01-17 23:31:43 +00:00
Dão Gottwald
063ff0ea9e Bug 883397 - Remove redundant about:blank check from CustomizeMode.exit. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D60146

--HG--
extra : moz-landing-system : lando
2020-01-16 17:20:11 +00:00
Dão Gottwald
bca8987c92 Bug 1560348 - Remove CustomizeMode::_doTransition. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58763

--HG--
extra : moz-landing-system : lando
2020-01-16 11:41:36 +00:00
Coroiu Cristina
a11955a5ba Backed out changeset e2a0b2626fe8 (bug 1560348) for frequently failing browser-chrome at browser/components/extensions/test/browser/browser_ext_browserAction_contextMenu.js 2020-01-08 10:13:51 +02:00
Dão Gottwald
dd16ec0252 Bug 1560348 - Remove CustomizeMode::_doTransition. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58763

--HG--
extra : moz-landing-system : lando
2020-01-07 11:28:13 +00:00
Brindusan Cristian
74bfffec0d Backed out changeset c716cc9f2a70 (bug 1560348) for bc failures at browser_lwt_telemetry.js. CLOSED TREE 2020-01-07 13:08:00 +02:00
Dão Gottwald
75e1b2d43f Bug 1560348 - Remove CustomizeMode::_doTransition. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58763

--HG--
extra : moz-landing-system : lando
2020-01-06 17:45:27 +00:00
Masayuki Nakano
0a74bf0038 Bug 1605918 - Get rid of synthesizeDragStart() in EventUtils.js r=smaug
All usage of `synthesizeDragStart()` is, starting drag, cancel `dragstart`,
and finally compares `dataTransfer` items and given expected data.  So,
we can make the users use `synthesizePlainDragAndDrop()` instead.  It's
better API because it computes position of mouse operations at runtime and
checks whether the drag start was succeeded with optional logging feature
(i.e., it's easier to debug of intermittent failures).

This patch creates `synthesizePlainDragAndCancel()` for convenience.  It
handles `dragstart` instead of the callers.

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

--HG--
extra : moz-landing-system : lando
2019-12-27 16:25:24 +00:00
Gijs Kruitbosch
5b1dbc026d Bug 1595772 - make overflow panel arrow position in customize mode more reliably correct, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D52934

--HG--
extra : moz-landing-system : lando
2019-11-15 10:25:06 +00:00
harry
f56a5c0ec4 Bug 1522012 - Implement Touch Bar's native customization window and remove ui.touchbar.layout preference. r=spohl,mikedeboer,fluent-reviewers,Pike
This patch also fixes the Home and Sidebar Touch Bar buttons, since using them after customizing showed that they no longer worked.

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

--HG--
extra : moz-landing-system : lando
2019-07-06 21:10:33 +00:00
Victor Porof
1f830c96da Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
2019-07-05 09:53:32 +02:00
Mihai Alexandru Michis
421a5483d0 Backed out changeset 3e2fe70b181a (bug 1522012) for causing failures in browser_touchbar_tests.js CLOSED TREE 2019-07-04 18:47:07 +03:00
harry
d1e552113e Bug 1522012 - Implement Touch Bar's native customization window and remove ui.touchbar.layout preference. r=spohl,mikedeboer,fluent-reviewers,Pike
This patch also fixes the Home and Sidebar Touch Bar buttons, since using them after customizing showed that they no longer worked.

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

--HG--
extra : moz-landing-system : lando
2019-07-04 03:57:47 +00:00
Andreea Pavel
4332741c0a Backed out changeset c1b80824ae88 (bug 1522012) for failing bc at browser_touchbar_tests.j on a CLOSED TREE 2019-07-03 00:19:25 +03:00
harry
d33a170707 Bug 1522012 - Implement Touch Bar's native customization window and remove ui.touchbar.layout preference. r=spohl,mikedeboer,fluent-reviewers,Pike
This patch also fixes the Home and Sidebar Touch Bar buttons, since using them after customizing showed that they no longer worked.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 14:47:07 +00:00
Brian Grinstead
10b19180a7 Bug 1558995 - Remove <deck id="content-deck"> r=dao
This isn't necessary, since it has only 2 static children (the selected tab's content
and the customizable UI), and their visibility is toggled in a single place. We already
toggle .hidden for both - there's no need for a separate deck.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 09:28:24 +00:00
Brian Grinstead
402bc3a970 Bug 1553188 - Part 4 - Update remaining references to browser.xul;r=bdahl
These are generally:
- Code comments to browser.xhtml
- Testcases, assertions that were mostly using browser.xul as a generic chrome URL
- References to the browser.xul path in tree

Differential Revision: https://phabricator.services.mozilla.com/D33208
2019-05-28 16:40:42 -07:00
Gijs Kruitbosch
ff5a80aceb Bug 1547573 - fix sorting in and add test for themes dropdown in customize mode, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D30392

--HG--
extra : moz-landing-system : lando
2019-05-09 18:22:53 +00:00
Andrew Swan
66e382f5b2 Bug 1538983 Convert button xbl binding to a custom element r=bgrins
As of this change, instances of xul <button> use a custom element.
The button-base xbl binding remains for now, since it is still used
by toolbarbutton, it will be removed soon.

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

--HG--
rename : toolkit/content/widgets/button.xml => toolkit/content/widgets/button.js
extra : rebase_source : 2be8ee3fa9bb43866013f62211d8cb3706dbf1ab
2019-04-15 14:27:32 -07:00
Kris Maglione
a26cb1456f Bug 1540517: Fix sorting of themes in customize mode. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D28714

--HG--
extra : rebase_source : dacce217c9aefb7c130c540e2c0d617bf315219e
2019-04-24 11:18:20 -07:00
Rob Wu
1af4c55c01 Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao
- `Array.forEach` becomes for-of loop or `array.forEach`.
- `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`.
- `Array.map` becomes `Array.from`
- `Array` copy + concatenation becomes Array literal + spread syntax.
- All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)`

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

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:17 +00:00
Nicholas Cowles
a759e8ba70 Bug 1523747 - Move customize mode strings over to fluent, r=Gijs,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D26418

--HG--
extra : moz-landing-system : lando
2019-04-10 15:46:31 +00:00
Oriol Brufau
c3e455508e Bug 1504567 - Don't prematurely insert lazy tabs in customize mode. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24657

--HG--
extra : moz-landing-system : lando
2019-04-02 12:58:40 +00:00
Oriol Brufau
4b939a88d2 Bug 1540530 - Don't tear down Customize Mode when reloading about:blank. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25547

--HG--
extra : moz-landing-system : lando
2019-04-09 17:54:01 +00:00
Kris Maglione
196384f808 Bug 1525511: Part 2c - Stop using LightweightThemeManager for customize mode themes menu. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D18784

--HG--
extra : rebase_source : bc5d359283ab8714fb42ae362ffc88b6ca0fe484
2019-02-05 17:23:24 -08:00
Kris Maglione
a5a3286f53 Bug 1525511: Part 2b - Delete recommended theme gunk. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D18783

--HG--
extra : rebase_source : a299976bbe01c1be8fa3b95dfe129ced67ca6495
2019-02-05 21:20:37 -08:00
Kris Maglione
081ab704d6 Bug 1525511: Part 2a - Delete theme preview gunk. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D18782

--HG--
extra : rebase_source : ef19f1121812713cc41a36e245c2d9ec5baa4512
2019-02-05 15:43:43 -08:00
Mark Striemer
6ef0bc9dc2 Bug 1500147 - Part 2: Record LWT telemetry in customize mode r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D18002

--HG--
extra : moz-landing-system : lando
2019-02-07 16:42:04 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Kris Maglione
2fe0de01dc Bug 1519596: Part 1 - Remove several unnecessary/unused ChromeUtils.import() calls. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16377

--HG--
extra : rebase_source : 6c4311387d25de425806aeb6c4691e12c9fcb855
2019-01-11 16:59:23 -08:00
Martin Stransky
53be695239 Bug 1490344 - [Linux/Gtk] Enable hidden system titlebar by default on Gnome, r=dao
This patch implements -moz-gtk-csd-hide-titlebar-by-default media query
to check if the system titlebar should be disabled by default on Linux systems
(it's already disabled on Window/Mac).

It also removes explicit definition of browser.tabs.drawInTitlebar preference on Linux.
When browser.tabs.drawInTitlebar is missing the -moz-gtk-csd-hide-titlebar-by-default
is used to obtain the titlebar state. When browser.tabs.drawInTitlebar is set
in about:config or by Customize menu, the user peference is used instead of the default.

It also fixes a -moz-gtk-csd-available media query,
it was always true regardless the actual system setting.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 12:44:49 +00:00
Andreea Pavel
d0b4b569af Backed out changeset aa442da7cfd8 (bug 1490344) for failing bc at browser/components/customizableui/test/browser_970511_undo_restore_default.js on a CLOSED TREE 2019-01-16 13:33:24 +02:00
Martin Stransky
0e01fab619 Bug 1490344 - [Linux/Gtk] Enable hidden system titlebar by default on Gnome, r=dao
This patch implements -moz-gtk-csd-hide-titlebar-by-default media query
to check if the system titlebar should be disabled by default on Linux systems
(it's already disabled on Window/Mac).

It also removes explicit definition of browser.tabs.drawInTitlebar preference on Linux.
When browser.tabs.drawInTitlebar is missing the -moz-gtk-csd-hide-titlebar-by-default
is used to obtain the titlebar state. When browser.tabs.drawInTitlebar is set
in about:config or by Customize menu, the user peference is used instead of the default.

It also fixes a -moz-gtk-csd-available media query,
it was always true regardless the actual system setting.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 14:47:03 +00:00
Dão Gottwald
9880945252 Bug 1509651 - Stop flushing style for knowing the UI direction. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D12827

--HG--
extra : moz-landing-system : lando
2018-11-26 11:59:04 +00:00
Gijs Kruitbosch
1dfbc61056 Bug 1494014 - fix icon on the lightweight theme button to be correct when changing it from the menu, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D12546

--HG--
extra : moz-landing-system : lando
2018-11-21 17:23:05 +00:00
Cosmin Sabou
931548d569 Backed out changeset 6ce32daf8079 (bug 1494014) for browser chrome failures on browser_1007336_lwthemes_in_customize_mode. CLOSED TREE 2018-11-21 18:12:24 +02:00
Gijs Kruitbosch
fb77da7472 Bug 1494014 - fix icon on the lightweight theme button to be correct when changing it from the menu, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D12546

--HG--
extra : moz-landing-system : lando
2018-11-21 15:08:03 +00:00
Alexander Surkov
17f55aee76 Bug 1493594 - replace customizationTarget XBL property by CustomizableUI method, r=gijs 2018-11-08 13:45:22 +07:00
Gijs Kruitbosch
ce2d30dc03 Bug 1500268 - remove legacy toolbar and currentset support from customizableui, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D9172

--HG--
extra : moz-landing-system : lando
2018-10-22 16:02:07 +00:00
Mark Banner
691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Brendan Dahl
f6923ccc24 Bug 1485426 - Use createXULElement instead of createElement in XUL docs. r=bgrins
Preparing for transitioning to XHTML.

MozReview-Commit-ID: JLlmUxsvhIB

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

--HG--
extra : moz-landing-system : lando
2018-08-25 00:16:27 +00:00
Brian Grinstead
abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Thi Huynh
a86e16661f Bug 1480982 - Replace _dwu getter with _getBoundsWithoutFlushing method in CustomizeMode.jsm. r=dao
MozReview-Commit-ID: 8NKI6aI3FY0

--HG--
extra : rebase_source : 09b5bf75b8d2fdafdc8223dadf84e04b1d2ac8a7
2018-08-05 17:23:18 +07:00
Emilio Cobos Álvarez
3deb38c4a8 Bug 1474142: Don't skip calling _onDragEnd even if the from and to target is the customizable area. r=Gijs
We may not really receive a dragend event if we're fast enough.

Calling _onDragEnd multiple times is fine (it should be idempotent).

This particular exception was added in bug 978084 along with all the _onDragEnd
calls, but I don't think it's sound over-all.

I don't really want to dig into the XUL button code to see why drag end was
consistently firing there, unless you think it's really really needed :)

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

--HG--
extra : moz-landing-system : lando
2018-07-31 15:38:34 +00:00
Boris Zbarsky
270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00