Commit Graph

112 Commits

Author SHA1 Message Date
Bill McCloskey
21d9408694 Bug 1197346 - Rename ExtensionPage to ExtensionContext (r=kmag) 2016-04-23 20:04:29 -07:00
Sebastian Hengst
865d50e126 Backed out changeset 562dbcad5a6e (bug 1245355) for leaking windows and a docshell in its new test browser_ext_tabs_getAllInWindow.js. r=backout 2016-03-16 19:19:41 +01:00
Matthew Wein
91fecea3a3 Bug 1245355 - Add a unit test for tabs.getAllInWindow r=kmag
MozReview-Commit-ID: 5wVRCLdCuq9
2016-03-15 12:01:40 +01:00
Kris Maglione
e0795d5219 Bug 1220154, 1249830: Handle sendMessage replies with 0 and >1 listeners correctly. r=billm
MozReview-Commit-ID: 7lE7RaJcl7n
2016-03-04 15:40:56 -08:00
Kris Maglione
35884ee2a7 Bug 1253132: [webext] Support window states in browser.windows APIs. r=billm
MozReview-Commit-ID: LIw6swRAB3h
2016-03-05 09:59:35 -08:00
Kris Maglione
d7334ea44a Bug 1248499: [webext] Implement tabs.detectLanguage. r=billm
MozReview-Commit-ID: F4GpSesj2ho
2016-02-26 13:20:28 -08:00
Andy McKay
66ac63cf1a Bug 1248460 - pin during SSTabRestoring. r=kmag
MozReview-Commit-ID: A88UnreihK7
2016-02-29 13:45:36 -08:00
Matthew Wein
52d1cd6bcd Bug 1220124 - Add support for chrome.tabs.onhighlight. r=kmag
MozReview-Commit-ID: BB6vJl8qV4l
2016-02-07 18:35:22 -08:00
Kris Maglione
55354c26e2 Bug 1213993: [webext] Support frameId/allFrames/runAt in browser.tabs.executeScript and insertCSS. r=billm
MozReview-Commit-ID: FgV9vyHVjj8
2016-02-08 17:40:02 -08:00
Luca Greco
fc3ac46ddc Bug 1227462 - tabs.create and tabs.update should check URLs using checkLoadURL. r=kmag
MozReview-Commit-ID: EKFRpoSuXrF
2016-02-25 18:13:59 +01:00
Kris Maglione
8a6a9a1582 Bug 1238313: Part 1 - Implement tabs.onMoved event. r=billm
MozReview-Commit-ID: F2GoU1fzj4s
2016-02-11 14:32:58 -08:00
Kris Maglione
852f68eea9 Bug 1234086: [webext] Add support for tabs.onAttached/onDetached events. r=billm
MozReview-Commit-ID: 4Kk1mTdGflI
2016-02-17 11:52:33 -08:00
Wes Kocher
50a6c0c612 Backed out changeset 5ec466af51e1 (bug 1234086) for failures in browser_ext_tabs_update.js 2016-02-17 14:31:04 -08:00
Wes Kocher
a19d946aed Backed out changeset c893cd374dcd (bug 1238313) 2016-02-17 14:30:56 -08:00
Kris Maglione
6ff4ef3207 Bug 1238313: Part 1 - Implement tabs.onMoved event. r=billm
MozReview-Commit-ID: F2GoU1fzj4s
2016-02-11 14:32:58 -08:00
Kris Maglione
85151958d9 Bug 1234086: [webext] Add support for tabs.onAttached/onDetached events. r=billm
MozReview-Commit-ID: 4Kk1mTdGflI
2016-02-17 11:52:33 -08:00
Andy McKay
102661d869 Bug 1238312 - implement tabs.duplicate. r=kmag
MozReview-Commit-ID: Fzd6BuAEgSl
2016-02-12 15:38:55 -08:00
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
Kris Maglione
c741b1621b Bug 1235571: Add an adoptTab method to <tabbrowser> and remove duplicated code. r=billm 2016-02-10 15:27:08 -08:00
Kris Maglione
5b7fc951d6 Bug 1234020: Part 2j - [webext] Return promises from the tabs API. r=rpl 2016-02-05 18:50:58 -08:00
Matthew Wein
a4b5f1da36 Bug 1242588 fix how tab.create handles missing URLs. r=kmag 2016-01-30 17:09:49 -08:00
Kris Maglione
d70aaf9205 Bug 1231819: [webext] Implement the captureVisibleTab API. r=billm 2016-01-25 17:48:54 -08:00
Kris Maglione
c71b8aa2e6 Bug 1234020: Part 1 - [webext] Add initial binding-level promise<->callback support. r=billm 2016-02-01 19:20:13 -08:00
Matthew Wein
9db303e40d Bug 1234308 - Fix tabs.onCreated callback to receive bare tabs object (bug 1234308); r=kmag 2016-01-27 16:33:32 -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
ce0d04043d Bug 1238311: Part 3 - [webext] Add audible and muted support to browser.tabs API. r=gabor 2016-01-26 17:06:41 -08: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
Kris Maglione
284d8ac3d9 Bug 1233326: [webext] Fix default value handling for tabs.create, and add missing tests. r=billm 2016-01-05 19:06:44 -08:00
Kris Maglione
0ed3771d59 Bug 1214007: Follow-up: Fix ESLint errors. r=trivial 2016-01-05 15:10:39 -08:00
Andy McKay
540483a6ea Bug 1214007 - Implement chrome.tabs.move. r=billm 2015-12-23 17:04:23 -08:00
Kris Maglione
ef4d15a0eb Bug 1229874: Support defineLazyServiceGetter in components-import eslint helper. r=miker 2015-12-02 16:49:50 -08:00
Felipe Gomes
8ff5f8cd13 Bug 1231728 - Fixes some code to follow eslint rules. r=mak 2015-12-10 14:38:30 -05: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
6150af18a3 Bug 1190688: Part 1 - [webext] Implement the activeTab permission. r=billm 2015-12-01 20:37:41 -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
e524414d82 Bug 1190688: Part 1 - [webext] Implement the activeTab permission. r=billm 2015-12-01 20:37:41 -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
Bill McCloskey
948f074381 Bug 1223585 - [webext] Annotate ignoreEvent (r=kmag) 2015-11-12 08:19:45 -08: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
338b11ce6f Bug 1213975 - fix WebExtension tabs.onUpdated cleanup on context close. r=billm 2015-10-26 04:56:00 +01:00
Luca Greco
dc5ec0f0a0 Bug 1213975 - filter out from WebExtension tabs.onUpdated events any location changes related to iframes. r=billm 2015-10-26 04:55:00 +01:00
Luca Greco
daf352ef72 Bug 1213975 - WebExtension tab update events about location url change should contain status info. 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
Christoph Kerschbaumer
cdf56f7eb2 Bug 1204983 - Deprecate NewTabURL and forward calls to AboutNewTabService (r=florian,olivier) 2015-10-20 18:51:25 -07:00
Wes Kocher
71442eb6eb Backed out 3 changesets (bug 1204983) for talos(g2) failures
Backed out changeset 00c07b02c8a8 (bug 1204983)
Backed out changeset a4879b180d2d (bug 1204983)
Backed out changeset 38b6f878608a (bug 1204983)
2015-10-19 16:09:33 -07:00