Commit Graph

2619 Commits

Author SHA1 Message Date
Dave Townsend
61b99aec71 Bug 1250611: Fix more tests to use signed add-ons. r=rhelmer
MozReview-Commit-ID: 97RVVxAM5eo

--HG--
extra : rebase_source : bfbec29b8eba2ee1c4b4ce1fb2415c5dab21e5ab
2016-02-29 10:04:55 -08:00
Dave Townsend
7efdf5427d Bug 1250611: Fix various tests to work when signing is forced on. r=rhelmer
MozReview-Commit-ID: Dh8nMRSawJx

--HG--
extra : rebase_source : 9f685a79ff744d3cb2e8482096b796d02a10e8aa
2016-02-26 12:37:18 -08:00
Dave Townsend
b7614fb071 Bug 1250611: Check in built and signed copies of test extensions. r=rhelmer
MozReview-Commit-ID: Jq4xN7y36GA

--HG--
extra : rebase_source : e5ccca9bae7805521f4f6c471246ea73e0bc0de0
2016-02-26 09:21:15 -08:00
Carsten "Tomcat" Book
3695dd59e0 merge mozilla-inbound to mozilla-central a=merge 2016-02-25 11:57:51 +01:00
Frank-Rainer Grahl
a815bdb8c6 Bug 1246614 - Check if system add-ons directory exists before trying to clean it. r=mossop
--HG--
extra : rebase_source : 44545607f4434a8ad03cdc59306e02517056d42c
2016-02-21 05:45:00 +01:00
Andrew Swan
3bdd40d494 Bug 1245956 - Don't distinguish preliminary signing for add-ons. r=mossop 2016-02-18 16:17:09 -08:00
Carsten "Tomcat" Book
3d5797401d merge mozilla-inbound to mozilla-central a=merge 2016-02-24 12:01:56 +01:00
Dave Townsend
5732b53ed9 Bug 1250639: Remove the nsIPrincipal shim for the older API style. r=rhelmer
MozReview-Commit-ID: DyX66KlOLCC

--HG--
extra : rebase_source : 4097d74a428dda7919cc30ad2500bcb48c4427af
2016-02-23 12:11:37 -08:00
J. Ryan Stinnett
a71aae8db8 Bug 1225944 - Allow reinstalling temp add-ons. r=Mossop
MozReview-Commit-ID: JTbCaKGJ7wW
2016-02-22 23:35:10 -06:00
Dave Townsend
83e5f07a79 Bug 1249074: Don't offer existing sideloaded add-ons to users when creating a new profile. r=rhelmer
MozReview-Commit-ID: 7pnZhEvGRfj

--HG--
extra : rebase_source : 67e53f74a7d48f8a59e7fbf333879c9919e2f79b
2016-02-17 11:06:00 -08:00
Dave Townsend
424899c3cd Bug 1245916: Turn on no-undef in toolkit/mozapps/extensions. r=rhelmer
Mostly just declaring globals that Cu.imports defines but there are some actual
bugs here that have been fixed as well as one test that just never ran because
of a hidden exception.

MozReview-Commit-ID: J6uIpYp8ANx

--HG--
extra : rebase_source : 5c19b92e4242088b6fc7a268f255fe9a795928f6
extra : source : 3e5b6df276a9a20fe7b3655656e62a09bc46aaa9
2016-02-03 22:48:48 -08:00
Dave Townsend
c56db4025e Backed out changeset 3e5b6df276a9 from bug 1245916 for causing test failures.
MozReview-Commit-ID: CbsTB3xqGC6
2016-02-15 11:36:23 -08:00
Dave Townsend
70e2c0d753 Bug 1245916: Turn on no-undef in toolkit/mozapps/extensions. r=rhelmer
Mostly just declaring globals that Cu.imports defines but there are some actual
bugs here that have been fixed as well as one test that just never ran because
of a hidden exception.

MozReview-Commit-ID: J6uIpYp8ANx

--HG--
extra : rebase_source : 9d33fb313aec69e98ac3027d20a6bfc247f27f63
2016-02-03 22:48:48 -08:00
Robert Helmer
7560b7fefb Bug 1232222 - expose isSystem flag if add-on is a system add-on r=Mossop
MozReview-Commit-ID: 2SRRJplalUy

--HG--
extra : histedit_source : b25b4066a6868bb8ba55cf9cadc5e62465c55e6d
2016-02-13 17:51:21 -08:00
Felipe Gomes
7d97e11e35 Bug 1246245 - Webextensions and themes should also block initial e10s rollout. r=Mossop
--HG--
extra : commitid : 26feLTKH1Qa
2016-02-11 18:47:09 -02:00
R Kent James
f67807f655 Bug 1211160 - update lastModifiedTime of distribution addons to properly sync roaming profiles, r=dtownsend 2016-02-10 10:33:37 -08:00
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
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
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
Wes Kocher
1b65a8ee2f Backed out changeset e8148cda7d85 (bug 989960) for xpcshell bustage
--HG--
extra : commitid : Bxwy5tzArNN
extra : rebase_source : a15513777534e54d05fda5037f24e15ac089b313
2016-02-01 08:25:19 -08:00
Paolo Amadini
ecd744bdef Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : 6aGIHyyYqSo
extra : rebase_source : 38fbf5e49d06970555a088c5ea3f8379e2064767
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-01-30 18:53:56 +00: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
b2b5dc0439 Merge f-t and m-i to m-c, a=merge 2016-01-30 17:08:37 -08:00
Kyle Huey
91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -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
Phil Ringnalda
d42eb10039 Back out 3958782fe187 (bug 989960) for Android crashes in test_watchdog_default.js 2016-01-29 20:12:44 -08: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
Jared Wein
530aa3f068 Bug 1254296 - [e10s] Fix browser_CTP_plugins.js to run in e10s. r=gfritzsche
MozReview-Commit-ID: JsOQz7r14Ms

--HG--
extra : rebase_source : 13afe974a943b9a4d2a52b2f4407f2dfe682e39b
2016-03-22 17:40:02 -04:00
Andrea Marchesini
b1768e7ec3 Bug 1245184 - Update mochitests, r=me 2016-02-25 16:41:13 +01:00
Kim Moir
55fb66e771 revert Bug 1186522 - force per checkin and release desktop firefox builds to require signed add-ons on beta 45 r=mshal 2016-04-11 12:16:51 -04:00
Kim Moir
331a5db94d Bug 1186522 - force per checkin and release desktop firefox builds to require signed add-ons on beta 45 r=mshal 2016-04-11 09:15:12 -04: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
Robert Helmer
4329bf0e41 Bug 1249689 - generate and provide a Symbol for each add-on on startup r=mossop
MozReview-Commit-ID: LoPGSrJtlkr

--HG--
extra : rebase_source : e2ce9f017213bce7b78567df7f086d36fe14229a
2016-01-11 15:35:19 -08:00
Robert Helmer
b0f85da2ad Bug 1249689 - replace bootstrapScope with an activeAddons Map() that contains it r=mossop
MozReview-Commit-ID: 4s3c5OOQYLv

--HG--
extra : rebase_source : 892985163a6136f2843713e435ae23abdf7a9cfc
2016-02-22 17:39:21 -08:00
Sebastian Hengst
bc0efb6df0 Backed out changeset 4ca40a403e9d (bug 1249640) for XPCshell failures on OSX. r=backout 2016-02-24 19:02:10 +01:00
Milan Sreckovic
c2c7011ac5 Bug 1249640: Part 1 A way to block canvas 2D acceleration from blocklists. r=benwa 2016-02-19 14:39:00 +01:00
Carsten "Tomcat" Book
cf4d06f3b0 Merge mozilla-central to mozilla-inbound 2016-02-24 12:21:22 +01:00
Chris Pearce
8470084106 Bug 1234099 - Unhide Adobe GMP on Windows XP. r=spohl
MozReview-Commit-ID: FIdyL7l3eY6
2016-02-24 15:46:52 +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
Dave Townsend
3663a6d8b6 Bug 1232274: Make installing or enabling an add-on require a restart if e10s is on and a pref is set. r=rhelmer
--HG--
extra : rebase_source : 067151264d8f037df0573ec81937762d8557242f
2016-01-14 15:21:01 -08:00
Robert Helmer
c14128889e Bug 1239484 - remove use of Object.values() r=mossop
--HG--
extra : rebase_source : acc92d461bdbb594b207637f51c87112bd054e57
2016-01-19 11:01:19 -08:00
Sebastian Hengst
ec249b43ac Bug 1239868 - remove unused PREF_EM_UPDATE_INTERVAL. r=Mossop 2016-01-15 13:11:31 +01:00
Kris Maglione
5a95948ae6 Bug 1235365: Parse WebExtension JSON files as UTF-8. r=billm
--HG--
extra : commitid : IKunziwQUPp
extra : rebase_source : e36842c15d0be4f319a108e0bfc4e04baf96dd19
2016-01-09 16:53:24 -08:00
Carsten "Tomcat" Book
c3c9e7c565 merge mozilla-inbound to mozilla-central a=merge 2016-01-07 11:50:57 +01:00
Robert Helmer
056a1adce9 Bug 1209344 - Link to about:debugging from about:addons. r=mossop
--HG--
extra : transplant_source : Z%A1QK7%92%FD3%D8%E1p%8F%C6%FAb%00fF%7D%F4
2016-01-05 12:19:59 -08:00
Robert Helmer
7ab4eeae62 Bug 1209344 - Remove debug button from about:addons. r=mossop
--HG--
extra : transplant_source : toni%12t%E0%3Fh%E7%06%98%B8%E4%29k%FB%0C%9Be
2016-01-05 12:19:15 -08:00
Mark Finkle
24b28ec36c Bug 590127 - Remove toolkit implementation of about:addons r=margaret 2016-01-06 00:49:03 -05:00
Chris Pearce
38b4594c7d Bug 1234099 - Unhide Adobe GMP on Windows XP. r=spohl 2015-12-21 16:06:41 +13:00
Dave Townsend
86f03db916 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8
--HG--
extra : commitid : CKT2WDkxE4k
extra : rebase_source : 0be50c483317355b1e9af5985d53e85604748432
extra : histedit_source : 65d203f57ebd38b8c130e5db9aaa8ae3f507e7ac
2015-11-30 13:05:00 -08:00
Milan Sreckovic
1c5ba02c87 Bug 1234385: Add downloadable blocklist support for between comparison types, by recognizing driverVersionMax when parsing. r=benwa
--HG--
extra : commitid : AhHBWH2QjLc
2015-12-24 12:53:40 -05:00
Dave Townsend
99e46fd0e0 Bug 1237340: Fix browser and toolkit eslint failures. r=Felipe
--HG--
extra : rebase_source : 3e1098fe6d387bed1edcad365e318c484e8989ea
2016-01-06 10:10:35 -08:00
Chris Pearce
5d3656a01c Bug 1234099 - Backout 34460cc654ca due to playback failures caused by Adobe GMP. r=backout 2016-01-07 09:57:36 +13:00
Alessio Placitelli
9f6f7449c9 Bug 1217282 - Add test coverage. r=gfritzsche 2015-12-15 05:44:00 +01:00
Carsten "Tomcat" Book
c63e52138d Backed out changeset 7a5367ac58a4 (bug 1209344) for various test failures
G: changed toolkit/mozapps/extensions/test/xpcshell/xpcshell-shared.ini
2015-12-16 14:44:20 +01:00
Carsten "Tomcat" Book
9471544690 Backed out changeset a1393f2f306e (bug 1209344) 2015-12-16 14:43:53 +01:00
Robert Helmer
8728971b80 Bug 1209344 - link to about:debugging from about:addons r=mossop
--HG--
extra : transplant_source : %80%C8%B7f%80%AC9%CA%A5%13%98%B1%FD%F2%8F%C4%B377%05
2015-12-14 13:52:38 -08:00
Robert Helmer
1f3b89a6c7 Bug 1209344 - remove debug button from about:addons r=mossop
--HG--
extra : transplant_source : %DF-u%83%B8%A5%9E%EA%B5%8D%9B%B1%92G%02m%08%BE%3D%E3
2015-12-13 09:02:17 -08:00
Chris Pearce
591eb6df76 Bug 1232799 - Remove KEY_PLUGIN_TRIAL_CREATE pref from GMPProvider and friends. r=spohl
The GMPVideoDecoderTrialCreator was removed from Gecko in bug 1232527, and so
we don't need to set/reset this pref in the GMPProvider any more.

--HG--
extra : rebase_source : 3bb70b21388cdc8adb1aec25cff837a0348a6e3c
2015-12-16 10:38:51 +13:00
Chris Pearce
8cdc81c1eb Bug 1232795 - Remove VIDEO_EME_DISABLED telemetry probe. r=spohl
--HG--
extra : rebase_source : 6d7ee246707b0dad8493944af629a9ea0097184e
2015-12-16 10:32:41 +13:00
Robert Helmer
5fb8db01a4 Bug 1231003 - clarify in variable names and comments that temporary add-ons can be files or dirs r=mossop
--HG--
extra : transplant_source : %26%DBzr%14%18J%F0e6%40%5BY%5E%D3%14L%3Cs%3E
2015-12-07 14:53:11 -05:00
Georg Fritzsche
943da0d5c5 Bug 1231055 - Fix tags usage in PluginProvider. r=dtownsend 2015-12-08 19:52:45 -05:00
Dave Townsend
40279b9be7 Bug 1227981: Test that referencing a DTD from the inline options of an add-on works. r=rhelmer
--HG--
extra : commitid : GEBPImsntYP
extra : rebase_source : 356f7cd9825337dd24073a39a97c6b442ffcc077
2015-11-25 10:18:53 -08:00
Robert Helmer
5ce1b1be5a bug 1228792 - remove leading 0, be explicit about octals r=mossop
--HG--
extra : commitid : 2BNMh5TCvs8
extra : rebase_source : b25d3380032ac363377804a76769554d74a7f11f
extra : histedit_source : a6d22c6f3a7ee97ae99820349cd7fd8cc3719fc6
2015-12-02 18:43:09 -08:00
Robert Helmer
67c3facd3e bug 1228792 - use function* for generators r=mossop
--HG--
extra : commitid : gjt3xC1DJc
extra : rebase_source : f13bb0a43be036a0d4694b0bb6d0690e999b872f
extra : histedit_source : e591411c3b588f247e9988d1b6b66e09cf7b4b94
2015-12-02 18:42:50 -08:00
Robert Helmer
d40ca0dad5 bug 1228792 - use standard version of catch r=mossop
--HG--
extra : commitid : FpwpzNvnHDs
extra : rebase_source : cb4adf8ce77ed5231fc463c907facfd509b4a4ef
extra : histedit_source : 96a513f23dbb96f71e99bc73164e37bd258b4f6a
2015-12-02 18:42:16 -08:00
Robert Helmer
d4b4a83098 bug 1228792 - remove use of array comprehensions r=mossop
--HG--
extra : commitid : I7JbIRZK5Pk
extra : rebase_source : 516f056afbb164b0b7b9fd9889c5cc998626c15d
extra : histedit_source : da178544faf7ff52591d96712921ddd73de2b48a
2015-12-02 18:40:59 -08:00
Carsten "Tomcat" Book
d1e027ccae Merge mozilla-central to fx-team 2015-12-01 15:28:12 +01:00
Carsten "Tomcat" Book
f3e1aec951 merge mozilla-inbound to mozilla-central a=merge 2015-12-01 15:25:14 +01:00
Robert Helmer
978190afcd Bug 1195353 - leave extension proxy files that point to invalid manifests r=mossop
--HG--
extra : transplant_source : %5C%FA%F5%8E%BE%3E%24%EB%CFN%CC%8DS%9C%9A%A7C%A5%B6/
2015-11-25 23:28:30 -08:00
Dave Townsend
552c0bb27b Bug 1226386: Remove or fix many uses of Array.forEach. r=rhelmer
--HG--
extra : commitid : BCzc4kuShSp
extra : rebase_source : 8517ce0913bb72ee340cb400e4f45c43bf964d67
2015-11-20 15:31:17 -08:00
Dave Townsend
f946cdabc4 Bug 1226386: Remove use of non-standard __defineGetter__ and __defineSetter__. r=rhelmer
Moved these mostly onto the prototype. We couldn't do this before without making
the target of the wrapper a property of the wrappers and we don't want to expose
that but now WeakMaps allow us to get the target without exposing it.

Once change with this approach is that when the test suite shuts down the
add-ons manager it kills the map and so wrappers cease to function. A couple of
tests were relying on accessing wrapper properties after that but that would
have likely been unsafe anyway.

--HG--
extra : commitid : 6OI6dLyM45D
extra : rebase_source : c8a53360ce582186dcdc5cbf0dfc2b5057881eac
2015-11-20 10:55:13 -08:00
Dave Townsend
f6c6e0cc02 Bug 1226386: Switch to fat arrow functions where it makes sense. r=rhelmer
Both for brevity and to remove the use of |self = this|.

--HG--
extra : commitid : 7gNXRCzxPxM
extra : rebase_source : 4dccdf8bf99f5979664ca3ca3d9e61f66e217bfe
2015-11-20 10:06:14 -08:00
Dave Townsend
e2b946adfc Bug 1226386: Remove functions names where possible. r=rhelmer
We used to need explicit names for functions to make stack traces display
properly. The JS engine is smarter now so doesn't need them and they just
make the code messy and redundant.

--HG--
extra : commitid : 4FEIiQYhRQu
extra : rebase_source : 26689d5417f592d0f327f32076245cb4f154229a
2015-11-19 16:35:41 -08:00
Dave Townsend
d252cadc1f Bug 1226386: Remove createWrapper function and replace with a memoized property. r=rhelmer
--HG--
extra : commitid : 7sR5hnOEWW2
extra : rebase_source : c7b44681ac2f727f34b2b21e6459ceb9fb52e264
extra : amend_source : 8e1f0eb8d1cbac8b47526ded9c05de6c1a48503a
2015-11-19 14:19:33 -08:00
Dave Townsend
c872ff3d33 Bug 1226386: Remove most of the preprocessing from the add-ons manager. r=gps
For build speed, for correct line numbers in errors, for faster development, for so many reasons.
Still a couple of cases left mostly in XUL files for different strings on Windows.

Bonus: The new lexical scope means ADDON_SIGNING and REQUIRE_SIGNING can just
be declared as regular constants and outside code can't get to them easily.

--HG--
extra : commitid : Kj8khjuCwG2
extra : rebase_source : 2e0a3143900c0c414cda43254306f0c070f8e621
2015-11-19 15:30:47 -08:00
Dave Townsend
361cd471ff Bug 1228359: Allow experiments to register chrome. r=felipe
Simple obvious fix. Adds tests by making BootstrapMonitor (which
test_experiments.js and others use for verifying bootstrap startup and shutdown)
verify the list of registered chrome manifests at various points. Without the
fix this makes test_experiment fail as expected.

--HG--
extra : commitid : DhCOtar9Mqu
extra : rebase_source : c194a4d390bbd460b9c17ec09e9c3a219b5025d6
2015-11-27 12:44:22 -08:00
Kris Maglione
6713ba9ac7 Bug 1192435: Support updates for WebExtensions. r=Mossop
--HG--
extra : commitid : 2NZYNYBpFs4
extra : rebase_source : 06a5d6fe9b91872f31f17323766e74fc4dc24646
2015-11-17 16:23:15 -08:00
Johann Hofmann
75a90ffc8e Bug 1200674 - Allow flexible icon sizes in ExtensionUtils. r=dtownsend 2015-11-24 18:20:26 +01:00
Christoph Kerschbaumer
413a60a063 Bug 1225641 - Change default security flags within NetUtil.newChannel (r=sicking) 2015-11-17 17:35:30 -08:00
Robert Helmer
e339903d0b Bug 1209341 - allow loading unsigned restartless add-ons at runtime. r=mossop
--HG--
extra : transplant_source : %9EhX%F7%9D%AE%F5%14%18%E6%3B%A7%D3w%E3%3B%CAl%27%05
2015-11-03 10:07:08 -08:00
Jim Chen
3f2aedd313 Bug 1221270 - Let AddonUpdateService use AddonManagerPrivate to check for updates; r=mfinkle
The Android-specific AddonUpdateService has a bit of redundant code
because AddonManagerPrivate has a backgroundUpdateCheck method that does
a lot of the same thing. This patch makes AddonUpdateService call that
method so there's less code and more consistency.

This requires flipping the "extensions.update.enabled" pref, which was
disabled in bug 528588 for showing the XUL addon update dialog. I don't
think this is relevant anymore in native Fennec and with the later
rewrite of AddonManager, so I'm fairly certain it's okay to flip that
pref.

The patch also disables the AddonManager update timer because we have
our own update timer on Android.
2015-11-23 23:31:49 -05:00
Christoph Kerschbaumer
5975a9caee Bug 1182546 - Test update: make inlinesettings accessible from content (r=bz) 2015-11-20 10:56:55 -08:00
Gijs Kruitbosch
161662dac8 Bug 1191468 - always load app dir add-ons irrespective of enabledScopes, r=Mossop,froydnj
--HG--
extra : commitid : 4O0JNbchonb
extra : rebase_source : f218722dd70f74a45e4dbb461a7faaa3ef1d1d81
extra : amend_source : 538b86815da89ccf5b3e7e42412019064123ccfe
2015-11-17 13:55:31 +00:00
Carsten "Tomcat" Book
839fa910f5 merge mozilla-inbound to mozilla-central a=merge 2015-11-19 14:44:11 +01:00
Nigel Babu
8638a9854f Backed out changeset 9155ee3d42d8 (bug 1182546) for Android M(c) bustage 2015-11-19 14:26:20 +05:30
Dave Townsend
d9c57718d0 Bug 1220911: Remove most of the special casing around experiments. r=rhelmer
Experiments should differ from normal add-ons in a few ways:

* They can always be enabled regardless of compatibility info
* They default to disabled when installed
* They cannot be checked for updates
* They only stay enabled for the lifetime of the current process
* The UI doesn't give users the ability to enable/disable

This makes a few changes to keep these differences but remove much of the special casing code for experiments.

Being able to use regardless of compatibility was mostly fixed by bug 1220198 but I've also removed the redundant override in isCompatible.

Previously the "enabled until restart" feature worked with by not updating the DBAddonInternal object and instead using a hack to make the wrapper still seem enabled. This seems likely to break other code that relies on the state of the DBAddonInternal object so instead we update that as normal and simply don't persist the enabled state to disk.

Also switch the DBAddonInteral.prototype code to use some newer JS features.

I've removed the hack from addon.permissions which was hiding the enable/disable buttons in the UI and instead just hidden them in the UI stylesheet. This makes the API make sense and means callers can use addon.permissions to verify that enabling will work.

--HG--
extra : commitid : I1KdZYTWAyE
extra : rebase_source : 352634d8e980a6f7a9c2121607283f5b08dc8484
2015-11-09 15:02:29 -08:00
Dave Townsend
0ca2ae256e Bug 1220911: Switch test_experiment.js to task style. r=rhelmer
Before changing the handling of experiments make the tests a bit more readable
and use BootstrapMonitor to verify things.

--HG--
extra : commitid : LnQTmpOqRgj
extra : rebase_source : be63740ca7613bf685c9d69722e9fb2e1bb0d5e3
2015-11-09 15:02:05 -08:00
Dave Townsend
95d4a64276 Bug 1225629: Always verify signatures for hotfixes and system add-on updates. r=rhelmer
--HG--
extra : commitid : HZM3glYLa3L
extra : rebase_source : e6c2c366ba7a96f5b66ed24b00c97c3ca4333e6b
extra : amend_source : e536be12a4d97d83f38b0cb8a9d931544902d75d
2015-11-17 14:05:04 -08:00
Christoph Kerschbaumer
a6cb71ab15 Bug 1223435 - Use channel.asyncOpen2 in toolkit/mozapps/extensions/internal/XPIProvider.jsm (r=sicking) 2015-11-15 14:48:11 -08:00
Christoph Kerschbaumer
59449aca2c Bug 1182546 - Test update: make inlinesettings accessible from content (r=bz) 2015-11-18 19:25:03 -08:00
Mark Goodwin
854efb9851 Bug 1224467 - Add a preference for controlling whether oneCRL blocklists are updated via AMO. Also add a test. r=keeler,mossop 2015-11-18 11:53:54 +00:00
Nigel Babu
70eb23339b Backed out changeset 46eadccf444d (bug 1223435) 2015-11-16 16:03:18 +05:30
Christoph Kerschbaumer
438e0eb3d0 Bug 1223435 - Use channel.asyncOpen2 in toolkit/mozapps/extensions/internal/XPIProvider.jsm (r=sicking) 2015-11-15 14:48:11 -08:00
Bill McCloskey
d3c47f743b Bug 967873 - Fix some recently enabled tests 2015-11-11 16:24:34 -08:00
Kris Maglione
4a1b170b2c Bug 1192433: Part 3 - Support localized names and descriptions in WebExtension manifests. r=Mossop
--HG--
extra : commitid : 79RHXd1mZtp
extra : rebase_source : 3bbd8ae3184d58ba5d2c1d332e0209fb2d0a19ef
2015-11-02 16:50:42 -08:00
Carsten "Tomcat" Book
0a34392a9e Merge mozilla-central to fx-team 2015-11-05 12:17:28 +01:00
Andrew McCreight
a56cc47ac7 Bug 1221185 - Enable more e10s tests in toolkit/mozapps/extensions/test/browser/. r=felipe 2015-11-03 09:12:00 +01:00
Carsten "Tomcat" Book
3e11f2fe34 merge mozilla-inbound to mozilla-central a=merge 2015-11-04 11:59:46 +01:00
Kris Maglione
9768c79d20 Bug 1213632: Prevent WebExtensions from using versioned JavaScript. r=billm
--HG--
extra : commitid : 3aQ4wS5I7LP
extra : rebase_source : 252277140f700ab305877f3bfd0ba9b582ff0b7a
2015-10-22 23:25:43 -07:00
Dave Townsend
efdebbd94c Bug 1220198: Never appDisable experiments if they don't have the right app compatibility information available. r=rhelmer
--HG--
extra : commitid : FRWLOAxSmbi
extra : rebase_source : 8783c5c2c347a9cc9cdfad45ea2e26aa9fc9111c
2015-11-02 11:15:12 -08:00
Kris Maglione
1f33d6ac2d Bug 1214058: Part 2 - Run add-on update tests against comparable JSON and RDF manifests. r=Mossop
I tried to keep the changes to existing tests as minimal as
possible. There were a few exceptions, though:

* test_update_ignorecompat.js was completely broken. I couldn't
  figure out why it was suddenly failing after I changed it to use
  `add_test`, and it turned out that it had been failing all along,
  but in a way that the harness didn't pick up.

* I changed most of the `do_throw` in update callbacks to `ok(false`
  because it took me about an hour to figure out where the test was
  failing when I hit one of them.

* I made some changes to sync `test_update.js` and `test_update_ignorecompat.js`
  where one appeared to have been changed without updating the
  other.

* I made `promiseFindAddonUpdates` a bit more generic, because I was
  planning to convert most of `test_update.js` to use it, rather
  than nested callbacks. I changed my mind a quarter of the way
  through, but decided to keep the changes, since they'll probably
  be useful elsewhere.

--HG--
extra : commitid : 2jBJ2yUht46
extra : rebase_source : a123db431a26b29f3deb81e6b961bf556005c2a6
extra : source : 90e625ac70b2071f1c2430725892f7c266928521
2015-10-19 09:18:42 -07:00
Kris Maglione
c663cc0727 Bug 1214058: Part 1 - Add a simplified JSON-based add-on update protocol. r=Mossop
--HG--
extra : commitid : HUFAitZpdVA
extra : rebase_source : b2eb9ede0582b804e1e583570e165e27f42c8fa7
extra : source : a4d5d63a03ef3938d95f629a6a9ea31d3e88627d
2015-11-03 14:49:46 -08:00
Wes Kocher
7a3e94be61 Backed out 2 changesets (bug 1214058) for xpcshell bustage
Backed out changeset 90e625ac70b2 (bug 1214058)
Backed out changeset a4d5d63a03ef (bug 1214058)
2015-11-03 16:06:23 -08:00
Kris Maglione
110d21abaa Bug 1214058: Part 2 - Run add-on update tests against comparable JSON and RDF manifests. r=Mossop
I tried to keep the changes to existing tests as minimal as
possible. There were a few exceptions, though:

* test_update_ignorecompat.js was completely broken. I couldn't
  figure out why it was suddenly failing after I changed it to use
  `add_test`, and it turned out that it had been failing all along,
  but in a way that the harness didn't pick up.

* I changed most of the `do_throw` in update callbacks to `ok(false`
  because it took me about an hour to figure out where the test was
  failing when I hit one of them.

* I made some changes to sync `test_update.js` and `test_update_ignorecompat.js`
  where one appeared to have been changed without updating the
  other.

* I made `promiseFindAddonUpdates` a bit more generic, because I was
  planning to convert most of `test_update.js` to use it, rather
  than nested callbacks. I changed my mind a quarter of the way
  through, but decided to keep the changes, since they'll probably
  be useful elsewhere.

--HG--
extra : commitid : 84oLUw4ZPOg
extra : rebase_source : 2bd6c921c6b677e4d487d0ee9c33b1130163bc39
2015-10-19 09:18:42 -07:00
Kris Maglione
84b37ed6ea Bug 1214058: Part 1 - Add a simplified JSON-based add-on update protocol. r=Mossop
--HG--
extra : commitid : kx59XtC26O
extra : rebase_source : 95f8fa8f13be16f2353ea3dcaa230a92563e6af6
2015-11-03 14:49:46 -08:00
Wes Kocher
1b36d95442 Merge fx-team to central, a=merge
--HG--
extra : commitid : HRvqk20Jqmp
2015-10-29 17:07:41 -07:00
Fabrice Desré
1021bedfa7 Bug 1208242 - Part 1: hook up the blocklist service to b2g web extensions r=mossop,ferjm
* * *
Bug 1208242 - Part 3: don't ship things that should not ship r=me
2015-10-29 07:32:50 -07:00
Wes Kocher
a47220809f Backed out 3 changesets (bug 1208242) for emulator mochitest bustage
Backed out changeset d2f87bf3aced (bug 1208242)
Backed out changeset c38225ee4378 (bug 1208242)
Backed out changeset 6dff307959f2 (bug 1208242)

--HG--
extra : commitid : 78rPKP5sInK
2015-10-29 12:17:25 -07:00
Tim Nguyen
f991aca55c Bug 1169679 - browser_inlinesettings.js: Scroll button into view before clicking on it. r= Mossop 2015-10-29 12:00:36 +01:00
Fabrice Desré
67f6fb0a63 Bug 1208242 - Part 1: hook up the blocklist service to b2g web extensions r=mossop,ferjm 2015-10-29 07:32:50 -07:00
Johann Hofmann
2225f650f8 Bug 1192432 - Support custom icons in Web Extensions. r=mossop 2015-10-14 11:03:40 +02:00
Dave Townsend
d7446578d5 Bug 1217070: Fix accessing the bootstrap methods when they are declared in the new lexical scope. r=rhelmer
Rather that trying to get the method from the sandbox global object which will
only work for var and function declared methods instead evaluate the function
name in the sandbox scope and get the result which will give us access to the
lexical scope.

--HG--
extra : commitid : 1yWu6Go3XoQ
extra : rebase_source : 447ef2f2184229693cd6a45d6d5ac9705b200847
2015-10-21 10:26:28 -07:00
Bill McCloskey
c76ae8f933 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-11-04 10:56:15 -08:00
Bill McCloskey
de23733337 Bug 1219504 - Test changes (r=Gijs,mconley,jryans,MattN,Mossop) 2015-11-04 10:56:15 -08:00
Tooru Fujisawa
65e2703499 Bug 1217082 - Remove for-each from toolkit/. r=Gijs
--HG--
extra : commitid : Ewr7Bixammr
extra : rebase_source : 91e560a7b8b8d4b78debb1db2512867262b18375
2015-10-19 04:57:14 +09:00
J. Ryan Stinnett
986f2a5cde Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
Alexandre Poirot
89cb263b54 Bug 1204812 - Keep Console.jsm in toolkit/modules/ r=jryans,Mossop
--HG--
rename : devtools/shared/Console.jsm => toolkit/modules/Console.jsm
2015-10-15 03:45:22 -07:00
Felipe Gomes
c56d3c0a1c Bug 1214052 - Remove unnecessary files from the pre-processing list. r=glandium 2015-10-13 23:50:30 -03:00
Neil Deakin
8ff28e901c Bug 1173330, fix to use content tasks and BrowserTestUtils, and reenable browser_bug638292.js, r=felipe 2015-10-09 08:50:13 -04:00
J. Ryan Stinnett
408cba0158 Bug 1212153 - Clean up Cu.isModuleLoaded after migration. r=bgrins 2015-10-08 15:25:23 -05:00
Dave Townsend
eaf44427bd Bug 1212059: Don't require shipped system add-ons to be signed, always require updated system add-ons to be signed. r=rhelmer
--HG--
extra : commitid : xEeCASb1R7
extra : rebase_source : 96e19ed756e4312fb25b548ca01b0284853daf67
2015-10-07 10:29:18 -07:00
Bill McCloskey
1b6da7ed71 Back out bug 967873 - Test changes for async removeTab 2015-10-07 11:15:11 -07:00
Wes Kocher
399a23b6c1 Merge inbound to m-c a=merge 2015-10-07 10:29:41 -07:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00