Commit Graph

860 Commits

Author SHA1 Message Date
Bill McCloskey
7961c6b051 Bug 1208257 - [webext] Fix failing test 2015-12-06 11:01:20 -08:00
Bill McCloskey
0553f0441b Bug 1208257 - [webext] tabs.json (r=kmag) 2015-12-06 08:50:24 -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
fd3a0f256b Bug 1190688: Part 2 - [webext] Add tests for executeScript permission checks. r=billm 2015-12-02 15:07:02 -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
Wes Kocher
599a235cc8 Backed out 2 changesets (bug 1190688) for browser_ext_tabs_executeScript.js permatimeouts
Backed out changeset 1d5e9f3d094d (bug 1190688)
Backed out changeset 4a10c564dfca (bug 1190688)
2015-12-02 11:22:31 -08:00
Kris Maglione
1b04c912a2 Bug 1190688: Part 2 - [webext] Add tests for executeScript permission checks. r=billm 2015-12-01 20:47:08 -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
Kris Maglione
e478bde6cf Bug 1212890: [webext] Implement browser.tabs.getCurrent. r=gabor 2015-11-24 19:04:00 -08:00
Johann Hofmann
b377f73bb9 Bug 1200674 - Allow flexible icon sizes in ExtensionUtils. r=dtownsend 2015-11-24 18:20:26 +01:00
Kris Maglione
d07aba89a3 Bug 1226423: [wbext] Add tests for panel popup API injection. r=billm 2015-11-20 15:16:31 -08:00
Kris Maglione
ad208e75ad Bug 1218443: [webext] Fix some instances of window listeners not being added correctly. r=billm 2015-11-15 19:34:09 -08:00
Phil Ringnalda
bba6e7ee2d Back out 6fa3b2df62cc (bug 1218443) for browser_ext_pageAction_context.js leaks
CLOSED TREE
2015-11-17 22:38:20 -08:00
Kris Maglione
790da7e8ce Bug 1218443: [webext] Fix some instances of window listeners not being added correctly. r=billm 2015-11-15 19:34:09 -08:00
Kris Maglione
702ff845d6 Bug 1190321: [webext] Complete test coverage for the browserAction API. r=gabor 2015-11-15 02:01:44 -08:00
Kris Maglione
8da8fb891a Bug 1213433: [webext] Add enable and disable methods to browserAction API. r=gabor 2015-10-28 02:27:29 -07:00
Edgar Chen
af73cfe4a9 Bug 1205221 - Fix chrome.tabs.onUpdate event doesn't be fired correctly when tab's attribute is changed. r=billm 2015-09-15 14:06:51 +08:00
Luca Greco
cf2e124412 Bug 1213975 - add WebExtension tabs.onUpdated test case. r=billm 2015-10-26 04:54:00 +01:00
Johann Hofmann
e2e3cfb3ca Bug 1198405 - Use MatchPattern to match URLs in tabs.query. r=billm 2015-10-19 12:29:29 +02:00
Kris Maglione
77e7b3517a Bug 1197422 - Part 3: [webext] Update browserAction API to use the same context tracking code as pageAction. r=billm 2015-10-15 15:14:49 -07:00
Kris Maglione
118cdecae1 Bug 1197422 - Part 2: [webext] Implement the pageAction API. r=billm ui-r=bwinton 2015-10-15 15:15:04 -07:00
Luca Greco
60ae996521 Bug 1214040 - WebExtension tabs.sendMessage should not raise an exception on unexistent tabId. r=billm 2015-10-16 03:31:00 -04:00
Bill McCloskey
a672b4fba3 Bug 1202897 - Switch all WebExtension tests to use generated zip files rather than files (r=gabor) 2015-10-12 16:19:50 -07:00
Jed Davis
d19e615ca4 Bug 1201935 - Allow reading from TmpD in OS X content processes. r=smichaud 2015-10-07 13:41:00 +02:00
Carsten "Tomcat" Book
036e6d2fa3 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
Carsten "Tomcat" Book
12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Wes Kocher
1f5b59bcd7 Merge m-c to inbound, a=merge CLOSED TREE 2015-10-05 13:11:26 -07:00
Gabor Krizsanits
7f437e03aa Bug 1190667 - WEAPI contextMenus. r=billm 2015-10-05 17:48:08 +02:00
Luca Greco
f406a65dad Bug 1204583 - Implement WebExtension runtime.connect for background and tab. r=billm,gabor 2015-09-26 09:22:00 +02:00
Bill McCloskey
68b5caaeb2 Bug 1207911 - [webext] Fix races in webextension tests (r=gabor) 2015-09-27 12:29:40 -07:00
Luca Greco
86a9ce2b8c Bug 1204575 - Test case for fix WebExtension EventManager fireFunc registering. r=billm r=gabor 2015-09-25 04:35:00 +02:00
Bill McCloskey
7f8402f7d9 Bug 1202483 - [webext] Support ImageData for browser.browserAction.setIcon (r=gabor) 2015-09-23 17:18:32 -07:00
Bill McCloskey
9ee3e18ea6 Bug 1202482 - [webext] Implement browser.extension.getViews (r=gabor) 2015-09-23 17:18:32 -07:00
Bill McCloskey
3c3fcf404c Bug 1202479 - [webext] Implement "current window" support in browser.{windows,tabs} (r=gabor) 2015-09-23 17:18:31 -07:00
Bill McCloskey
23405e5ea8 Bug 1202501 - [webext] Clean up WebExtension tests (r=gabor) 2015-09-23 17:18:28 -07:00
Bill McCloskey
70ffec68ff Bug 1190662 - [webext] Browser action popup HTML should be reloaded each time popup is opened (r=gabor) 2015-09-23 17:18:26 -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
83913dc259 Bug 1202483 - [webext] Support ImageData for browser.browserAction.setIcon (r=gabor) 2015-09-22 16:09:22 -07:00
Bill McCloskey
9cc92b4728 Bug 1202482 - [webext] Implement browser.extension.getViews (r=gabor) 2015-09-22 16:09:22 -07:00
Bill McCloskey
136c455ba2 Bug 1202479 - [webext] Implement "current window" support in browser.{windows,tabs} (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
e15f883a0d Bug 1190662 - [webext] Browser action popup HTML should be reloaded each time popup is opened (r=gabor) 2015-09-22 16:09:20 -07:00
Edgar Chen
b00ed31bb6 Bug 1202532 - The callback argument of windows.update() is optional. r=billm 2015-09-07 18:55:00 +08:00
Bill McCloskey
bbe1c73225 Bug 1201935 - Disable WebExtension tests on MacOS because sandbox breaks them 2015-09-04 09:45:03 -07:00
Bill McCloskey
3bb59f4f19 Bug 1199842 - [webext] Add missing XUL_NS variable for browser_action (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
b48749a544 Bug 1199800 - [webext] Adding browser.tabs.update test (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
55f22cdc37 Bug 1199800 - [webext] Add browser_tabs_query.js test (r=gabor) 2015-09-04 09:45:01 -07:00