Commit graph

420 commits

Author SHA1 Message Date
Bill McCloskey
a2c4e965e2 Bug 1208257 - [webext] context_menus.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
a3d3a41850 Bug 1208257 - [webext] browser_action.json (r=kmag) 2015-12-23 08:57:13 -08:00
Kris Maglione
77d984b84a Bug 1210996: [webext] Check host permissions in the browser.cookies API. r=billm
--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_cookies.html => toolkit/components/extensions/test/mochitest/test_ext_cookies_permissions.html
extra : commitid : IqgOPGfrF2K
extra : rebase_source : 1ba3322fec537ba5e0c0f5fe8a30b7e6eec46911
2015-12-02 21:20:01 -08:00
Sami Jaktholm
c4826911ac Bug 1233350 - Fix TypeError in notifications.getAll(). r=kmag
This also adds some tests for the method.

--HG--
extra : transplant_source : f%9FN%E5%2C%FE%7D%94K%23%06%1A%DC%40%DC%98D%C2%17%BD
2015-12-22 11:29:22 +02:00
Kris Maglione
5806db05fe Bug 1231827: Fix ESLint regressions in toolkit/components/extensions. r=trivial
--HG--
extra : commitid : LOHpVyIKcEO
2015-12-11 11:29:08 -05:00
Bill McCloskey
a8890fbf4f Bug 1208257 - [webext] WebNavigation test (r=kmag) 2015-12-06 08:50:24 -08:00
Bill McCloskey
d85785380e Bug 1208257 - [webext] web_request.json (r=kmag) 2015-12-06 08:50:24 -08:00
Bill McCloskey
28f4ce315b Bug 1208257 - [webext] Add basic schema support (r=kmag) 2015-12-06 08:50:24 -08:00
Kris Maglione
b729a30707 Bug 1229874: Part 3 - Enable ESLint in WebExtension code. r=billm
The base .eslintrc is essentially a merge of the root Toolkit .eslintrc and
the devtools .eslintrc, with some minor changes to match our prevalent style.

For the most enforces the coding styles that we've been using most
consistently. There are a couple of significant differences, though:

 * The rule for opening brace alignment can only be applied globally, and
   doesn't make exceptions for top-level functions. I chose to turn it on, and
   change the brace style of existing top-level functions that violated it,
   since the rule seemed worth using, and that's the direction most Toolkit JS
   code has been headed anyway.

 * The rule for switch/case statements requires an added indentation level for
   case statements. Most of our switch statements did not use an extra level
   of indentation, and I initially wrote the rule to enforce that style, until
   I came across case statements that used blocks, and required the extra
   indentation level for sanity.

--HG--
rename : devtools/.eslintrc => toolkit/components/extensions/.eslintrc
extra : commitid : 4aDZOi5MNPc
extra : rebase_source : f34ba43aeb8046a0c971cb76b76410497bd12b42
extra : source : 2a7eb4ef7b375e5fd52d843ca206a071367a6475
2015-12-02 16:58:53 -08:00
Kris Maglione
62d3c9701a Bug 1229874: Part 2 - Fix the major errors detected by ESLint. r=billm
--HG--
extra : commitid : 8MfFtdlzGEG
extra : rebase_source : 744d65868d5a3d217bd5f6428a3486e95fa14716
extra : source : 880fc261adae00a344e227ea2fa246b771cd57a6
2015-12-02 16:58:24 -08:00
Kris Maglione
d3ba5a1f16 Bug 1209184: Part 4 - [webext] Add tests for CSS localization filters. r=billm
--HG--
extra : commitid : LIbDp0oEgTC
extra : rebase_source : 6cb048586805ffaa01c2e463faec4a7d8308d383
extra : source : 8e692344588a9b0155259d0d3fb1050b5f22230c
2015-11-20 22:39:58 -08:00
Kris Maglione
fa7cf1cebc Bug 1209184: Part 3 - [webext] Add tests for locale stream converter. r=billm
--HG--
extra : commitid : FqgRb3YgqJF
extra : rebase_source : e2be739f353d06c7e330011111071e370e1e59e0
extra : source : f9ab766896106b5718920a274ef4fe3605823b75
2015-11-28 01:00:57 -08:00
Phil Ringnalda
2ef1ebcef2 Back out 5 changesets (bug 1209184) on suspicion of causing OS X opt build startup cache precompilation failures
CLOSED TREE

Backed out changeset d0404928473e (bug 1209184)
Backed out changeset 24282235336d (bug 1209184)
Backed out changeset 399404ff25e4 (bug 1209184)
Backed out changeset a517959befe9 (bug 1209184)
Backed out changeset a4f1765a6cdf (bug 1209184)
2015-11-28 20:29:48 -08:00
Kris Maglione
bbfcb6bd68 Bug 1209184: Follow-up: Disable WebExtension xpcshell tests on Android and gonk. r=me
--HG--
extra : commitid : BAyWC1DtflD
extra : amend_source : 60f56b9557b55bc67189d52692311f1af309dfc5
2015-11-28 01:00:57 -08:00
Kris Maglione
0e62607b98 Bug 1209184: Part 4 - [webext] Add tests for CSS localization filters. r=billm
--HG--
extra : commitid : 7QQXwv6dFlO
extra : source : 8e692344588a9b0155259d0d3fb1050b5f22230c
extra : histedit_source : 8eaf0490a1f62b6379cdca19bdc5a415a4d5c3c8
2015-11-20 22:39:58 -08:00
Kris Maglione
63106cd553 Bug 1209184: Part 3 - [webext] Add tests for locale stream converter. r=billm
--HG--
extra : commitid : C6EPqRUd2zd
extra : source : f9ab766896106b5718920a274ef4fe3605823b75
extra : histedit_source : b8bc9c984956d543d935a0fc6db77875ac8680d5%2Ccd119681f1f3e43e22999fdb3eb2848f47962436
2015-11-27 23:02:41 -08:00
Phil Ringnalda
6c3da9ec36 Back out 4 changesets (bug 1209184) for Android/B2G xpcshell bustage
CLOSED TREE

Backed out changeset 8e692344588a (bug 1209184)
Backed out changeset f9ab76689610 (bug 1209184)
Backed out changeset 9c63ffd499eb (bug 1209184)
Backed out changeset e75f9f24d0dc (bug 1209184)
2015-11-27 22:40:54 -08:00
Kris Maglione
29e0cf5229 Bug 1209184: Part 4 - [webext] Add tests for CSS localization filters. r=billm
--HG--
extra : commitid : I3iiuKUJqSF
extra : rebase_source : 652a56ec50167cf8283da80b45ba2f1bf709732d
2015-11-20 22:39:58 -08:00
Kris Maglione
2ee98de7f1 Bug 1209184: Part 3 - [webext] Add tests for locale stream converter. r=billm
--HG--
extra : commitid : 3k0QW6ROCfV
extra : rebase_source : 120500a612301055c4262644314420e2692c4627
2015-11-16 17:38:02 -08:00
jignesh
8095302fd7 Bug 1216704 - [webext] Fix incorrect parameter to getManifest in content scripts and test for the same. r=billm 2015-11-18 12:36:00 +01:00
Kris Maglione
3b218341fa Bug 1208761: [webext] Support l10n.getMessage in content scripts. r=billm
--HG--
extra : commitid : Iuj6mzu3KIU
extra : rebase_source : 08612b809866cf35057dc690bdf62dd74a330b46
2015-11-23 17:52:23 -08:00
Kris Maglione
74af7d53bc Bug 1226423: [webext] Add tests for API injection into background pages. r=billm
--HG--
extra : commitid : 70rSfBGK8XG
extra : rebase_source : 829a3f270e89f4a64262a5e5f4f5499ed3251424
2015-11-20 15:14:25 -08:00
Kris Maglione
76d1ae510c Bug 1221415: [webext] Improve error checking and Chrome-compatibility of i18n API. r=billm
--HG--
extra : commitid : 493PXRrLfdL
extra : rebase_source : 81a053d889e64e8f5685fe7f7a2a656c396807a0
2015-11-15 16:54:41 -08:00
Kris Maglione
9b2c61cbae Bug 1215893: [webext] Check capturing event listeners for the correct target. r=billm
--HG--
extra : commitid : IYgT9fAiHJX
extra : rebase_source : c672622b7f2e931ceab45b5569c9de0bfd40602a
2015-11-14 23:30:52 -08:00
Bill McCloskey
9c2a47898f Bug 1208874 - [webext] Generate an extension-specific UUID (r=kmag) 2015-11-12 08:19:45 -08:00
Bill McCloskey
e655ba59b5 Bug 1223589 - [webext] Implement getPlatformInfo (r=kmag) 2015-11-12 08:19:45 -08:00
Bill McCloskey
fd0aea8d56 Bug 1223585 - [webext] Annotate ignoreEvent (r=kmag) 2015-11-12 08:19:45 -08:00
Johann Hofmann
898c7be7cd Bug 1217886 - Implement chrome.storage.local.clear. r=wmccloskey 2015-11-04 22:29:31 +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
Luca Greco
bbaf1760b9 Bug 1214174 - Background window properties OOM exception test case. r=billm
--HG--
extra : histedit_source : bea04db0faf790982dc3e9e734576c6092956870
2015-10-26 05:03:00 -04:00
Blake Winton
1d02564612 Bug 1215130 - Use periodInMinutes as the default for delayInMinutes. r=billm
--HG--
extra : rebase_source : c44128cc99a168d38875b00ff3d26ec86696c295
2015-10-16 13:24:57 -04:00
Blake Winton
a2f5add6ab Bug 1215201 - Iterate through the elements of the alarmCallbacksMap. r=billm
--HG--
extra : rebase_source : 02eb8d5234688ccd99219a3c0a1a2c7b7a0aae74
2015-10-15 13:36:38 -04:00
Bill McCloskey
7c41291110 Bug 1212718 - [webext] Test for webRequest resource types (r=Mossop) 2015-10-12 20:04:21 -07:00
Bill McCloskey
c107fdc361 Bug 1212718 - [webext] Add onCompleted test (r=Mossop) 2015-10-12 20:03:48 -07:00
Bill McCloskey
bcd9fdf57f Bug 1212718 - [webext] Add test for onSendHeaders problem (r=Mossop) 2015-10-12 20:03:35 -07:00
Bill McCloskey
31df91c1aa Bug 1202897 - Switch all WebExtension tests to use generated zip files rather than files (r=gabor) 2015-10-12 16:19:50 -07:00
Tom Schuster
03a5c643c2 Bug 1208907 - [webext] Partially implement browser.bookmarks. r=billm f=mak 2015-10-11 16:41:21 +02:00
Jed Davis
faf361396a Bug 1201935 - Allow reading from TmpD in OS X content processes. r=smichaud
--HG--
extra : rebase_source : 68565c447e3731e9c562514e8355044cfd8c28b9
2015-10-07 13:41:00 +02:00
Luca Greco
8ee9792b23 Bug 1204583 - test connect params preprocess and fix raised invalid params error. r=billm
--HG--
extra : amend_source : 3b2fb8072db43c69795cc108aed5e3d9271a496f
2015-09-30 14:21:00 +02:00
Tom Schuster
b92934f1b1 Bug 1197417 - [webext] Tests for browser.cookies. r=billm 2015-10-02 16:36:05 +02:00
Bill McCloskey
330e587de8 Bug 1207911 - [webext] Fix races in webextension tests (r=gabor) 2015-09-27 12:29:40 -07:00
Johann Hofmann
2f29357252 Bug 1204072 - Import runSafe in ext-{alarms,notifications} (r=billm) 2015-09-25 05:09:11 -07:00
Phil Ringnalda
971bca22ce Bug 1207911 - Disable webext tests on ASan builds for now
CLOSED TREE
2015-09-23 20:12:16 -07:00
Bill McCloskey
57f85fd841 Bug 1202481 - [webext] Fix browser.runtime.onMessage reply handling (r=gabor) 2015-09-23 17:18:34 -07:00
Bill McCloskey
4dc14af3ea Bug 1202486 - [webext] Add test for browser.runtime.connect, fix a few bugs (r=gabor) 2015-09-23 17:18:33 -07:00
Bill McCloskey
88501da12a Bug 1197475 - [webext] Add test for browser.storage.local, fix a few bugs in it (r=gabor) 2015-09-23 17:18:30 -07:00
Bill McCloskey
22b5c13d6a Bug 1202501 - [webext] Clean up WebExtension tests (r=gabor)
--HG--
rename : browser/components/extensions/test/browser/browser_extensions_simple.js => browser/components/extensions/test/browser/browser_ext_simple.js
rename : toolkit/components/extensions/test/mochitest/file_contentscript_page1.html => toolkit/components/extensions/test/mochitest/file_sample.html
2015-09-23 17:18:28 -07:00
Bill McCloskey
9ff6da7c17 Bug 1199473 - [webext] Fix wrong parameter name for browser.extension.getURL (r=gabor) 2015-09-23 17:18:27 -07:00
Bill McCloskey
81c0830e51 No bug - Skip webextension tests for mulet 2015-09-23 17:18:25 -07:00
Phil Ringnalda
5b1ea9212a Backed out 12 changesets (bug 1202482, bug 1202483, bug 1202481, bug 1202486, bug 1202479, bug 1202478, bug 1197475, bug 1203331, bug 1139860, bug 1202501, bug 1199473, bug 1190662) for Mulet mochitest-5 timeouts
CLOSED TREE

Backed out changeset 6503123e95dd (bug 1139860)
Backed out changeset b83bc163064d (bug 1203331)
Backed out changeset 2f501bd57cd2 (bug 1202481)
Backed out changeset 37e6ac7beb42 (bug 1202486)
Backed out changeset f9b6e99e620e (bug 1202483)
Backed out changeset 466af9f9baee (bug 1202482)
Backed out changeset 6be690e265a2 (bug 1202479)
Backed out changeset 57ff88bfccf4 (bug 1197475)
Backed out changeset 7e8c04ff6049 (bug 1202478)
Backed out changeset 525227997274 (bug 1202501)
Backed out changeset da317cdb79d3 (bug 1199473)
Backed out changeset 73b8ddd6dac9 (bug 1190662)

--HG--
rename : browser/components/extensions/test/browser/browser_ext_simple.js => browser/components/extensions/test/browser/browser_extensions_simple.js
rename : toolkit/components/extensions/test/mochitest/file_sample.html => toolkit/components/extensions/test/mochitest/file_contentscript_page1.html
2015-09-22 19:29:51 -07:00
Bill McCloskey
5c9d5e6cbf Bug 1202481 - [webext] Fix browser.runtime.onMessage reply handling (r=gabor) 2015-09-22 16:09:23 -07:00
Bill McCloskey
bf67fee35a Bug 1202486 - [webext] Add test for browser.runtime.connect, fix a few bugs (r=gabor) 2015-09-22 16:09:22 -07:00
Bill McCloskey
eb18231fcc Bug 1197475 - [webext] Add test for browser.storage.local, fix a few bugs in it (r=gabor) 2015-09-22 16:09:21 -07:00
Bill McCloskey
fa351c11d6 Bug 1202501 - [webext] Clean up WebExtension tests (r=gabor)
--HG--
rename : browser/components/extensions/test/browser/browser_extensions_simple.js => browser/components/extensions/test/browser/browser_ext_simple.js
rename : toolkit/components/extensions/test/mochitest/file_contentscript_page1.html => toolkit/components/extensions/test/mochitest/file_sample.html
2015-09-22 16:09:20 -07:00
Bill McCloskey
dc51880f6b Bug 1199473 - [webext] Fix wrong parameter name for browser.extension.getURL (r=gabor) 2015-09-22 16:09:20 -07:00
Bill McCloskey
48a154e45c Bug 1201935 - Disable WebExtension tests on MacOS because sandbox breaks them 2015-09-04 09:45:03 -07:00
Bill McCloskey
5417189a5b Bug 1201377 - [webext] Nuke content script sandbox when page closes (r=gabor) 2015-09-04 09:45:02 -07:00
Bill McCloskey
828a74056a Bug 1199698 - [webext] Fix chrome.* from content scripts (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
d4c8e8942d Bug 1199800 - [webext] Allow extensions to be generated from JSON (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
1a7f006d5a Bug 1199800 - [webext] Refactoring to support using extensions from chrome tests (r=gabor) 2015-09-04 09:45:00 -07:00
Bill McCloskey
a60d7870e2 Bug 1197437 - [webext] Fix content script run_at parameter (r=gabor) 2015-09-04 09:44:59 -07:00
Carsten "Tomcat" Book
3145bc32e7 Backed out 11 changesets (bug 1201377, bug 1199800, bug 1197437, bug 1199832, bug 1199698, bug 1199842) for breaking browser_ext_tabs_executeScript.js test on a CLOSED TREE
Backed out changeset 8d8d73d3c3e1 (bug 1201377)
Backed out changeset 4ed8951e3f54 (bug 1199842)
Backed out changeset 5830178bc008 (bug 1199832)
Backed out changeset 4445c570fe49 (bug 1199698)
Backed out changeset 35fc1e25d167 (bug 1199800)
Backed out changeset 54c4c3bd2454 (bug 1199800)
Backed out changeset bd3112ce6b9b (bug 1199800)
Backed out changeset 701e56e18ca7 (bug 1199800)
Backed out changeset 4407d50a7995 (bug 1199800)
Backed out changeset af2fbe345712 (bug 1199800)
Backed out changeset 0a41d20fcf77 (bug 1197437)
2015-09-04 09:59:34 +02:00
Bill McCloskey
2a80660ea9 Bug 1201377 - [webext] Nuke content script sandbox when page closes (r=gabor) 2015-09-03 20:59:05 -07:00
Bill McCloskey
9ada7e9b9c Bug 1199698 - [webext] Fix chrome.* from content scripts (r=gabor) 2015-09-03 20:59:04 -07:00
Bill McCloskey
bc0c23104b Bug 1199800 - [webext] Allow extensions to be generated from JSON (r=gabor) 2015-09-03 20:59:03 -07:00
Bill McCloskey
e416c237da Bug 1199800 - [webext] Refactoring to support using extensions from chrome tests (r=gabor) 2015-09-03 20:59:01 -07:00
Bill McCloskey
a9349e7383 Bug 1197437 - [webext] Fix content script run_at parameter (r=gabor) 2015-09-03 20:59:01 -07:00
Ryan VanderMeulen
b322af2f98 Bug 1197507 - Skip the WebExtensions tests on B2G due to being perma-timeout and Android already being skipped. 2015-08-25 21:24:03 -04:00
Bill McCloskey
aca8c8dcf3 Bug 1197507 - [webext] Add WebExtension webRequest.* tests (r=gabor,bholley) 2015-08-25 15:14:11 -07:00
Bill McCloskey
2beffb2bfc Bug 1197507 - [webext] Add initial WebExtension tests (r=gabor,bholley) 2015-08-25 15:14:10 -07:00