Commit Graph

206 Commits

Author SHA1 Message Date
Kris Maglione
666cee3637 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
Luca Greco
171f767c3c Bug 1190685 - [webext] Implements webNavigation.getFrame/getAllFrames API methods. r=kmag 2016-02-08 18:30:48 +01:00
Kris Maglione
d70aaf9205 Bug 1231819: [webext] Implement the captureVisibleTab API. r=billm 2016-01-25 17:48:54 -08:00
Kris Maglione
cb2bf096f9 Bug 1190680: Part 2 - [webext] Add initial support for lastError callbacks. r=billm 2016-01-29 18:38:08 -08:00
Kris Maglione
47d18c471a Bug 1190680: Part 1 - [webext] Factor common extension context logic into a shared base class. r=billm 2016-01-29 18:39:29 -08:00
Luca Greco
795f912e2d Bug 1242752 - Fix exception raised when a WebExtension iframe is destroyed. r=kmag 2016-01-26 13:30:17 +01:00
Kris Maglione
f7fb9d596b Bug 1210583: Part 2 - [webext] Support callbacks in tabs.executeScript/tabs.insertCSS. r=billm 2016-01-25 20:25:11 -08:00
Kris Maglione
b0279e6f59 Bug 1210583: Part 1 - [webext] Add support for cross-process messaging with async responses. r=billm 2016-01-27 12:57:21 -08:00
Luca Greco
e712f0a1a8 Bug 1214658 - Enable content script APIs into sub-frames pointed to a valid add-on url. r=kmag 2016-01-22 06:02:00 -05:00
Phil Ringnalda
ded78a88c1 Back out 3 changesets (bug 1214658) for b2g emulator timeouts in test_ext_contentscript_*
CLOSED TREE

Backed out changeset b76ab3324cd2 (bug 1214658)
Backed out changeset aee8341f15c7 (bug 1214658)
Backed out changeset 743d7567b280 (bug 1214658)
2016-01-23 13:06:49 -08:00
Luca Greco
a63e68c208 Bug 1214658 - Enable content script APIs into sub-frames pointed to a valid add-on url. r=kmag 2016-01-22 06:02:00 -05:00
Fabrice Desré
a9e4990d14 Bug 1224703 - part 2: Enable tests on emulator r=billm 2016-01-05 15:37:06 -08:00
Bill McCloskey
74fc2770d5 Bug 1205886 - [webext] Allow content scripts to do cross-origin XHRs if they have permission (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
994bef148c Bug 1228044 - [webext] Filter messages between extensions (r=kmag) 2015-12-23 12:29:39 -08:00
Kris Maglione
956fe582d0 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.
2015-12-02 16:58:53 -08:00
Kris Maglione
342e9bd17c Bug 1193837: Part 2 - [webext] Enforce host matching and load URI restrictions on tabs.executeScript and insertCSS. r=billm 2015-12-01 20:32:18 -08:00
Wes Kocher
4e87701a29 Backed out 2 changesets (bug 1193837) because the web extension tests are failing CLOSED TREE
Backed out changeset ebe2433705a5 (bug 1193837)
Backed out changeset c3307a5ac126 (bug 1193837)
2015-12-02 13:23:18 -08:00
Kris Maglione
b2dfad4ce8 Bug 1193837: Part 2 - [webext] Enforce host matching and load URI restrictions on tabs.executeScript and insertCSS. r=billm 2015-12-01 20:32:18 -08:00
jignesh
a99e78f4f6 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
722cf7262d Bug 1208761: [webext] Support l10n.getMessage in content scripts. r=billm 2015-11-23 17:52:23 -08:00
Kris Maglione
55f968e981 Bug 1209184: Part 1a - [webext] Make localization work in content processes. r=billm 2015-11-21 12:07:14 -08:00
Kris Maglione
9ab3082ad4 Bug 1215893: [webext] Check capturing event listeners for the correct target. r=billm 2015-11-14 23:30:52 -08:00
Kris Maglione
314e0a9694 Bug 1224961: Remove non-standard JS features from WebExtension code 2015-11-02 18:09:09 -08:00
Bill McCloskey
948f074381 Bug 1223585 - [webext] Annotate ignoreEvent (r=kmag) 2015-11-12 08:19:45 -08:00
Bill McCloskey
98a92be943 Bug 1191557 - User inner-window-destroyed notification (r=kmag) 2015-11-04 13:40:15 -08:00
Bobby Holley
cc1ac7faa2 Bug 1198934 - Mark WebExtensions content script sandboxes as such. r=billm 2015-10-14 16:57:51 -07:00
Bill McCloskey
53ba768590 Bug 1202481 - [webext] Fix browser.runtime.onMessage reply handling (r=gabor) 2015-09-23 17:18:34 -07:00
Bill McCloskey
6567491b58 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
9b6ceea392 Bug 1202478 - [webext] Run WebExtension callbacks asynchronously (r=gabor) 2015-09-23 17:18:29 -07:00
Bill McCloskey
23405e5ea8 Bug 1202501 - [webext] Clean up WebExtension tests (r=gabor) 2015-09-23 17:18:28 -07:00
Bill McCloskey
764ae2a899 Bug 1199473 - [webext] Fix wrong parameter name for browser.extension.getURL (r=gabor) 2015-09-23 17:18:27 -07:00
Phil Ringnalda
aaf72d29b9 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)
2015-09-22 19:29:51 -07:00
Bill McCloskey
fbb4583508 Bug 1202481 - [webext] Fix browser.runtime.onMessage reply handling (r=gabor) 2015-09-22 16:09:23 -07:00
Bill McCloskey
21c214de21 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
0f033b5f70 Bug 1202478 - [webext] Run WebExtension callbacks asynchronously (r=gabor) 2015-09-22 16:09:21 -07:00
Bill McCloskey
5e8d8d8155 Bug 1202501 - [webext] Clean up WebExtension tests (r=gabor) 2015-09-22 16:09:20 -07:00
Bill McCloskey
47a04abcb1 Bug 1199473 - [webext] Fix wrong parameter name for browser.extension.getURL (r=gabor) 2015-09-22 16:09:20 -07:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Bill McCloskey
2decbdaa54 Bug 1201377 - [webext] Nuke content script sandbox when page closes (r=gabor) 2015-09-04 09:45:02 -07:00
Bill McCloskey
75c8de9239 Bug 1199832 - [webext] browser.tabs.executeScript must create a context (r=gabor) 2015-09-04 09:45:02 -07:00
Bill McCloskey
28b13b735b Bug 1199698 - [webext] Fix chrome.* from content scripts (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
69388b1d70 Bug 1199800 - [webext] Allow extensions to be generated from JSON (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
a5229b3d08 Bug 1197437 - [webext] Fix content script run_at parameter (r=gabor) 2015-09-04 09:44:59 -07:00
Carsten "Tomcat" Book
ebb221ac2d 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
f369ddc004 Bug 1201377 - [webext] Nuke content script sandbox when page closes (r=gabor) 2015-09-03 20:59:05 -07:00
Bill McCloskey
394eb56a56 Bug 1199832 - [webext] browser.tabs.executeScript must create a context (r=gabor) 2015-09-03 20:59:04 -07:00
Bill McCloskey
92e2d78722 Bug 1199698 - [webext] Fix chrome.* from content scripts (r=gabor) 2015-09-03 20:59:04 -07:00
Bill McCloskey
d77e121881 Bug 1199800 - [webext] Allow extensions to be generated from JSON (r=gabor) 2015-09-03 20:59:03 -07:00
Bill McCloskey
3752887da5 Bug 1197437 - [webext] Fix content script run_at parameter (r=gabor) 2015-09-03 20:59:01 -07:00
Bill McCloskey
e10b007442 Bug 1197507 - [webext] Alias browser.* and chrome.* (r=gabor) 2015-08-25 15:14:10 -07:00