Commit Graph

287 Commits

Author SHA1 Message Date
Gijs Kruitbosch
dada5fb01e Bug 1533389 - stop leaving an item in the application handler list when sorting/filtering, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D22545
2019-03-07 17:38:23 +00:00
Andrei Oprea
a09dca3f13 Bug 1528953 - Add pref to opt out of recommended features r=k88hudson
To be reviewed together with https://github.com/mozilla/activity-stream/pull/4819

Differential Revision: https://phabricator.services.mozilla.com/D21408
2019-03-05 10:55:14 +00:00
Marco Bonardo
a040dd21a3 Bug 1528751 - Add a custom eslint rule to check "consistent" if bracing. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20753
2019-02-28 08:39:33 +00:00
Mark Striemer
1869f7ad8c Bug 1506102 - Don't count lastFallbackLocale as installed when just fluent is included r=zbraniecki,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18386
2019-02-12 23:28:27 +00:00
Brindusan Cristian
d3fb35a085 Backed out changeset e785008a884f (bug 1506102) for bc failures at browser_browser_languages_subdialog.js. 2019-02-11 19:32:16 +02:00
Mark Striemer
00471a799e Bug 1506102 - Don't count lastFallbackLocale as installed when just fluent is included r=zbraniecki,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18386
2019-02-11 15:24:55 +00:00
Dave Townsend
10b12a9eed Bug 1474285: Implement dedicated profiles per install. r=froydnj, r=Gijs
Uses a different profile depending on the install directory of the application.
installs.ini is used to map a hash of the install directory to a profile
directory.

If no profile is marked as default for the current install we use a heuristic
explained in the code to decide whether to use the profile that would have
been used before this feature.

The feature is disabled in snap builds where the install directory changes for
every version of the app, but multiple instances cannot share profiles anyway.
A boolean flag is used to turn on the feature because in a later patch we need
to be able to turn off the behaviour at runtime.

Includes code folded in from bug 1518634, bug 1522751, bug 1518632 and bug 1523024.
2019-01-25 16:02:28 -08:00
Coroiu Cristina
62e622b69e Backed out 7 changesets (bug 1518632, bug 1463198, bug 1455707, bug 1522934, bug 1322797, bug 1474285) for build bustages at /builds/worker/workspace/build/src/toolkit/xre/nsAppRunner.cpp on a CLOSED TREE
Backed out changeset 82355ab7e063 (bug 1455707)
Backed out changeset b965981c9ce0 (bug 1463198)
Backed out changeset 21a801ca5f6d (bug 1455707)
Backed out changeset 05200c5388b4 (bug 1518632)
Backed out changeset ebcd8225434a (bug 1522934)
Backed out changeset e69cac07b209 (bug 1474285)
Backed out changeset 35af79575f54 (bug 1322797)
2019-01-31 03:34:49 +02:00
Dave Townsend
9282afce07 Bug 1474285: Implement dedicated profiles per install. r=froydnj, r=Gijs
Uses a different profile depending on the install directory of the application.
installs.ini is used to map a hash of the install directory to a profile
directory.

If no profile is marked as default for the current install we use a heuristic
explained in the code to decide whether to use the profile that would have
been used before this feature.

The feature is disabled in snap builds where the install directory changes for
every version of the app, but multiple instances cannot share profiles anyway.
A boolean flag is used to turn on the feature because in a later patch we need
to be able to turn off the behaviour at runtime.

Includes code folded in from bug 1518634, bug 1522751, bug 1518632 and bug 1523024.
2019-01-25 16:02:28 -08:00
Myk Melez
5ecc2c1225 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526
2019-01-30 17:26:25 +00:00
Cosmin Sabou
bf63534551 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Timothy Guan-tin Chien
aabcb0d2fc Bug 1520350 - Lazily load about:preferences markups from hidden panes r=jaws
Because custom elements will be constructed when DOM is constructed,
construct the DOM in the hidden panels will be expensive as we move
more and more widgets to custom elements from XBL.

This patch attempts to counter that by moving all the pane markups
into comment nodes, and use MozXULElement.parseXULToFragment() to
insert it when it is being asked.

They will be loaded lazily from an requestIdleCallback() in findInPage.js.

Differential Revision: https://phabricator.services.mozilla.com/D16787
2019-01-29 00:27:29 +00:00
Andreea Pavel
f475dbf8d0 Backed out changeset ad9834d2b44e (bug 1520350) for failing browser_aboutPrefs_fc_check_otherInstance.js on a CLOSED TREE 2019-01-28 22:21:21 +02:00
Timothy Guan-tin Chien
4df4231bc8 Bug 1520350 - Lazily load about:preferences markups from hidden panes r=jaws
Because custom elements will be constructed when DOM is constructed,
construct the DOM in the hidden panels will be expensive as we move
more and more widgets to custom elements from XBL.

This patch attempts to counter that by moving all the pane markups
into comment nodes, and use MozXULElement.parseXULToFragment() to
insert it when it is being asked.

They will be loaded lazily from an requestIdleCallback() in findInPage.js.

Differential Revision: https://phabricator.services.mozilla.com/D16787
2019-01-28 18:21:59 +00:00
Kirk Steuber
459266afeb Bug 1512302 - Indicate on Windows that the App Update setting is installation-specific r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D15987
2019-01-25 20:42:49 +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
Kris Maglione
f498964d86 Bug 1519596: Part 1 - Remove several unnecessary/unused ChromeUtils.import() calls. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16377
2019-01-11 16:59:23 -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
Gijs Kruitbosch
3c50ed662a Bug 1506173 - use separate pref for warning on quit with sessionstore enabled, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D13535
2018-11-30 20:21:59 +00:00
Robert Strong
32ca87427a Bug 1506915 - Move app update auto enabled / disabled to a jsm. r=bytesized,chutten
This moves getting and setting the value of app.update.auto from nsUpdateService.js to UpdateUtils.jsm so nsUpdateService.js isn't loaded during startup
Changes the browser_policy_app_update_URL.js test to check the default pref for app.update.url since the default pref is read by app update
Fixes a NS_NOINTERFACE error in app update xpcshell tests for AppInfo not implementing nsIPlatformInfo

Differential Revision: https://phabricator.services.mozilla.com/D13285
2018-11-28 21:47:03 +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
Mark Striemer
b65105372a Bug 1509080 - Clear language change confirmation content on hide r=jaws
Previously this would just clear the locales attribute on the button, but the
button isn't always part of the content now. The content is generated in full
when it is shown.

Differential Revision: https://phabricator.services.mozilla.com/D12567
2018-11-22 17:56:27 +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
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
Jack Smith
8dace56cdf Bug 1491676 - Moves download folder strings r=flod,Gijs,zbraniecki
Depends on D8554

Differential Revision: https://phabricator.services.mozilla.com/D8928
2018-11-14 23:10:36 +00:00
Mark Striemer
dd3009ef9f Bug 1479013 - Include both languages in the browser language switch confirmation r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D10308
2018-11-13 17:46:19 +00:00
Cosmin Sabou
728f4df779 Backed out 4 changesets (bug 1491676) for causing browser chrome failures on browser_storagePressure_notification. CLOSED TREE
Backed out changeset 08cbaa2f9183 (bug 1491676)
Backed out changeset fae949de1ed5 (bug 1491676)
Backed out changeset aeb045b90321 (bug 1491676)
Backed out changeset e75c59f129ea (bug 1491676)
2018-11-07 20:53:48 +02:00
Jack Smith
34a6280a34 Bug 1491676 - Moves download folder strings r=flod,Gijs,zbraniecki
Depends on D8554

Differential Revision: https://phabricator.services.mozilla.com/D8928
2018-11-07 18:05:56 +00:00
Ciure Andrei
474054f58c Backed out 4 changesets (bug 1491676) for browser-chrome permissions failures CLOSED TREE
Backed out changeset e860d0d115d0 (bug 1491676)
Backed out changeset 04b83b7977c4 (bug 1491676)
Backed out changeset eb19b384d908 (bug 1491676)
Backed out changeset 76ea995336dc (bug 1491676)
2018-11-07 13:44:26 +02:00
Jack Smith
e5e3f7a81a Bug 1491676 - Moves download folder strings r=flod,Gijs,zbraniecki
Depends on D8554

Differential Revision: https://phabricator.services.mozilla.com/D8928
2018-11-05 16:59:02 +00:00
Kirk Steuber
781af9f7ff Bug 1458308 - Change about:preferences to use the new auto update pref mechanism r=jaws,flod
Depends on D4590

Differential Revision: https://phabricator.services.mozilla.com/D4591
2018-11-06 21:03:44 +00:00
Mark Striemer
0278c71361 Bug 1493711 - Enable langpack download on release and Beta r=jaws
Fix the message bar showing when the "search" option is selected. A value
was added in 597134aa665 for testing but the change handler was expecting
no value to be set for search.

Differential Revision: https://phabricator.services.mozilla.com/D10967
2018-11-06 00:33:13 +00:00
Mark Striemer
035e907ef7 Bug 1504725 - Explicitly pass event to language change handler r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D10924
2018-11-05 18:49:07 +00:00
Ciure Andrei
64c63f4e4a Backed out 4 changesets (bug 1458308) for causing uiAutoPref.js perma failures CLOSED TREE
Backed out changeset 4bf34689d4b6 (bug 1458308)
Backed out changeset 51e675ce6c56 (bug 1458308)
Backed out changeset 99317c8cd247 (bug 1458308)
Backed out changeset 7370877bd9e1 (bug 1458308)
2018-10-30 20:35:43 +02:00
Kirk Steuber
fa2f617b6d Bug 1458308 - Change about:preferences to use the new auto update pref mechanism r=flod,jaws
Depends on D4590

Differential Revision: https://phabricator.services.mozilla.com/D4591
2018-10-29 21:30:36 +00:00
Jack Smith
e12de2a2ac Bug 1491676 - Moves cloudstorage string r=flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D8552
2018-10-26 14:57:45 +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
Zibi Braniecki
715693b1b7 Bug 1498960 - Update Fluent in Gecko to 0.9. r=stas
Differential Revision: https://phabricator.services.mozilla.com/D8689
2018-10-20 16:35:50 +00:00
Ed Lee
af81bbbfd8 Bug 1500553 - Add CFR preference UI to about:preferences r=flod,ursula,k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D9286
2018-10-20 12:38:08 +00:00
Gijs Kruitbosch
fa4965716a Bug 1477669 - remove feed preview code and associated files/code, r=flod,mak,nika
Differential Revision: https://phabricator.services.mozilla.com/D8524
2018-10-16 12:47:36 +00:00
Michael Kaply
9d80360003 Bug 1499164 - Properly handle locked startup page. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D8760
2018-10-15 19:55:33 +00:00
Michael Kaply
73f4e0c480 Bug 1496855 - Switch PDF policy to use pdfjs.disabled. r=Felipe
pdfjs.disabled now works from policy, so use it

Differential Revision: https://phabricator.services.mozilla.com/D8237
2018-10-10 21:57:34 +00:00
Mark Striemer
db07e6081f Bug 1469696 - Part 5: Test listing and installing AMO langpacks r=aswan,jaws
Differential Revision: https://phabricator.services.mozilla.com/D6315
2018-10-02 17:57:33 +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
Botond Ballo
16441ed065 Bug 1488908 - QI the elements of nsIGIOservice.getAppsForURIScheme() to nsIHandlerApp. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D5886
2018-09-14 17:59:28 +00:00
Kris Maglione
fff254b816 Bug 1486249: Part 2 - Convert JS nsISimpleEnumerator implements to JS enumerators. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D4291
2018-08-25 18:31:44 -07:00
Florian Quèze
491e7751f8 Bug 1488232 - add a Google translation backend, r=felipe. 2018-09-03 19:15:56 +02:00
Jared Wein
c2baa54f74 Bug 1487404 - Coalesce multiple appendChild calls to one appendChild call when building the application handlers list. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D4697
2018-08-31 17:50:17 +00:00