Commit Graph

8335 Commits

Author SHA1 Message Date
Mark Striemer
9d2a750d3f Bug 1525091 - Part 2: Theme previews in HTML about:addons r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D23197

--HG--
extra : moz-landing-system : lando
2019-04-04 19:21:55 +00:00
Mark Striemer
ddf04abc4c Bug 1525091 - Part 1: Avoid height change on string load in HTML about:addons r=jaws,Gijs,zbraniecki
Fluent strings load asynchronously, so some text will be empty until that
happens. Once the strings load the page will shift down as the elements
gain the height of the text. Ensure there's always text in the add-on
cards so their height won't change (or at least it's reduced) once
strings load.

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

--HG--
extra : moz-landing-system : lando
2019-04-04 19:21:48 +00:00
Mark Striemer
0978afd594 Bug 1525173 - HTML about:addons detail view r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D22766

--HG--
extra : moz-landing-system : lando
2019-04-05 07:54:35 +00:00
Coroiu Cristina
81988cf6f0 Merge mozilla-central to inbound a=merge
--HG--
rename : browser/components/newtab/locales-src/bn-BD/strings.properties => browser/components/newtab/locales-src/bn/strings.properties
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream-noscripts.html => browser/components/newtab/prerendered/locales/bn/activity-stream-noscripts.html
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream-prerendered-noscripts.html => browser/components/newtab/prerendered/locales/bn/activity-stream-prerendered-noscripts.html
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream-prerendered.html => browser/components/newtab/prerendered/locales/bn/activity-stream-prerendered.html
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream-strings.js => browser/components/newtab/prerendered/locales/bn/activity-stream-strings.js
rename : browser/components/newtab/prerendered/locales/bn-BD/activity-stream.html => browser/components/newtab/prerendered/locales/bn/activity-stream.html
rename : browser/components/newtab/prerendered/locales/mai/activity-stream-noscripts.html => browser/components/newtab/prerendered/locales/trs/activity-stream-noscripts.html
rename : browser/components/newtab/prerendered/locales/mai/activity-stream.html => browser/components/newtab/prerendered/locales/trs/activity-stream.html
extra : rebase_source : 036d21b0bde0e7b1d2b51b7b6fe1f8cc5e088de0
2019-04-05 01:18:50 +03:00
Gijs Kruitbosch
771cfc5d5e Bug 1541706 - fix linux intermittent xpinstall/browser_privatebrowsing.js, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D26186

--HG--
extra : moz-landing-system : lando
2019-04-04 16:30:13 +00:00
Oana Pop Rus
046e28ecbd Backed out changeset 7a05ac03465c (bug 1539598) for turning bug 1531406 into perma on a CLOSED TREE 2019-04-04 15:35:04 +03:00
Trishul
cd237dd283 Bug 1522227 - Prevent assigning a shortcut that is already assigned r=mstriemer,aswan,flod
Prevent assigning a shortcut that is already assigned

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

--HG--
extra : moz-landing-system : lando
2019-04-04 05:22:28 +00:00
arthur.iakab
418c25741a Merge mozilla-central to inbound 2019-04-04 19:10:56 +03:00
Andrew Swan
352f277b26 Bug 1539362 Don't send cookies with langpack lookup requests r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26059

--HG--
extra : rebase_source : f311f2947d3a3b400fac706dbd3abd7439fdfb7f
2019-04-03 20:57:21 -07:00
Ciure Andrei
4116e08315 Merge inbound to mozilla-central. a=merge 2019-04-04 07:34:14 +03:00
Andrew Swan
160a527be4 Bug 1539598 Require pre-install confirmation on all addons installs from outside about:addons r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D26024

--HG--
extra : rebase_source : 980d355c60594374af016543eadd486b5ba127a4
2019-04-03 15:30:38 -07:00
Gijs Kruitbosch
382c9e2410 Bug 1528335, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25775

--HG--
extra : moz-landing-system : lando
2019-04-03 21:01:19 +00:00
Gijs Kruitbosch
2930600872 Bug 1528335 - tests, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25774

--HG--
extra : moz-landing-system : lando
2019-04-03 21:01:06 +00:00
Luca Greco
2f3db5c142 Bug 1540112 - Enable addonsManager telemetry event category before the AddonManager/XPIProvider have been started. r=aswan,chutten
Differential Revision: https://phabricator.services.mozilla.com/D25380

--HG--
extra : moz-landing-system : lando
2019-04-03 17:56:52 +00:00
Jan-Erik Rediger
6bc73bc6a2 Bug 1529696 - Rename DATASET_RELEASE_CHANNEL_OPTOUT/OPTIN to DATASET_ALL/PRERELEASE_CHANNELS everywhere r=chutten
Depends on D25934

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:12:11 +00:00
Edwin Gao
05d16c8961 Bug 1536637 - correct the bug number detailing test_gmpProvider.js being disabled for windows10-aarch64 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D25866

--HG--
extra : moz-landing-system : lando
2019-04-02 21:24:55 +00:00
Bogdan Tara
a4e3aa46bf Backed out 2 changesets (bug 1528335) for test_ext_privacy_update.js failures CLOSED TREE
Backed out changeset fd9468269591 (bug 1528335)
Backed out changeset acce10271d62 (bug 1528335)
2019-04-03 06:17:54 +03:00
Gijs Kruitbosch
5d693629ee Bug 1528335, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25775

--HG--
extra : moz-landing-system : lando
2019-04-02 19:37:59 +00:00
Gijs Kruitbosch
38e2c781b0 Bug 1528335 - tests, r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25774

--HG--
extra : moz-landing-system : lando
2019-04-02 19:37:36 +00:00
Andi-Bogdan Postelnicu
e10003d9ee Bug 1363011 - [Static Analysis] Buffer not null terminated in int NS_main(int argc, NS_tchar **argv). r=mhowell
Patch wrote by: Santiago Paez [:tiago]

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

--HG--
extra : moz-landing-system : lando
2019-04-02 15:28:14 +00:00
Jonas Allmann
df684f89db Bug 1498569, Replace wizard.xml attributes with event listeners, r=Gijs
* Removed all occurences of custom onwizard* attributes.
* Removed custom handler code from wizard.xml.
* Updated eval()-usage whitelist.

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

--HG--
extra : moz-landing-system : lando
2019-04-02 08:56:25 +00:00
Nick Alexander
18d29ec452 Bug 1525968 - Post: Only package artifact symbols in automation. r=glandium
Depends on D19092

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

--HG--
extra : moz-landing-system : lando
2019-03-29 08:43:22 +00:00
Edwin Gao
cf79011546 Bug 1538785 - disable plugin-related tests from windows10-aarch64 r=jmaher
Disabled plugin related tests.

Added `crashreporter` dependency for browser_restore_isAppTab.js.

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

--HG--
extra : moz-landing-system : lando
2019-04-01 18:30:23 +00:00
Kris Maglione
18029e0374 Bug 1539925: Part 3 - Remove stray bootstrapped extension test in test_cache_certdb.js. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25286

--HG--
extra : rebase_source : b21b57660f1141c0b500838d0a638c2caeead033
extra : histedit_source : e13e2f35c1dfadd587fd90b39f188728000b4eb1
2019-03-28 12:38:21 -07:00
Kris Maglione
0ef92def96 Bug 1539925: Part 2 - Remove stray install.rdf reference in test_proxies.js. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25285

--HG--
extra : rebase_source : 89009843c241413f25e7b2ba2f4635be70fc7515
extra : histedit_source : 46b3f0f82c59607de2b087ff7bbd749a72d37818
2019-03-28 12:37:37 -07:00
Kris Maglione
73ee2426f8 Bug 1539925: Part 1 - Remove stray install.rdf reference in AddonManagerStartup. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25284

--HG--
extra : rebase_source : 4c765affa8ec900886aef39a2ca8d057bf06d696
extra : histedit_source : f29581793fdfbf38ce9a979ee85db63351180c26
2019-03-28 12:33:58 -07:00
Kris Maglione
f0cb1a3cda Bug 1538343: Replace prepare_test() with something moderately less awful. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D24560

--HG--
extra : rebase_source : 69edc83228cd711aea0e6418c09cceebcee60596
extra : histedit_source : 91f8fc3a451033d390aad9dfde4d9f514e7b2b2d
2019-03-22 14:03:31 -07:00
Kris Maglione
fc69d06420 Bug 1525762: Part 7 - Remove defunct LightweightThemeOptimizer. r=aswan
It only works with "persisted" theme images, which no longer exist.

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

--HG--
extra : rebase_source : 8d32e4ceb48ec8bde68e8b42dcf4e2f11c9d60fd
extra : histedit_source : 0bcbae928b6e1517eace567d1e00afc60321ea3c
2019-03-29 11:37:08 -07:00
Kris Maglione
1328b01d50 Bug 1525762: Part 6 - Stop dispatching theme change observers using JSON strings. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D24795

--HG--
extra : rebase_source : 67c14ffc0cc46c041617ae04d39107dd66949f88
extra : histedit_source : 51973c82f0014767c2ae947a00cdb7afe9478c35
2019-03-25 13:52:01 -07:00
Kris Maglione
88035afb21 Bug 1525762: Part 4 - Support automatic dark mode fallback for default theme again. r=aswan
--HG--
extra : rebase_source : 1591ab6670e301e78d98084c852cb72e74ff7504
extra : histedit_source : ec392d6f1b93993bceed5e4bbf3d394b02342794
2019-02-08 15:36:04 -08:00
Kris Maglione
5b06eaa613 Bug 1525762: Part 3f - Get rid of LWTPersister. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D24633

--HG--
extra : rebase_source : fda3a73f7fae19bc63ec6df91a82f43c1932a230
extra : histedit_source : 8859fcaef84fca2e7cdf03cefdb322e212c7065d
2019-02-08 14:57:27 -08:00
Kris Maglione
6d78820c90 Bug 1525762: Part 3e - Get rid of LWTManager theme management code. r=aswan
--HG--
extra : rebase_source : 1dc3cc062f7ef0ce8c80822251b31dbf9cc8f133
extra : histedit_source : 0beb1de14bd4603fa34e7fa8a7178582e3e7d71f
2019-02-08 14:48:54 -08:00
Kris Maglione
6abf9497a0 Bug 1525762: Part 3d - Get rid of built-in LWT code. r=aswan
--HG--
extra : rebase_source : 973fe909020cc59e2fef2ba00fb1090052881ead
extra : histedit_source : e84e0d06fa61861cfe1f209e52982c75b637b57e
2019-02-08 14:31:34 -08:00
Kris Maglione
af2e6f146c Bug 1525762: Part 3c - Get rid of LWT preview code. r=aswan
--HG--
extra : rebase_source : ce6fda5f6c00df69f886765834a45ff654019570
extra : histedit_source : aac92de1ad4e4266c9dac57e953562dc02477416
2019-02-08 14:30:20 -08:00
Kris Maglione
51c361cfdc Bug 1525762: Part 3b - Get rid of LWT update code. r=aswan
--HG--
extra : rebase_source : 0c5a7d6b94b1284952d1b9e621296e94ecfce4ca
extra : histedit_source : 8d128b988794558a64a61b79ee005053a8774f01
2019-02-08 14:28:37 -08:00
Kris Maglione
bad72d3352 Bug 1525762: Part 3a - Get rid of LWTManager/AddonManager integration. r=aswan
--HG--
extra : rebase_source : 32aabbac5df15b9beccd81f5825d3d9f7ecce304
extra : histedit_source : 866465262d374b9db1b9175884b178b374738cf8
2019-02-08 14:26:30 -08:00
Kris Maglione
941aa4eb15 Bug 1525762: Part 2c - Use compact dark as default theme for dev edition builds. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D24962

--HG--
extra : rebase_source : 39f1ade21fdd33585c4a6f06e4f1aa91a00c0462
extra : histedit_source : 2b9d93afd5206615c8ed2088ecbb7c9338f4ccdb
2019-03-26 13:01:56 -07:00
Kris Maglione
ac4c574132 Bug 1525762: Part 2b - Migrate selected lightweight theme when installing built-in themes. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D24961

--HG--
extra : rebase_source : 43754b25b1a810bd5227ba3dcb97a4eaf85845ab
extra : histedit_source : 2fc7ce5e5c384524280e9c262154cced7ce3c62b
2019-03-26 12:57:30 -07:00
Kris Maglione
a15a869f4f Bug 1525762: Part 2a - Migrate built-in LWTs to static WebExtension themes. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D24627

--HG--
rename : browser/base/content/defaultthemes/dark.icon.svg => browser/themes/addons/dark/icon.svg
rename : browser/base/content/defaultthemes/light.icon.svg => browser/themes/addons/light/icon.svg
rename : toolkit/mozapps/extensions/content/default-theme-icon.svg => toolkit/mozapps/extensions/default-theme/icon.svg
extra : rebase_source : a844186d5a113b596c6bb6bdcd49f443e1879ab2
extra : histedit_source : a5b745dcdac9106fe224895d13862b156feb1eb0
2019-02-08 14:18:52 -08:00
Kris Maglione
249309e19b Bug 1525762: Part 1i - Allow overriding some localized properties for built-in add-ons. r=aswan
We still don't have a great way to bundle localizations for built-in add-ons,
since our localization tools are not compatible with the WebExtension
localization format, and there's no way to fetch locales from language packs.

We used to have a fairly complicated mechanism for this which used localized
preference values, pointing to localized string bundle URLs, based on the
add-on ID and the property we wanted to localized. That seems needlessly
complicated at this point, so this patch just allows overrides in two specific
string bundles, one for toolkit, and one for app-specific extensions.

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

--HG--
extra : rebase_source : 8faf2dee0886d42575c23d011d8bca93480ca6cd
extra : histedit_source : 65d25dcb96a74fb50c1a473075feea041852989d
2019-02-08 12:34:18 -08:00
Kris Maglione
189e637aed Bug 1525762: Part 1h - Use SCOPE_APPLICATION consistently for built-in add-ons. r=aswan
Most of our tests disable SCOPE_SYSTEM add-ons, which are meant to have been
registered externally, but still rely on SCOPE_APPLICATION addons (i.e., the
default theme), which are meant to be part of the application.

We currently flag the built-in location as SCOPE_SYSTEM in some places and
SCOPE_APPLICATION in others, which leads to those add-ons not being available
to some tests that need them.

--HG--
extra : rebase_source : 3ded0123dc5d56e617624f53effb369084a7958c
extra : histedit_source : 28b7034608eb4c90ecbf41a14581a2ea14ba8e55
2019-03-21 19:33:26 -07:00
Kris Maglione
1e208ac184 Bug 1525762: Part 1g - Fix issues with add-on sourceBundle and rootURI properties. r=aswan
There are all sorts of random issues with rootURI sometimes not being set for
sourceBundle add-ons, or callers expecting sourceBundle to never be null. This
patch fixes all of those issues that I came across.

--HG--
extra : rebase_source : 70532631f4e1bbba11e4525237bcc9f2de327a1d
extra : histedit_source : 0d051ad9c53b1146c356c145a72040576beb7b52
2019-03-22 09:38:11 -07:00
Kris Maglione
02865d50b6 Bug 1525762: Part 1f - Fix dodgy error message. r=aswan
The filePath property is used in error messages, and is expected to be a
string. Setting it to a nsIFile object makes those error messages inscrutable.

--HG--
extra : rebase_source : 842d05ac1eb7d1e449b40f111d900b838d884ba4
extra : histedit_source : a31300676a94131e8ae1736a757aca2905c4984f
2019-03-22 09:37:38 -07:00
Kris Maglione
cc9ffc5f11 Bug 1525762: Part 1e - Don't hide add-ons in the built-in location. r=aswan
We want add-ons in the built-in location, particularly the built-in themes, to
appear in the add-on manager so that users can enable and disable them. We
don't want them to be able to uninstall them, though, so this also prevents
users from uninstalling them.

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

--HG--
extra : rebase_source : b532296087942331ec95a476b5d9bc05eae9c771
2019-03-28 14:50:40 -07:00
Kris Maglione
6d52a7c478 Bug 1525762: Part 1d - Don't throw from hasResource for resources that don't exist. r=aswan
When attempting to fetch a local resource which doesn't exist, the fetch
promise rejects, causing the hasResource promise to reject. Since we don't
want hasResource to reject for nonexistent resources, we need to catch this
rejection and treat it as a nonexistent resource.

--HG--
extra : rebase_source : 51a90fc5825bd24d95e704b389e18e5805af9185
2019-03-22 09:35:22 -07:00
Kris Maglione
b8ed7b46a0 Bug 1525762: Part 1c - Resolve built-in add-on resource: URIs at startup, not install. r=aswan
It's possible for the application install location to vary from session to
session, particularly when the same profile is used with multiple app
versions, or with both packed and unpacked builds. Resolving resource: URIs at
install time causes problems in those instances, since it will always point to
the inital app location.

Resolving the resource URIs at runtime solves this.

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

--HG--
extra : rebase_source : 9597c34e7349e6f4a524027c2b041c497c5c6632
2019-03-22 09:34:29 -07:00
Kris Maglione
f45da34602 Bug 1525762: Part 1b - Add databaseReady promise to replace xpi-database-loaded observer. r=aswan
All of the consumers of this observer really want it to behave like a promise.
And, for the cases where the DB may or may not already be loaded when those
callers run, getting the logic correct is difficult.

This patch replaces the observer with a promise, and also delays the
resolution of that promise until any built-in add-ons registered during
XPIProvider startup have finished installing. This latter feature is currently
unused, but will be necessary after subsequent patches for code that relies
querying the default theme immediately after provider startup.

--HG--
extra : rebase_source : c9d39158bea0b850d52cbc296cf184a9b9bf10b4
2019-03-22 09:26:33 -07:00
Kris Maglione
d7e5e8cc37 Bug 1525762: Part 1a - Add maybeInstallBuiltinAddon method. r=aswan
This allows us to install built-in themes at startup only when they're new, or
have changed, without requiring special work from callers, and in particular
without requiring loading the add-on database when no changes are required.

--HG--
extra : rebase_source : 4a5260da24b963c168838cc40eed8e46393b2a7e
2019-02-08 12:32:49 -08:00
Trishul
ab8d5216f0 Bug 1538583: Themes should not show [ALLOWED IN PRIVATE WINDOWS] notice r=kmag
Themes should not show [ALLOWED IN PRIVATE WINDOWS] notice

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

--HG--
extra : moz-landing-system : lando
2019-03-29 20:44:42 +00:00
Francesco Lodolo (:flod)
df4f2bc264 Bug 1539794 - Add installer font configuration for Bengali (bn), remove bn-IN and bn-BD r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D25220

--HG--
extra : moz-landing-system : lando
2019-03-28 15:06:35 +00:00