Commit Graph

26 Commits

Author SHA1 Message Date
Andrew Swan
010e0a37f3 Bug 1504056 Part 1: Refactor AddonManager.getInstallForURL() arguments r=kmag
AddonManagergetInstallForURL() has a number of optional arguments, most
of which are passed infrequently.  Convert them from positional arguments
to a single options object.

Differential Revision: https://phabricator.services.mozilla.com/D18475
2019-02-01 15:23:55 -08:00
Cosmin Sabou
bf63534551 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Timothy Guan-tin Chien
4dc1b99fe7 Bug 1518932 - Convert menulist to custom element r=paolo
This custom element replaces XBL <content> usage by directly prepend the two needed child nodes when the element is connected.

This is doable because

- There isn't any direct access of child nodes under <menulist>. Everyone seems to access via .menupopup, which is usually the only child.
- We don't need to move the children under <menulist>. If we need to and if the child is a <xbl:children> (which could happen if <menulist> is inside an XBL <content> that just get cloned to the document), the layout will get very confused and crash (see finding in bug 1514926)

Differential Revision: https://phabricator.services.mozilla.com/D16149
2019-01-28 18:24:08 +00: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
Mark Striemer
af4c9e146c Bug 1486507 - Record telemetry for browser language changes r=rpl,flod,chutten
Differential Revision: https://phabricator.services.mozilla.com/D11795
2018-11-10 10:45:23 -06:00
Mark Striemer
5afb32c2f0 Bug 1510017 - Ensure label is reset when adding browser language r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D12987
2018-11-29 18:39:02 +00:00
Mark Striemer
2f1d27818b Bug 1506835 - Resize browser languages dialog when error appears r=jaws
***

Differential Revision: https://phabricator.services.mozilla.com/D12985
2018-11-30 19:37:41 +00:00
Mark Striemer
f5ee58d1a7 Bug 1488442 - Part 2: Ensure added langpack is enabled r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D10981
2018-11-23 19:59:58 +00:00
Mark Striemer
0489e6823c Bug 1488442 - Part 1: Only list available locales in the requested set r=zbraniecki
Generally, this switches Services.locale.requestedLocales calls to use
Services.locale.appLocalesAsBCP47.

Differential Revision: https://phabricator.services.mozilla.com/D10980
2018-11-23 19:59:59 +00:00
Dorel Luca
83ebccb027 Backed out 2 changesets (bug 1488442) for browser-chrome failures in browser/components/preferences/in-content/tests/browser_browser_languages_subdialog.js
Backed out changeset d683ee5ff088 (bug 1488442)
Backed out changeset 8d14b467d422 (bug 1488442)
2018-11-22 01:22:10 +02:00
Mark Striemer
c684fe7a07 Bug 1488442 - Part 2: Ensure added langpack is enabled r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D10981
2018-11-21 22:09:14 +00:00
Mark Striemer
6e01934747 Bug 1488442 - Part 1: Only list available locales in the requested set r=zbraniecki
Generally, this switches Services.locale.requestedLocales calls to use
Services.locale.appLocalesAsBCP47.

Differential Revision: https://phabricator.services.mozilla.com/D10980
2018-11-21 22:09:07 +00:00
Mark Striemer
1d4b36a178 Bug 1505751 - Wait for menulist close for browser language handlers r=Gijs
The search handler was being called when focusing the menuitem with the keyboard on Windows. This didn't provide a good experience and left the popup open once the search started. Ensure the popup is always shown when using the keyboard and don't trigger the search until the popup is closed.

Differential Revision: https://phabricator.services.mozilla.com/D12324
2018-11-21 15:36:52 +00:00
Mark Striemer
e7032abb79 Bug 1505594 - Put removed browser locale in the right order r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D11372
2018-11-09 20:05:01 +00:00
Mark Striemer
a7ebb78b4c Bug 1493711 - Pref off downloading langpacks outside of release r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D8909
2018-10-18 14:36:39 +00:00
Mark Striemer
17d61d18ab Bug 1479008 - Install related dictionaries after a langpack is installed r=leplatrem,aswan
Differential Revision: https://phabricator.services.mozilla.com/D8442
2018-10-18 16:48:12 +00:00
Bogdan Tara
de5df4e124 Backed out changeset 77d3179f96db (bug 1479008) for browser_browser_languages_subdialog.js failures 2018-10-18 18:33:57 +03:00
Mark Striemer
e82d26dd7a Bug 1479008 - Install related dictionaries after a langpack is installed r=leplatrem,aswan
Differential Revision: https://phabricator.services.mozilla.com/D8442
2018-10-16 20:09:02 +00:00
Mark Striemer
ccda675945 Bug 1469696 - Part 6: Update warning message, limit width r=flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D7216
2018-10-02 17:57:33 +00:00
Mark Striemer
ff126d66f9 Bug 1469696 - Part 4: Separate installed and available langpacks r=flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D6314
2018-10-02 17:57:32 +00:00
Mark Striemer
ceb80bfbcd Bug 1469696 - Part 3: Allow searching for languages from dialog r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D6313
2018-10-02 17:57:32 +00:00
Mark Striemer
aa41a46327 Bug 1469696 - Part 2: Allow installing langpacks from AMO in prefs r=flod,aswan,zbraniecki,jaws
Differential Revision: https://phabricator.services.mozilla.com/D6312
2018-10-03 14:07:14 +00:00
Zibi Braniecki
a968635d1d Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

Differential Revision: https://phabricator.services.mozilla.com/D6339
2018-09-21 15:30:37 +00:00
Mark Striemer
5e9df3d8b8 Bug 1488467 - Part 1: Support adding and removing installed browser languages r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D4989
2018-09-11 20:01:35 +00:00
Mark Striemer
997e094b3d Bug 1469688 - Part 3: Maintain the order of browser languages dialog r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D4488
2018-08-28 11:04:02 -05:00
Mark Striemer
679446fa42 Bug 1469688 - Part 2: Allow reordering of browser languages in prefs r=Gijs,zbraniecki,flod
Differential Revision: https://phabricator.services.mozilla.com/D3137
2018-08-28 16:26:06 -05:00