Commit Graph

9 Commits

Author SHA1 Message Date
Andrew McCreight
1983304353 Bug 1543169 - Use nicer XPIDL arrays in nsITouchBarUpdater. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D26773
2019-04-09 17:47:06 +00:00
Harry Twyford
89aad96765 Bug 1529366 - Implement batch-updating of Touch Bar inputs. r=mikedeboer,spohl
Changes updateTouchBarInput to a batch-updating updateTouchBarInputs.
Also adds a check for a cached localized title to getTouchBarInput().

Differential Revision: https://phabricator.services.mozilla.com/D20956
2019-03-18 12:14:11 +00:00
Harry Twyford
9a9d08b12d Bug 1522039 - Changes default Touch Bar button set and replaces icon on Close Window button. r=bwinton,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D17831
2019-02-21 19:23:33 +00:00
Kris Maglione
c680a36bb9 Bug 1514594: Follow-up: Fix merge bustage in another test. r=bustage 2019-01-28 17:31:01 -08:00
Kris Maglione
856fa07b17 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
2019-01-17 10:18:31 -08:00
Harry Twyford
da08e953f4 Bug 1522994 - Resolves crash when using Touch Bar inputs out-of-context. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D17695
2019-01-27 22:06:38 +00:00
Harry Twyford
1b70c43c78 Bug 1522039 - Changed label on Touch Bar "Focus" button to "Close Window" to better reflect behaviour. r=bwinton,flod
Differential Revision: https://phabricator.services.mozilla.com/D17382
2019-01-23 19:49:01 +00:00
Stephen A Pohl
5c5c02dfb2 Bug 1313429: Followup to add a missing break for a case in a switch statement (discovered by coverity). r=mikedeboer 2019-01-24 00:14:51 +01:00
Harry Twyford
95cb2a6ad2 Bug 1313429 - Add Touch Bar functionality to Firefox r=spohl,mikedeboer,flod
Adds Touch Bar functionality to Firefox across eight commits.

Differential Revision: https://phabricator.services.mozilla.com/D5496
2019-01-22 17:13:33 +00:00