Граф коммитов

6984 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 563cb976d2 Merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-11-06 15:40:53 +02:00
Csoregi Natalia c79466f107 (bug 1411688) Make --with-gradle handle single-locale repack r=snorp a=reland
--HG--
extra : amend_source : d435c08a762988804bfe23251b8b5f76702eca99
2017-11-06 15:23:47 +02:00
Csoregi Natalia aaa47364af Backed out 5 changesets (bug 1411688) for failing Android single-locale repacks. r=backout a=backout
Backed out changeset 65d5d13b4ea0 (bug 1411688)
Backed out changeset 8ba514bd8ed6 (bug 1411688)
Backed out changeset 866854a996b8 (bug 1411688)
Backed out changeset 34f83aab44e6 (bug 1411688)
Backed out changeset 2e4e139bb5d7 (bug 1411688)
2017-11-06 12:18:50 +02:00
Paolo Amadini 170b25f0d8 Bug 1413074 - Sanitize the file names of downloads before opening the file picker. r=mak
MozReview-Commit-ID: 90QE4g1P49w

--HG--
extra : rebase_source : 4e2cfe4b3bf43a1dabe3576ce5d8c883a81cb883
extra : source : 7dfb5111a3a8bc78cabdfaca96c4d949e33bafdb
2017-11-06 09:30:33 +00:00
Andrew Swan 1bf7198d39 Bug 1413322 Don't load old-style language packs r=gandalf,kmag
MozReview-Commit-ID: GnG6UznHFZR

--HG--
extra : rebase_source : a687e51a7c087c639a202f29b87ae466cd3705b8
2017-10-31 14:23:06 -07:00
Nick Alexander cc2129e406 Bug 1411688 - Part 1: Make --with-gradle handle single-locale repacks. r=snorp
Single-locale repacks do the following:

Download existing APK; unzip APK; update l10n resources; |mach package| with IS_LANGUAGE_REPACK=1.

This is pretty hard to accommodate, but we can try.  The key issues
here are to recognize when IS_LANGUAGE_REPACK=1 and not ask for l10n
resources (in particular, strings.xml) to be generated.

We do need to include the freshly built classes.dex when repackaging,
because newer Gradle/aapt doesn't preserve the R.java IDs.

MozReview-Commit-ID: 9FvQtmPOUjg

--HG--
extra : rebase_source : b0440ceb318662bf3c08f2139c51dae5775a6b38
2017-10-23 13:24:58 -07:00
Zibi Braniecki 4c3a3ac1fb Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: F0Ofe2lHHEo

--HG--
extra : rebase_source : 420c65111dc5066eb00ef86ddf375db533008bbf
2017-11-03 17:08:34 -07:00
Sebastian Hengst eebc5b65c0 Backed out changeset 0637dca8a971 (bug 1410736) for eslint failure at toolkit/components/extensions/test/xpcshell/test_ext_i18n_css.js:130: Unexpected var, use let or const instead. r=backout on a CLOSED TREE 2017-11-04 00:51:02 +01:00
Sebastian Hengst 07b805d165 Backed out 5 changesets (bug 1411688) for flake8 linting failure at testing/mozharness/scripts/mobile_l10n.py. r=backout on a CLOSED TREE
Backed out changeset 8ddf3257a8db (bug 1411688)
Backed out changeset c313d76f2aa5 (bug 1411688)
Backed out changeset 3df83a3b7e9c (bug 1411688)
Backed out changeset 133417cefdab (bug 1411688)
Backed out changeset a8fd33d8a2af (bug 1411688)
2017-11-04 00:49:47 +01:00
Nick Alexander 9de930db2b Bug 1411688 - Part 1: Make --with-gradle handle single-locale repacks. r=snorp
Single-locale repacks do the following:

Download existing APK; unzip APK; update l10n resources; |mach package| with IS_LANGUAGE_REPACK=1.

This is pretty hard to accommodate, but we can try.  The key issues
here are to recognize when IS_LANGUAGE_REPACK=1 and not ask for l10n
resources (in particular, strings.xml) to be generated.

We do need to include the freshly built classes.dex when repackaging,
because newer Gradle/aapt doesn't preserve the R.java IDs.

MozReview-Commit-ID: 9FvQtmPOUjg

--HG--
extra : rebase_source : 6a34a8c299138ea39c6703f334c8fd5f49b03237
2017-10-23 13:24:58 -07:00
Zibi Braniecki 5db1dc8a9d Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: CmXBFcKxOkX

--HG--
extra : rebase_source : deeeee81fd187aa9ca4f26f9f5c69633ff405e34
2017-11-02 14:11:41 -07:00
J.C. Jones cdfad59288 Bug 1409259 - Add xpcshell tests for the Symantec distrust r=keeler
This commit adds two new xpcshell tests, both of them testing whether the
security state in TransportSecurityInfo includes the new
STATE_CERT_DISTRUST_IMMINENT flag under the correct circumstances.

The first test, test_symantec_apple_google.js, tests the four combinations of
certs that chain to an affected Symantec root: with/without a whitelisted
intermediate, and before/after the notBefore cutoff date.

The second test, test_symantec_apple_google_unaffected.js, tests an unrelated
ca->intermediate->ee chain that does not chain to an affected root, and ensures
the flag is not set.

This patch adds SymantecSanctionsServer to the mozbuild and xpcshell test
infrastructure files to ensure it runs properly on TaskCluster, too.

MozReview-Commit-ID: GtUXH2VFFh

--HG--
rename : security/manager/ssl/tests/unit/bad_certs/default-ee.key => security/manager/ssl/tests/unit/test_symantec_apple_google/default-ee.key
rename : security/manager/ssl/tests/unit/bad_certs/default-ee.key.keyspec => security/manager/ssl/tests/unit/test_symantec_apple_google/default-ee.key.keyspec
rename : security/manager/ssl/tests/unit/bad_certs/default-ee.pem => security/manager/ssl/tests/unit/test_symantec_apple_google/default-ee.pem
rename : security/manager/ssl/tests/unit/bad_certs/default-ee.pem.certspec => security/manager/ssl/tests/unit/test_symantec_apple_google/default-ee.pem.certspec
rename : security/manager/ssl/tests/unit/tlsserver/cmd/BadCertServer.cpp => security/manager/ssl/tests/unit/tlsserver/cmd/SymantecSanctionsServer.cpp
extra : rebase_source : f399bca5a13db3efa5bbaa5136c8effc3948ed5e
2017-11-01 11:12:11 -07:00
Moritz Brunner fa5bc83999 Bug 366192 - Fixed http/https regex checks. r=mak
MozReview-Commit-ID: FL0AWkM9Ggm

--HG--
extra : rebase_source : 2550b1fca77c517093e430bb4c3e81bcfa0c3f5c
2017-11-02 22:43:19 +01:00
Sebastian Hengst 4ff29d14f8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSDYk9wLOAM

--HG--
rename : browser/base/content/test/general/browser_bug561636.js => browser/modules/test/browser/formValidation/browser_form_validation.js
rename : browser/base/content/test/general/browser_bug595507.js => browser/modules/test/browser/formValidation/browser_validation_iframe.js
rename : browser/modules/test/browser/browser_bug1319078.js => browser/modules/test/browser/formValidation/browser_validation_invisible.js
2017-11-01 22:55:12 +01:00
Matt Howell fd96b7623b Bug 1413295 - Use BrandShortName as the title for new shortcuts, and rename existing shortcuts our installer created. r=rstrong
MozReview-Commit-ID: K4YvG5DZgqb

--HG--
extra : source : 324e11f297d7e4ced78f3402792e5fdcdf2abac1
2017-10-31 12:18:25 -07:00
Tom Prince ad6d3406a9 Bug 1413581: Use comm-central friendly path for calling gen_multilocale.py. r=chmanchester
MozReview-Commit-ID: CVUOrkkekNf

--HG--
extra : rebase_source : f7f048110551e2ee2c7752ed458ba85b80ba41b9
2017-11-01 10:40:53 -06:00
Zibi Braniecki 026b20f505 Bug 1412751 - Move the multilocale.json generation to python and add to moz.build. r=chmanchester
MozReview-Commit-ID: 2MalHxkcFxn

--HG--
extra : rebase_source : 2ca8f3ff9b2dc7b31d2564a3b5222776131dcb93
2017-10-30 09:50:16 -07:00
Andrew Swan 77124f8a0d Bug 1409245 Part 3 Handle update and uninstall events in WebExtensions r=kmag
This patch just forwards invocations of the bootstrap update() and
uninstall() methods to events that other parts of the WebExtension
framework can listen for.  We have an existing event that fires while
an extension is being uninstalled.  This event was named "uninstall"
but it gets renamed here to "onUninstalling" to disambiguate the two
events.

MozReview-Commit-ID: BIpIR8n9HBM

--HG--
extra : rebase_source : b191d43279129da6fc7f67b7e7960b8b20dca6b8
2017-10-25 20:49:14 -07:00
Andrew Swan 30a1f56c87 Bug 1409245 Part 2 Implement bootstrap update() method r=kmag
When we are updating versions of an extension, instead of
calling uninstall() on the old version followed by calling
install() on the new version, we now call update() once with
details about the old and new versions.

This logic is only applied for webextensions, any other
bootstrapped extensions retain the old behavior.

MozReview-Commit-ID: EwdvGATG0rK

--HG--
extra : rebase_source : 60ead06460340874c86c109bcaa4b61be1717dd1
2017-10-25 15:34:45 -07:00
Andrew Swan f6221fbeff Bug 1409245 Part 1 Move temporary addon cleanup earlier in shutdown r=kmag
MozReview-Commit-ID: 7aze1AxfjlC

--HG--
extra : rebase_source : 9f33fa0cc22da99a4368abc7d5df4959caf1fe14
2017-10-21 15:36:59 -07:00
Valentin Gosu 1bd153659e Bug 1407720 - Merge nsICookieManager and nsICookieManager2 r=nwgh
MozReview-Commit-ID: HuzeeB43YZZ

--HG--
extra : rebase_source : 3924170ce50126dbbae7c97cae601b69d0ab95af
2017-10-31 13:02:28 +01:00
Sebastian Hengst f07fc93141 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4PW6ESqLL73
2017-10-30 23:52:23 +01:00
Chris H-C 75fc345254 bug 1406391 - Remove toolkit.telemetry.enabled manipulation from tests r=Dexter
Minor note:
reftests should've turned off uploadEnabled in the first place.
reftests should have unified telemetry on. It's the future.

MozReview-Commit-ID: 9spzuUAXwwP
2017-10-30 10:47:39 -04:00
Mark Banner 01008c7d57 Bug 1412778 - Enable ESLint rule no-cpows-in-tests across the whole tree. r=florian
MozReview-Commit-ID: 8pidN7x6MYh

--HG--
extra : rebase_source : 6a0d6800091231fc1535223bd7fc6df0ba40d47b
2017-10-30 09:55:39 +00:00
Sebastian Hengst 3792a177e6 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IZImXBBcbVQ
2017-10-28 10:25:57 +02:00
Phil Ringnalda 4bc2b1615d Backed out 4 changesets (bug 1408433, bug 1406391, bug 1408512) for crashing tests by touching the network contacting incoming.telemetry.mozilla.org on nightly builds
Backed out changeset 9bfd4b0927dc (bug 1408433)
Backed out changeset 555850d5107e (bug 1408512)
Backed out changeset 15d959b9123e (bug 1406391)
Backed out changeset e1f34ba9cecc (bug 1406391)

MozReview-Commit-ID: BVoGRsD73Hf
2017-10-27 21:08:27 -07:00
Sebastian Hengst 28b1c813ea merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DasxLYlgq0N
2017-10-27 23:30:52 +02:00
Chris H-C 8e6dd31d55 bug 1406391 - Remove toolkit.telemetry.enabled manipulation from tests r=Dexter
Minor note:
reftests should've turned off uploadEnabled in the first place.

MozReview-Commit-ID: 9spzuUAXwwP
2017-10-27 10:59:43 -04:00
Sebastian Hengst 841ee307e6 merge mozilla-central to autoland. r=merge a=merge 2017-10-27 23:32:15 +02:00
Jared Wein 6d23a3e261 Bug 1378366 - Change 'var' to 'const' and 'let' in fontBuilder.js. r=timdream
MozReview-Commit-ID: 3QYWdnVzgJs

--HG--
extra : rebase_source : b7d1dfd517eed88df35909c6e2f6785c60bb3301
2017-10-27 06:51:16 -04:00
Jared Wein f953e19feb Bug 1378366 - If the default font is not found, use 'Default' as the name for an unchanged font preference. Previously this would show up as blank in this case. r=timdream
MozReview-Commit-ID: G1GEwWNtBMi

--HG--
extra : rebase_source : 9c972fd4f2108325fddb9413ad364dd94b99e832
2017-10-26 12:25:12 -04:00
Zibi Braniecki c46d36dffb Bug 1362617 - Generalize MOZ_CHROME_MULTILOCALE to work for browser as well. r=gps,mshal,Pike,ted
MozReview-Commit-ID: 80ldQPhNyi7

--HG--
extra : rebase_source : d6a1c6fcc36ba7fb49df25fa4c73f4aa564db613
2017-10-23 08:04:24 -07:00
Mark Banner 4de6bf22b1 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo

--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Sebastian Hengst 429ff227ee Backed out changeset 17ef68e368bb (bug 1362617) for build bustage on OS X. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 78500a66ae825039d21ea4d69a23ae2d6570ee38
2017-10-27 16:46:27 +02:00
Zibi Braniecki f31e020d7e Bug 1362617 - Generalize MOZ_CHROME_MULTILOCALE to work for browser as well. r=gps,mshal,Pike,ted
MozReview-Commit-ID: 80ldQPhNyi7

--HG--
extra : rebase_source : e40838ce14ebe1e4fae4d6742633c16b5c4387f9
2017-10-23 08:04:24 -07:00
Sebastian Hengst 06e215c2ce merge mozilla-central to autoland. r=merge a=merge 2017-10-26 23:59:14 +02:00
Sebastian Hengst b181c484ad merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: LcCWQzgwIBi
2017-10-26 23:57:40 +02:00
Kris Maglione 257d9118dc Bug 1409249: Require singleton constructors to return explicit already_AddRefed. r=froydnj
Right now, NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR expects singleton
constructors to return already-addrefed raw pointers, and while it accepts
constructors that return already_AddRefed, most existing don't do so.

Meanwhile, the convention elsewhere is that a raw pointer return value is
owned by the callee, and that the caller needs to addref it if it wants to
keep its own reference to it.

The difference in convention makes it easy to leak (I've definitely caused
more than one shutdown leak this way), so it would be better if we required
the singleton getters to return an explicit already_AddRefed, which would
behave the same for all callers.


This also cleans up several singleton constructors that left a dangling
pointer to their singletons when their initialization methods failed, when
they released their references without clearing their global raw pointers.

MozReview-Commit-ID: 9peyG4pRYcr

--HG--
extra : rebase_source : 2f5bd89c17cb554541be38444672a827c1392f3f
2017-10-16 21:08:42 -07:00
Zibi Braniecki bac6a262f6 Bug 1396467 - Add tests for the new langpacks consumption code. r=aswan
MozReview-Commit-ID: BFkV4MuRQh1

--HG--
extra : rebase_source : 56a3701df13dd529db16e79cb170ed14bb5c6fb9
2017-10-06 01:05:31 +02:00
Sebastian Hengst 525fbe17e2 Backed out changeset b2232cf95183 (bug 1396467) for eslint failures in test_webextension_langpack.js. r=backout on a CLOSED TREE
--HG--
extra : amend_source : e3e7b9c1fce2e241d20cf33ce2a504a53864da26
2017-10-26 23:30:00 +02:00
Zibi Braniecki bdc31ebac0 Bug 1396467 - Add tests for the new langpacks consumption code. r=aswan
MozReview-Commit-ID: BFkV4MuRQh1

--HG--
extra : rebase_source : f4b7116d6fe9cad32b22117171c7c078a22727bd
2017-10-06 01:05:31 +02:00
maliu ee011aac6f Bug 1360587 - Part 1. Remove apk upload task, r=aki
MozReview-Commit-ID: RhXoazDESU

--HG--
extra : rebase_source : 0f0c63ac0be7c02ad419449b75ea91c159682f68
2017-10-25 21:03:02 +08:00
Zibi Braniecki e26530837a Bug 1410733 - Minor cleanups to the callers of GetRequestedLocales. r=jfkthame
Once we add fallback chain to GetRequestedLocales we can slightly improve the
locale negotiation for extensions. I made it tighter against just `en-US` because
in the future it is possible that RequestedLocales fallback chain will not contain
en-US in some scenarios, and it seems that for WebExtensions en-US should be the
last resort no matter what.

The other change is a fix to a regression I introduced when switching to LocaleService,
that somehow noone noticed.

MozReview-Commit-ID: FH6cePcoi0R

--HG--
extra : rebase_source : 7e253fb940c153c3522a6aa41139fbf703c7266b
2017-10-22 11:44:11 -07:00
Sebastian Hengst 319217d574 Backed out changeset ba4a39241953 (bug 1386018) for xpcshell failures, e.g. toolkit/mozapps/extensions/test/xpcshell/test_signed_install.js on Linux debug. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 0b31c5a3d73783a3c60f4126a5c11fdda862d9e3
2017-10-25 00:32:35 +02:00
Sebastian Hengst 24b7b2eb7c merge mozilla-central to autoland. r=merge a=merge 2017-10-24 23:59:14 +02:00
Mark Striemer 04b924cbdf Bug 1386018 - Tell users that the default search engine was set by an extension r=bsilverberg,jaws
MozReview-Commit-ID: A7uJ2lN0cLF

--HG--
extra : rebase_source : 98875d0bcabbae86f9c25dea9b4fe30d6a3d0109
2017-10-18 14:54:54 -05:00
Joel Maher 92be126aad Bug 1395539 - Disable toolkit/mozapps/extensions/test/browser/browser_bug591465.js on linux/opt to get tests running in multi-core. r=gbrown 2017-10-24 12:37:20 -04:00
Sebastian Hengst 1ead0a96a9 Backed out changeset dab1c5badddb (bug 1407679) for failing server startup in mochitests on Android. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 3dc4cb2bbaf55f3f6329687ce64d4e862fc3800b
2017-10-24 21:18:26 +02:00
Valentin Gosu 9dd47ebf50 Bug 1407679 - Merge nsIIOService and nsIIOService2 r=nwgh
Removes deprecated nsIIOService2.newChannelFromURIWithProxyFlags

MozReview-Commit-ID: Gr3nA25kcre

--HG--
extra : rebase_source : 3407b5ed0f8f7067523abee28c137db3cac86b14
2017-10-20 16:41:07 +02:00
Sebastian Hengst 8263d24918 Backed out changeset 3bd7e87109e0 (bug 1410733) 2017-10-24 18:57:34 +02:00