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

5591 Коммитов

Автор SHA1 Сообщение Дата
Dave Townsend 2baeb943ca Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
Because the add-ons manager hasn't startup up yet we can replace the certificate
database in xpcshell tests with one that claims add-ons are signed by valid
certificates even when they aren't. This allows us to run tests even in builds
where signing cannot be disabled during for the normal application.

This adds an override for all tests except those that are explicitely testing
signing.

--HG--
extra : commitid : 24s3ni5gVYe
extra : rebase_source : a95571dc3556bb035511eea424ba57e8c7007eba
2016-01-29 16:41:18 -08:00
Dave Townsend 2f6755883b Bug 1244248: Cache the certificate database during startup rather than getting it everytime it is needed. r=rhelmer
--HG--
extra : commitid : 800Lx2U4lRD
2016-02-09 08:36:36 -08:00
Dave Townsend 3c97745a55 Backing out c57d2020f884 for bug 1244357 due to test failures. CLOSED TREE
--HG--
extra : commitid : ARB3HviETo6
extra : amend_source : 6386ba6343ce0b187ee2d317bf455a9163ed0330
2016-02-08 10:18:48 -08:00
Dave Townsend aad445ae43 Bug 1245649: Enable no-nested-ternary. r=mconley
--HG--
extra : commitid : 197imYXFNid
extra : rebase_source : ce71773fbd8f57118ba30ab395524d9200c42162
2016-02-03 21:17:16 -08:00
Dave Townsend 306183747d Bug 1244357: Use a shim around the certificate DB to allow the add-ons manager to think that add-ons are signed when they aren't. r=rhelmer
Because the add-ons manager hasn't startup up yet we can replace the certificate
database in xpcshell tests with one that claims add-ons are signed by valid
certificates even when they aren't. This allows us to run tests even in builds
where signing cannot be disabled during for the normal application.

This adds an override for all tests except those that are explicitely testing
signing.

--HG--
extra : commitid : 9Zd5aH92lAQ
extra : rebase_source : 880d0fff51205dc92df91a61fef8b246d2ea2123
2016-01-29 16:41:18 -08:00
Dave Townsend e3d2c41721 Bug 1236377: Ignore invalid file descriptors when loading an add-ons database written by a different OS. r=rhelmer
nsIFile descriptors use OS specific formats so when trying to read them we have
to catch any failure if the database was written by a different OS. This leaves
the _sourceBundle undefined in only one case which is guaranteed to be during
startup since xpistate.descriptor for the add-on will also be incorrect and so
the full add-on scan will be triggered. That will spot the mismatch and update
the add-on in the database with the correct descriptor.

--HG--
extra : commitid : CNTQu1ESg8Q
extra : rebase_source : faa21ebc1d0b6b91bc81f79072e6d5fb9697bd18
2016-02-02 13:17:10 -08:00
Matthew Noorenberghe 46d841af95 Bug 612168 - Follow-up for test_undouninstall.js trailing whitespace. r=eslint
--HG--
extra : commitid : CZIHzxJbzBx
2016-02-06 18:15:29 -08:00
Andrew Swan a6117744fc Bug 612168 - Handle uninstalls of restartless addons in XPIProvider. r=Mossop
--HG--
extra : commitid : 1C1yU1DSWZJ
2016-02-05 15:06:48 -08:00
Phil Ringnalda e3869be7d0 Merge m-c to f-t 2016-02-05 19:45:14 -08:00
Phil Ringnalda 7f5bfce5de Merge m-i to m-c, a=merge 2016-02-05 18:41:47 -08:00
Tom Schuster 943620b92d Bug 1245141 - Use new Proxy for AddonManager.addonTypes. r=mossop 2016-02-05 19:31:08 +01:00
Nick Alexander 002a20ac3b Bug 1234629 - Part 2: Fail packaging if bouncer APK and main APK have different permissions. r=gps
This isn't sensible for b2gdroid, but that project should never enable
the bouncer APK anyway.

--HG--
extra : commitid : 5KSz5ooYeb1
extra : rebase_source : f30abc9b2553493e2a494497c0eafb22ac866890
extra : source : 50bcadca213183aaa64e39632892b8f00957dcfc
extra : histedit_source : 00085fea29a4289d96dbd08b0b45b4ea6780fd26
2016-01-27 14:34:46 -08:00
Nick Alexander d466d2939f Bug 1234629 - Part 1: Create bouncer APK for OTA distribution installs. r=margaret,gps
This commit produces an "install bouncer" APK which is a "hollow
shell" that looks like the main Fennec APK.  In particular, both APKs have:

* the same Android package name (application id); and
* the same set of <permission>, <uses-permission>, and <uses-feature>
  blocks in their manifests.

The bouncer APK must always have an android:versionCode smaller than
the main Fennec APK; for now, we will just bump that manually
mobile/android/bouncer/moz.build.

--HG--
rename : mobile/android/javaaddons/Makefile.in => mobile/android/bouncer/Makefile.in
rename : mobile/android/app/assets/example_asset.txt => mobile/android/bouncer/assets/example_asset.txt
rename : mobile/android/javaaddons/moz.build => mobile/android/bouncer/moz.build
rename : mobile/android/base/resources/drawable-v21/logo.xml => mobile/android/bouncer/res/drawable-v21/logo.xml
rename : mobile/android/base/resources/drawable/logo.xml => mobile/android/bouncer/res/drawable/logo.xml
extra : commitid : 1XkuX1F0pMb
extra : rebase_source : c49ac53697927b0f3d1ee47bc1e7035c1b465e99
extra : source : aaa420ed66d754ecc17b19f5a12297d24371f1ca
extra : histedit_source : 0e3e2fa225c48ba48df72ff116fd62a7b1ef5ed2
2016-01-27 15:28:31 -08:00
Wes Kocher 0e74ba573b Backed out 2 changesets (bug 1232222) for xpcshell bustage
Backed out changeset 06bc151231a5 (bug 1232222)
Backed out changeset 38ba7c48145e (bug 1232222)

--HG--
extra : commitid : 4HsqRVO9R13
2016-02-05 16:29:00 -08:00
Robert Helmer 9845218d0f Bug 1232222 - Expose isSystem flag if add-on is a system add-on. r=Mossop
--HG--
extra : transplant_source : %11%BA%DA%AE%3D%0B%EE%BF%D2M%C6g%7F%86A%F2%BFh%03%22
2016-01-25 12:35:24 -08:00
Dave Townsend 4c3d60d100 Bug 1244302: Remove the add-ons selection UI.
--HG--
extra : commitid : 1lei0PwZgNi
extra : rebase_source : 380537fc9550e9e89e8fd3baee2bfe4db9f925fd
2016-02-02 09:15:59 -08:00
J. Ryan Stinnett 1e0aa94429 Bug 1245251 - Repair add-on manager for external XUL apps. r=Mossop 2016-02-05 09:56:15 -06:00
Nigel Babu ede1aa8b36 Backed out 10 changesets (bug 1234629, bug 1233882) for bustage on Android rc tests
Backed out changeset 9aa32d9a25df (bug 1234629)
Backed out changeset d73d36c9619b (bug 1234629)
Backed out changeset a7f63b3721cd (bug 1233882)
Backed out changeset c79f4a8c3e86 (bug 1234629)
Backed out changeset 400c030d3c01 (bug 1234629)
Backed out changeset 54a3d0851bc6 (bug 1234629)
Backed out changeset f80912ecfa87 (bug 1234629)
Backed out changeset 50bcadca2131 (bug 1234629)
Backed out changeset aaa420ed66d7 (bug 1234629)
Backed out changeset 7a62e97f07c2 (bug 1234629)

--HG--
rename : mobile/android/app/lint.xml => mobile/android/app/base/lint.xml
rename : mobile/android/app/src/main/resources/robolectric.properties => mobile/android/tests/background/junit4/resources/robolectric.properties
extra : commitid : KJVIqyGBEZg
2016-02-05 15:42:28 +05:30
Dave Townsend c8e4d5fbbc Bug 1245649: Turn on use-isnan, no-unexpected-multiline, no-octal and no-self-compare. r=MattN
--HG--
extra : commitid : oKFzhSyf1r
extra : rebase_source : 0d31d93961cdfb2e5e467e0c7f28edb4ab14a083
2016-02-03 18:21:30 -08:00
Dave Townsend e496a11771 Bug 1245649: Turn on no-extra-semi. r=markh
--HG--
extra : commitid : HReQFPDOA6x
extra : rebase_source : 303a92f511c3c9dd2d26135975d4dc7c85e823b3
2016-02-03 17:27:36 -08:00
Dave Townsend 33281c75f0 Bug 1245649: Turn on linebreak-style. r=Gijs
--HG--
extra : commitid : 7JJb4UFNKj9
extra : rebase_source : 5c30f388ad82d3b73ce7d14c71a48a1f0ed84db7
2016-02-03 17:04:56 -08:00
Dave Townsend 0a6414b898 Bug 1245649: Turn on no-trailing-spaces. r=Gijs
--HG--
extra : commitid : F2OWKTvXUO4
extra : rebase_source : ec68631342e0edc59d77b6bab1cdc975ad175327
2016-02-03 14:22:33 -08:00
Dave Townsend 541b00204a Bug 1245649: Merge browser and toolkit eslint rule settings. r=felipe
--HG--
extra : commitid : DrYPQokQp9O
extra : rebase_source : e0bacf124280ecdbeccfc34dbf66fd80f5a9d296
2016-02-03 13:12:18 -08:00
Nick Alexander aa19a9fc96 Bug 1234629 - Part 2: Fail packaging if bouncer APK and main APK have different permissions. r=gps
This isn't sensible for b2gdroid, but that project should never enable
the bouncer APK anyway.

--HG--
extra : commitid : 5KSz5ooYeb1
extra : rebase_source : 71ea30ce85ba33f58d887d3f90367103f99e0eff
extra : histedit_source : cf91111ebe61f87d64c304206e4ddc409aa26535
2016-01-27 14:34:46 -08:00
Nick Alexander 3814ebb59b Bug 1234629 - Part 1: Create bouncer APK for OTA distribution installs. r=margaret,gps
This commit produces an "install bouncer" APK which is a "hollow
shell" that looks like the main Fennec APK.  In particular, both APKs have:

* the same Android package name (application id); and
* the same set of <permission>, <uses-permission>, and <uses-feature>
  blocks in their manifests.

The bouncer APK must always have an android:versionCode smaller than
the main Fennec APK; for now, we will just bump that manually
mobile/android/bouncer/moz.build.

--HG--
rename : mobile/android/javaaddons/Makefile.in => mobile/android/bouncer/Makefile.in
rename : mobile/android/app/assets/example_asset.txt => mobile/android/bouncer/assets/example_asset.txt
rename : mobile/android/javaaddons/moz.build => mobile/android/bouncer/moz.build
rename : mobile/android/base/resources/drawable-v21/logo.xml => mobile/android/bouncer/res/drawable-v21/logo.xml
rename : mobile/android/base/resources/drawable/logo.xml => mobile/android/bouncer/res/drawable/logo.xml
extra : commitid : 1XkuX1F0pMb
extra : rebase_source : 3154b4569efd4cccb4d5f72ff9bbff60d2744d3b
extra : histedit_source : 5e10ab9825bcf653a5a109c8e502658d52aedd79
2016-01-27 15:28:31 -08:00
Nick Alexander 3884e76c7e Bug 1163082 - Part 1: Add --with-android-distribution-directory. r=gps
This simply packs the assets/ subdirectory of the distribution
directory into the assets/ directory of the Android APK using existing
mechanisms.  It also removes the older method of manually pushing
files into dist/bin/distribution, from where they would be packaged
into the APK under distribution/.

--HG--
extra : commitid : BLgM6ZCm9AY
extra : rebase_source : a0896616f79f5a961476e4d2df9745516c58b44a
extra : source : e228040a044b7ff7363a178da2cb0b8b42724048
extra : histedit_source : 0b8f087bc6d70fa42401f4a2476898139bdf606c
2016-01-27 12:25:04 -08:00
Nick Alexander b266bd6df2 Backed out 2 changesets (bug 1163082) for Robocop rc1 failures.
Backed out changeset baf25be8d491 (bug 1163082)
Backed out changeset e228040a044b (bug 1163082)

--HG--
extra : commitid : FNz3fg58MOy
extra : amend_source : e24ac7d8fd3911a7e12ca71d8bb7e618aa1e78ac
2016-02-03 23:15:00 -08:00
Nick Alexander 609e5edb32 Bug 1163082 - Part 1: Add --with-android-distribution-directory. r=gps
This simply packs the assets/ subdirectory of the distribution
directory into the assets/ directory of the Android APK using existing
mechanisms.  It also removes the older method of manually pushing
files into dist/bin/distribution, from where they would be packaged
into the APK under distribution/.

--HG--
extra : commitid : BLgM6ZCm9AY
extra : rebase_source : 572d1ff35a02505f452fee67130b48c8df4499b5
extra : histedit_source : 0b8f087bc6d70fa42401f4a2476898139bdf606c
2016-01-27 12:25:04 -08:00
Birunthan Mohanathas 88ce1ce184 Bug 1204202 - Remove packaging for now obsolete appcrt140.dll/desktopcrt140.dll on VS2015. r=ehsan 2016-02-02 17:42:04 +02:00
Wes Kocher aaf89c475e Backed out 3 changesets (bug 1231784) for breaking 10.10 opt jetpack tests
Backed out changeset 653df21ca861 (bug 1231784)
Backed out changeset 0aac20bc3619 (bug 1231784)
Backed out changeset edcbd7c0aa36 (bug 1231784)

--HG--
rename : testing/mochitest/start_b2g.js => testing/mochitest/b2g_start_script.js
extra : commitid : DLurSs6PJ1G
2016-02-03 17:38:12 -08:00
Andrew Halberstadt 827426cdfb Bug 1231784 - Fix toolkit/mozapps/extensions/test/browser/browser_select_confirm.js, r=Mossop
--HG--
extra : commitid : I5KAY2WgUAA
extra : rebase_source : 19d30e9577c1cebe361140181911338b2318b8d4
extra : amend_source : b3ef504494d4f88e0088f06c326c662fcd9dbd8c
2016-01-22 14:34:55 -05:00
Andrew Halberstadt 5fc06a300b Bug 1231784 - Fix toolkit/mozapps/update/chrome tests, r=rstrong
--HG--
extra : commitid : AmuYYOjXtDr
extra : rebase_source : a2a10ff821cd60f6a430820b028535e4312c1e12
extra : amend_source : ea6738fac9fa151c5a1bf1a8a0c4b4a3b1670e43
2016-01-27 11:36:16 -05:00
Dave Townsend 6ec3a34a03 Bug 1243935 - "Restartless add-ons that get into the pending disable state never disable". r=aswan
--HG--
extra : rebase_source : a932007d5b4bdad83fdf21c50776f55a928174c2
2016-01-28 16:01:00 +01:00
Phil Ringnalda 9f2e22e0ac Back out e8d8faa25955 (bug 1241111) for breaking platform.ini, a=bustage 2016-01-31 10:01:22 -08:00
Phil Ringnalda b2b5dc0439 Merge f-t and m-i to m-c, a=merge 2016-01-30 17:08:37 -08:00
Phil Ringnalda a39d6e46e4 Merge m-c to m-i 2016-01-30 09:43:42 -08:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Phil Ringnalda d42eb10039 Back out 3958782fe187 (bug 989960) for Android crashes in test_watchdog_default.js 2016-01-29 20:12:44 -08:00
Kris Maglione 18ffdfa335 Bug 1225715: Part 6 - Remove redundant manifest type checking from XPIProvider. r=Mossop
--HG--
extra : commitid : Co3LqKFdyq6
extra : rebase_source : fe07d829cd3dd9bf0bee582e0367a9b1d49036de
2016-01-21 23:36:53 -08:00
Kris Maglione 278a332b02 Bug 1225715: Part 5 - Add schema for extension manifests. r=billm
This currently forbids unknown top-level schema properties, and unknown
permissions. In the future, I'd like to make those warnings rather than
errors, for compatibility purposes, but I think errors are fine for now.

--HG--
extra : commitid : 9jGEwCU9AhR
extra : rebase_source : db16f1e5f9962fb7b24c0e52c05832ae646a57c2
2016-01-30 10:27:02 -08:00
Georg Fritzsche 23fb0b9b97 Bug 1241111 - Allow overriding SOURCE_REV_URL, SOURCE_REPO, SOURCE_CHANGESET. r=ted 2016-01-29 18:42:51 +01:00
Paolo Amadini aceee7aafc Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : IkcxJUamV6B
extra : rebase_source : 07255457ec607c45037f832ca44a01f17a00da78
2016-01-29 13:19:53 +00:00
Andrew Swan 7fc2a0fc8f Bug 1172835 - Add warning icon to unsigned extensions warning button. r=Mossop 2016-01-28 11:16:28 -08:00
Dave Townsend 5537b5c159 Bug 1237820: Track whether a user has been offered a sideloaded add-on or not. r=rhelmer
Previously we just checked every newly sideloaded add-on to decide whether to
offer it to the user for opt-in. This adds a new "seen" property (naming could
be better if you have other suggestions) which tracks whether we've ever shown
the opt-in UI for the add-on. It defaults to true for all add-ons and is only
set to false for sideloaded add-ons that default to being disabled on install.
The seen flag can be set to true through the API but cannot be reset to false
as that would allow add-ons to forcibly re-present themselves to the user when
disabled.

The opt-in UI sets the seen flag to true only when it has focus which fixes a
long-standing bug where if you accept the first add-on you see and restart the
other tabs might not show up.

The one slight downside of this approach is that it now requires loading the
full add-ons database on every startup in order to check the seen flag for all
installed add-ons. There are hacky ways we might get around this but they all
involve overloading prefs with even more object data. The good thing is that
we do the load and check asynchronously after most of startup is complete and
the UI is fully loaded so there shouldn't be any percieved impact to startup
time. I've run multiple talos runs to verify that none of the numbers appear to
regress.

--HG--
extra : commitid : AG6pELCYJDa
extra : rebase_source : b824c1626d0c5a77416fa4349ed3dd4d0e96418b
2016-01-26 14:31:33 -08:00
Nils Meinert 3872a2da46 Bug 1225102 - Stop recording addon telemetry details for GMP plugins. r=gfritzsche
--HG--
extra : commitid : DJ7NWNoqrED
2016-01-25 14:00:01 -08:00
Gijs Kruitbosch 0088ac397e Bug 1135866 - fix syntax error in manifest file, rs=trivial,bustage
--HG--
extra : commitid : JiK8e9w3Dej
2016-01-25 09:42:17 +00:00
Blair McBride 9f0ed77218 Bug 1135866 - Disable intermittent browser_bug562890.js & browser_openDialog.js on Windows opt builds. r=mossop
--HG--
extra : transplant_source : n%0B6K2%9B%13%E7-xF%01%B0%80%9C%9EV%CA%8F%40
2016-01-19 22:52:23 +13:00
Gabor Krizsanits 1255d4d9f5 Bug 1234675 - Ability to disable e10s for users with addons. r=Mossop 2016-01-22 10:10:17 +01:00
Andrew Halberstadt 473e8f3eae Bug 1240875 - Register temporary addons with AddonPathService, r=mossop
--HG--
extra : rebase_source : f6ed180d916220d886a9efb4fcdd8f1b96061a73
2016-01-19 15:16:18 -05:00
Dave Townsend 2124b9bc7f Bug 1241181: Test for bug 1232274 should use promises to restart the add-ons manager. r=rhelmer
Really for consistency than anything else.

--HG--
extra : rebase_source : 304f66b4f85714a6d52c9a4f4415066244624207
2016-01-20 10:01:34 -08:00