Commit graph

55 commits

Author SHA1 Message Date
Kris Maglione
e930b89c34 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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Luca Greco
8dd8306889 Bug 1499363 - Fix userScript test failure on beta due to runWithPrefs not restoring the initial prefs values. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D9107

--HG--
extra : moz-landing-system : lando
2018-10-18 17:14:24 +00:00
Luca Greco
c322d3c14f Bug 1437861 - Implement userScripts.register and execute userScripts js code in isolated sandboxes. r=zombie,mixedpuppy
This patch introduces the userScripts API namespace and the userScripts.register API method,
which allows an extension to register some javascript code to run on the matched webpages
into an isolated sandbox (whereas all the content scripts from the same extension run in
a per-window sandbox shared by all the extension content scripts).

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

--HG--
extra : moz-landing-system : lando
2018-09-12 16:44:54 +00:00
Luca Greco
4a39c0cbff Bug 1406181 - Test storage.local JSONFile and IndexedDB backends. r=kmag
MozReview-Commit-ID: CU9CVdIp8l8

--HG--
extra : rebase_source : 961df767529f34b8a998c73fcad67019bce9dbb1
2017-10-19 15:15:31 +02:00
Cosmin Sabou
835f7407b3 Backed out 10 changesets (bug 1406181) as per developers request.
Backed out changeset 06461ddb2699 (bug 1406181)
Backed out changeset fd61d9faedf0 (bug 1406181)
Backed out changeset b52c2fb70ae1 (bug 1406181)
Backed out changeset 4f387b4a76a9 (bug 1406181)
Backed out changeset db783c96c076 (bug 1406181)
Backed out changeset 62e9126ecd0d (bug 1406181)
Backed out changeset d34810cab822 (bug 1406181)
Backed out changeset 3241c2dfb296 (bug 1406181)
Backed out changeset 912a2eaf4d26 (bug 1406181)
Backed out changeset fdac47b8ef20 (bug 1406181)
2018-06-03 16:10:23 +03:00
Luca Greco
fe13c3b9dd Bug 1406181 - Test storage.local JSONFile and IndexedDB backends. r=kmag
MozReview-Commit-ID: CU9CVdIp8l8

--HG--
extra : rebase_source : e65f448c230bcd47f961a43a08679f022f86e8b5
2017-10-19 15:15:31 +02:00
Kris Maglione
a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Kris Maglione
8c8e35c46c Bug 1446571: Add missing semicolon. r=eslint-fix DONTBUILD CLOSED TREE
MozReview-Commit-ID: FikjFYLirlG

--HG--
extra : amend_source : 99d4543109bb40096f3978c26f7d215825d9bbe5
2018-03-20 19:55:51 -07:00
Kris Maglione
0f53439c73 Bug 1446571: Part 2b - Update update tests to run in parallel. r=aswan
MozReview-Commit-ID: AYgDFSTcTtT

--HG--
extra : rebase_source : db664ed54f8a64e7f3a4ab733231ff16a9e33fac
extra : amend_source : a2bafbf13bc23f611beecf9c4a087015dbfc1c83
extra : histedit_source : 903684841d1110d8ece769ded2d53263e9af6c8d
2018-03-16 17:52:20 -07:00
Kris Maglione
c53546d2f0 Bug 1445821: Whitelist expected promise rejection. r=trivial,test-only
MozReview-Commit-ID: FZM93rcOsVJ
2018-03-18 14:07:58 -07:00
Kris Maglione
60be225db4 Bug 1444680: Part 1a: Move proxy filter host stubs to head.js. r=mixedpuppy
MozReview-Commit-ID: 8XxxJlRgTZL

--HG--
extra : rebase_source : 87ac544f1f67e6f683288b460d64b9918439e876
2018-03-10 17:54:12 -08:00
Kris Maglione
3c4a7741ac Bug 1441333: Part 5 - Use proper async caller location in normalizeError. r=zombie
Currently, when we create an error object at the end of an aysnc operation, we
only get a useful caller location if async stacks are enabled.

This patch changes our behavior to use the saved caller location we've already
stored when creating an Error object based on a plain string message.

MozReview-Commit-ID: DDO0lAUHYRO

--HG--
extra : rebase_source : 995ea3c6de26b616a6cef483b271e222bb2aaf6e
2018-03-01 16:39:08 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Mark Banner
cf372ccd32 Bug 1412893 - Change instances of using getService to Services.jsm where possible in toolkit/components - Part 1. r=mossop
MozReview-Commit-ID: BBnacIvRJBR

--HG--
extra : rebase_source : 10157c319a97b14c9a360a26a56725022df14ad4
2017-10-30 16:29:58 +00:00
Kris Maglione
a6e9a2cf47 Bug 1407056: Part 3 - Test that CSP overrides apply correctly based on triggering principals. r=bz
MozReview-Commit-ID: EbGsI3keeG6

--HG--
extra : rebase_source : 92d3bf7505641ccd17f0ff98d0adf4ddd5803cb8
2017-10-12 15:44:32 -07:00
Shane Caraveo
387891590a Bug 1400391 fix e10s xpcshell-test for remote webextensions, r=kmag
MozReview-Commit-ID: AgdmUNWLGaq

--HG--
extra : rebase_source : 3caf6ae08f5507a9d22a9f6b3d16766bd7f98964
2017-09-17 19:34:13 -07:00
Kris Maglione
a15a2a5be1 Bug 1393621: Part 2 - Add test for API modules loaded at startup. r=zombie
MozReview-Commit-ID: 6gyDqsaImmX

--HG--
extra : rebase_source : 17a7a3c83ab0939371baf98b484b092e1681b34a
2017-08-31 15:14:33 -07:00
Kris Maglione
c753eb2c73 Bug 1357490: Part 1: Run toolkit xpcshell tests in both in-process and OOP modes. r=aswan
MozReview-Commit-ID: 7YYO8ldupn3

--HG--
rename : toolkit/components/extensions/test/xpcshell/head_remote.js => toolkit/components/extensions/test/xpcshell/head_e10s.js
rename : toolkit/components/extensions/test/xpcshell/xpcshell-remote.ini => toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini
extra : source : 33f6f0354aded142e7a41d5a6209d0d95c4c7521
extra : intermediate-source : 4ea831e6e7d12420bdc4695fc099c16ad7d09cd5
2017-07-07 18:54:37 -07:00
Sebastian Hengst
7076377b5e Backed out changeset 4ea831e6e7d1 (bug 1357490) for frequently failing toolkit/components/extensions/test/xpcshell/test_ext_privacy_update.js on Linux x64 asan. r=backout 2017-07-08 11:31:57 +02:00
Kris Maglione
d58917713b Bug 1357490: Part 1: Run toolkit xpcshell tests in both in-process and OOP modes. r=aswan
MozReview-Commit-ID: 7YYO8ldupn3

--HG--
rename : toolkit/components/extensions/test/xpcshell/head_remote.js => toolkit/components/extensions/test/xpcshell/head_e10s.js
rename : toolkit/components/extensions/test/xpcshell/xpcshell-remote.ini => toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini
extra : source : 33f6f0354aded142e7a41d5a6209d0d95c4c7521
extra : intermediate-source : 663351357fa7791bb6d08bf7b470ca5fcdccb77e
extra : histedit_source : b0eeaa1bbcd7e5ef729c5b1c26003a7d1af2af7e%2C0ee5000a87ebb9717ff007608620739e0ae1ee30
2017-07-07 18:54:37 -07:00
Carsten "Tomcat" Book
7907114811 Backed out changeset 663351357fa7 (bug 1357490) for test failures in test_ext_startup_cache.js 2017-07-07 10:44:09 +02:00
Kris Maglione
d203fdb685 Bug 1357490: Part 1: Run toolkit xpcshell tests in both in-process and OOP modes. r=aswan
MozReview-Commit-ID: 7YYO8ldupn3

--HG--
rename : toolkit/components/extensions/test/xpcshell/head_remote.js => toolkit/components/extensions/test/xpcshell/head_e10s.js
rename : toolkit/components/extensions/test/xpcshell/xpcshell-remote.ini => toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini
extra : rebase_source : 61afb7f1609dc57a4f096784fb909bdb4351aa95
extra : source : 33f6f0354aded142e7a41d5a6209d0d95c4c7521
2017-07-06 21:39:35 -07:00
Kris Maglione
06c9dfdd54 Bug 1368152: Part 4 - Remove ExtensionManagement.jsm. r=aswan
MozReview-Commit-ID: Apbi1QYeb2x

--HG--
extra : rebase_source : 56e223e8ee92c848bbd06d74b1e7dc6d9a01d9e1
2017-06-03 17:18:18 -07:00
Ryan VanderMeulen
2af91f1c45 Backed out 4 changesets (bug 1357490) for causing frequent xpcshell timeouts.
Backed out changeset 916250167bc8
Backed out changeset c2a286511a6c
Backed out changeset 9cc319bef82d
Backed out changeset 29443725aebb

--HG--
extra : histedit_source : 76915ec4b96c97ee6bd4896769158490442aedce%2C0face0f9fe6eb85dd4ba8b3603bf948e0ce99d7f
2017-05-30 12:36:43 -04:00
Kris Maglione
357f0eefb9 Bug 1357490: Part 1: Run toolkit xpcshell tests in both in-process and OOP modes. r=aswan
MozReview-Commit-ID: 7YYO8ldupn3

--HG--
rename : toolkit/components/extensions/test/xpcshell/head_remote.js => toolkit/components/extensions/test/xpcshell/head_e10s.js
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
rename : toolkit/components/extensions/test/xpcshell/xpcshell-remote.ini => toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini
extra : source : 33f6f0354aded142e7a41d5a6209d0d95c4c7521
extra : absorb_source : e8c14432bfe17b5d4767e14eadbbb408df4dd664
2017-05-29 14:09:36 -07:00
Phil Ringnalda
1c31cbe46c Backed out 2 changesets (bug 1357490) for promise chain failed to handle a rejection QI failures
CLOSED TREE

Backed out changeset 3737f31a7ec3 (bug 1357490)
Backed out changeset 33f6f0354ade (bug 1357490)

MozReview-Commit-ID: 2Q4bUrnntlZ
2017-05-29 16:34:00 -07:00
Kris Maglione
3a2fc75838 Bug 1357490: Part 1: Run toolkit xpcshell tests in both in-process and OOP modes. r=aswan
MozReview-Commit-ID: 7YYO8ldupn3

--HG--
rename : toolkit/components/extensions/test/xpcshell/head_remote.js => toolkit/components/extensions/test/xpcshell/head_e10s.js
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
rename : toolkit/components/extensions/test/xpcshell/xpcshell-remote.ini => toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini
extra : rebase_source : 05fb233ac80a170d53888fe473a3135c22f95f13
extra : histedit_source : 4a655b3f582ea090a46584ae38119202d037de0f%2Cfcde51f55e5a3e1aed13c85051fdc6fe004e0ff1
2017-05-29 14:09:36 -07:00
Florian Quèze
5e3539e504 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Kris Maglione
2ad60b1f3d Bug 1344616: Migrate content script mochitests to xpcshell. r=mixedpuppy
MozReview-Commit-ID: 2ljMgRTIi5r

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_contentscript.html => toolkit/components/extensions/test/xpcshell/test_ext_contentscript.js
rename : toolkit/components/extensions/test/mochitest/test_ext_i18n.html => toolkit/components/extensions/test/xpcshell/test_ext_i18n.js
rename : toolkit/components/extensions/test/mochitest/test_ext_i18n_css.html => toolkit/components/extensions/test/xpcshell/test_ext_i18n_css.js
extra : rebase_source : adfe7c0d88a674076f37a8faf6dedf7400f316f0
2017-03-06 17:15:40 -08:00
Matthew Wein
5f0528a1ec Bug 1252871 - Add support for runtime.onInstalled r=aswan
MozReview-Commit-ID: 3wDtv0g0BpO

--HG--
extra : rebase_source : c5d50e41e4cf241b2c3d021e8c2283d4251b7118
2016-10-19 10:38:29 +01:00
Ben Kelly
2d718bf199 Bug 1300658 P7 Make test_ext_downloads_search.js wait for full window file removal. r=aswan 2016-09-13 20:14:02 -07:00
Kris Maglione
2cb56b7b11 Bug 1288912: Add tests for native messaging round trip time. r=aswan
MozReview-Commit-ID: 6gOpZhvAZUE

--HG--
extra : rebase_source : 14cb6641ae00087c173da3d39c278802ac779a7b
2016-07-28 20:54:40 -07:00
Kris Maglione
6faa871152 Bug 1288885: Migrate downloads mochitests to xpcshell. r=aswan
MozReview-Commit-ID: Z67uTNUcqD

--HG--
rename : toolkit/components/extensions/test/mochitest/file_download.html => toolkit/components/extensions/test/xpcshell/data/file_download.html
rename : toolkit/components/extensions/test/mochitest/file_download.txt => toolkit/components/extensions/test/xpcshell/data/file_download.txt
rename : toolkit/components/extensions/test/mochitest/test_ext_downloads.html => toolkit/components/extensions/test/xpcshell/test_ext_downloads.js
rename : toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_download.html => toolkit/components/extensions/test/xpcshell/test_ext_downloads_download.js
rename : toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_misc.html => toolkit/components/extensions/test/xpcshell/test_ext_downloads_misc.js
rename : toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_search.html => toolkit/components/extensions/test/xpcshell/test_ext_downloads_search.js
extra : source : abd51b3d2b52da0669680153e5321b9b843d6cd2
extra : histedit_source : b47606b4c1bc828ed445689f57ff600db69e1ad7
2016-07-22 18:49:50 -07:00
Kris Maglione
f6052f7eae Bug 1288885: Migrate bookmarks mochitests to xpcshell. r=aswan
MozReview-Commit-ID: 9PFJcqXXxhU

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_bookmarks.html => browser/components/extensions/test/xpcshell/test_ext_bookmarks.js
extra : source : 8c67ff2971ecc155ce26dc5d9905c5de7e4bfd4b
2016-07-22 17:29:52 -07:00
Kris Maglione
5595379222 Bug 1288885: Support testing WebExtensions from xpcshell tests. r=aswan
Most of the test helper code is derived from the SpecialPowers/ExtensionTestUtils
code that does the same. Eventually, the two implementations should probably
be unified, but I don't think it's worth the trouble for now.

MozReview-Commit-ID: 7Yy9jWkGsMM

--HG--
extra : source : 8da1ed0adf15e8244e57f22c581bbee072a118b9
2016-07-24 16:09:26 -07:00
Sebastian Hengst
b18a29d071 Backed out changeset 8da1ed0adf15 (bug 1288885) for failure and crashes in test_ext_background_window_properties.js on Android in xpcshell and sets tests. r=backout 2016-07-28 10:06:35 +02:00
Sebastian Hengst
8cf6309948 Backed out changeset 8c67ff2971ec (bug 1288885)
--HG--
rename : browser/components/extensions/test/xpcshell/test_ext_bookmarks.js => toolkit/components/extensions/test/mochitest/test_ext_bookmarks.html
2016-07-28 10:06:34 +02:00
Sebastian Hengst
41ab1152be Backed out changeset abd51b3d2b52 (bug 1288885)
--HG--
rename : toolkit/components/extensions/test/xpcshell/data/file_download.html => toolkit/components/extensions/test/mochitest/file_download.html
rename : toolkit/components/extensions/test/xpcshell/data/file_download.txt => toolkit/components/extensions/test/mochitest/file_download.txt
rename : toolkit/components/extensions/test/xpcshell/test_ext_downloads_download.js => toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_download.html
rename : toolkit/components/extensions/test/xpcshell/test_ext_downloads_misc.js => toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_misc.html
rename : toolkit/components/extensions/test/xpcshell/test_ext_downloads_search.js => toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_search.html
rename : toolkit/components/extensions/test/xpcshell/test_ext_downloads.js => toolkit/components/extensions/test/mochitest/test_ext_downloads.html
2016-07-28 10:06:34 +02:00
Kris Maglione
5ece514d52 Bug 1288885: Migrate downloads mochitests to xpcshell. r=aswan
MozReview-Commit-ID: Z67uTNUcqD

--HG--
rename : toolkit/components/extensions/test/mochitest/file_download.html => toolkit/components/extensions/test/xpcshell/data/file_download.html
rename : toolkit/components/extensions/test/mochitest/file_download.txt => toolkit/components/extensions/test/xpcshell/data/file_download.txt
rename : toolkit/components/extensions/test/mochitest/test_ext_downloads.html => toolkit/components/extensions/test/xpcshell/test_ext_downloads.js
rename : toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_download.html => toolkit/components/extensions/test/xpcshell/test_ext_downloads_download.js
rename : toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_misc.html => toolkit/components/extensions/test/xpcshell/test_ext_downloads_misc.js
rename : toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_search.html => toolkit/components/extensions/test/xpcshell/test_ext_downloads_search.js
extra : rebase_source : 5fd93c86ec6200290fc514ed568a72fa0e54293b
extra : histedit_source : 63b77e62e6eaf86905132397f8d65fcf6849531b
2016-07-22 18:49:50 -07:00
Kris Maglione
ac8debc6f4 Bug 1288885: Migrate bookmarks mochitests to xpcshell. r=aswan
MozReview-Commit-ID: 9PFJcqXXxhU

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_bookmarks.html => browser/components/extensions/test/xpcshell/test_ext_bookmarks.js
extra : rebase_source : 2c9d2611b967733ff685cb9ce7886ae326eae6a3
extra : histedit_source : 880c65df5bbd9721e1c7dcf963396e3d73b49c5d
2016-07-22 17:29:52 -07:00
Kris Maglione
ff96d80145 Bug 1288885: Support testing WebExtensions from xpcshell tests. r=aswan
Most of the test helper code is derived from the SpecialPowers/ExtensionTestUtils
code that does the same. Eventually, the two implementations should probably
be unified, but I don't think it's worth the trouble for now.

MozReview-Commit-ID: 7Yy9jWkGsMM

--HG--
extra : rebase_source : 92cc01e1cde97fa79250d51bad5a56181fbe715c
2016-07-24 16:09:26 -07:00
Kris Maglione
623a4f8665 Bug 1254194: [webext] Allow extensions to register custom content security policies. r=billm f=aswan
MozReview-Commit-ID: 8L6ZsyDjIpf

--HG--
extra : rebase_source : b6ccbcf849b0e7db835d14a0ba9de588c0188869
extra : histedit_source : 7f966c1d821641fc3551dc4c508f5ce8f990d5a3%2Cafa5697b301620119147292745a2007961907fa8
2016-04-23 21:29:15 -07:00
Kris Maglione
402c072ef3 Bug 1196283: [webext] Support comments in JSON files. r=aswan
MozReview-Commit-ID: Ex4ewLH8xQc

--HG--
extra : rebase_source : 5171c92d8e9806c343a2c8b74038e70c072a546e
2016-04-19 13:18:22 -07:00
Kris Maglione
ba2e5f60f4 Bug 1248855 - [webext] Add "object-curly-spacing" ESLint rule and auto-fix errors. r=billm
MozReview-Commit-ID: BAZ2rRl7eSM
2016-02-16 20:10:00 -08:00