Kris Maglione
da08b6926c
Bug 1317697: Remove things from ExtensionUtils that don't belong there. r=mixedpuppy
...
MozReview-Commit-ID: CTX0TckLqoV
2017-04-07 13:39:06 -07:00
Florian Queze
aca1103c68
Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws.
2017-04-14 21:51:39 +02:00
Sebastian Hengst
4189eac09e
Backed out changeset e1f191aad863 (bug 1356569)
2017-04-14 23:39:17 +02:00
Florian Queze
6c119a88d3
Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws.
2017-04-14 21:51:39 +02:00
Kris Maglione
937291f42b
Bug 1350522: Part 4 - Convert browser APIs to lazy loading. r=aswan
...
MozReview-Commit-ID: BQoWF9nHOuF
2017-04-02 11:59:55 -07:00
Kris Maglione
bbe2608ca7
Bug 1260548: Part 1 - Factor out the common functionality of the tabs API. r=aswan
...
MozReview-Commit-ID: AS7asn6nXzr
2017-01-30 22:44:16 -08:00
Andrew Swan
d23b45b581
Bug 1203330 Part 2 Convert EventManager uses to SingletonEventManager r=kmag
...
MozReview-Commit-ID: A12TPwAYzTS
2017-01-26 11:27:03 -08:00
Phil Ringnalda
5781d2a09e
Backed out 3 changesets (bug 1203330) for failures in test_delay_update_webextension.js
...
CLOSED TREE
Backed out changeset 2d42350d209a (bug 1203330)
Backed out changeset 3a12c51c3eca (bug 1203330)
Backed out changeset 31fac390e15d (bug 1203330)
2017-01-26 19:13:11 -08:00
Andrew Swan
99c8d3a692
Bug 1203330 Part 2 Convert EventManager uses to SingletonEventManager r=kmag
...
MozReview-Commit-ID: A12TPwAYzTS
2017-01-26 11:27:03 -08:00
Florian Quèze
91f7a2ef3a
Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws.
2017-01-25 07:01:52 +01:00
Andy McKay
74f01271a8
bug 1307012 raise an error on invalid id r=kmag
...
MozReview-Commit-ID: FDdPzmtN2mq
2016-12-08 08:09:08 -10:00
Eric Rahm
965e3eada3
Bug 1312901 - Part 2: Use nsIArray for URL argument when opening a window. r=Gijs
...
This updates the URL argument to use an nsIMutableArray instead of an nsIArray.
MozReview-Commit-ID: 45kvKCBYNK6
2016-10-27 14:22:14 -07:00
Dave Townsend
7ef7234b4b
Bug 1312055: Fix various eslint errors. r=standard8
...
MozReview-Commit-ID: 2XbldhBnofs
2016-10-21 10:03:51 -07:00
Tomislav Jovanovic
d6d743d109
bug 1290057 - fire onFocusChanged when Firefox loses/gains focus r=kmag
...
MozReview-Commit-ID: 7OdyglGjnFQ
2016-10-14 05:38:34 +02:00
Eric Rahm
544eabdb4d
Bug 1311223 - Stop using nsISupportsArray for window args. r=froydnj
...
WindowWatcher allows for either nsIArray or nsISupports array to be passed in
for the arguments param. This converts all internal usage to nsIArray.
MozReview-Commit-ID: DQjtIkobik0
2016-10-19 16:23:57 -07:00
Tomislav Jovanovic
1346509ec7
bug 1273146 - populate tabs in windows.create() return value r=kmag
...
MozReview-Commit-ID: 5dnnSdXrsaJ
2016-10-09 02:11:25 +02:00
Tomislav Jovanovic
d2118d8126
bug 1301227 - add allowScriptsToClose option to windows.create(), r=kmag
...
MozReview-Commit-ID: 4p8A1y2FALX
2016-09-23 23:40:24 +02:00
Rob Wu
812e170fe8
Bug 1287010 - Make environment of Context explicit. r=billm
...
- Add `envType` to BaseContext.
- Pass an explicit envType to all `registerSchemaAPI` invocations.
- The factories passed to `registerSchemaAPI` will be split up later, so
that content scripts (`content_child`) and addon pages can share
common implementations.
- The factories that implement the addon API will also be split up,
to separate code running in the main process (`addon_parent`) from
code running in a child process (`addon_child`).
- Remove the use of a hardcoded list of `namespaces` from ProxyContext.
Now `envType` is used to specify whether an API should be activated.
MozReview-Commit-ID: Jiff8HIwG92
2016-08-16 15:51:50 -07:00
Rob Wu
6efdd88867
Bug 1295082 - Put Extension in BaseContext r=kmag
...
ExtensionContext in Extension.jsm has |extension| as an instance member,
so use it instead of passing |extension| to registerSchemaAPI's
callback.
And to make sure that this pattern also works in content processes, move
the |extension| member to BaseContext.
MozReview-Commit-ID: BgsGGCPQxJR
2016-08-15 01:04:58 -07:00
Sebastian Hengst
c7a498ffbd
Backed out changeset 0ce1cc39aa3d (bug 1295082) for timing out in test_ext_schemas_api_injection.js. r=backout
2016-08-18 16:47:09 +02:00
Rob Wu
6189daa99f
Bug 1295082 - Put Extension in BaseContext r=kmag
...
ExtensionContext in Extension.jsm has |extension| as an instance member,
so use it instead of passing |extension| to registerSchemaAPI's
callback.
And to make sure that this pattern also works in content processes, move
the |extension| member to BaseContext.
MozReview-Commit-ID: BgsGGCPQxJR
2016-08-15 01:04:58 -07:00
Kris Maglione
3531e0dc55
Bug 1225215: [webext] Raise the expected errors when given invalid tab IDs. r=aswan
...
MozReview-Commit-ID: E5G0GmVhzLh
2016-02-26 17:56:30 -08:00
Kris Maglione
843973aa31
Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
...
MozReview-Commit-ID: 8m7wJrAbFwS
2016-06-09 17:44:47 -07:00
Sebastian Hengst
d97f588f03
Backed out changeset a00cf073f5c0 (bug 1279392) for failing mochitest test_ext_contentscript_create_iframe.html at least on Linux x64 opt. r=backout
2016-06-14 13:37:52 +02:00
Kris Maglione
b2a33e3bf1
Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
...
MozReview-Commit-ID: 8m7wJrAbFwS
2016-06-09 17:44:47 -07:00
Bob Silverberg
8727da3b55
Bug 1262976 - browser.windows.onFocusChanged sometimes fires twice, even after the event listener is removed, r=kmag
...
MozReview-Commit-ID: 4wfFjPBn7zJ
2016-04-08 09:46:45 -04:00
Kris Maglione
5f2e76443b
Bug 1253133: [webext] Support changing window geometry via windows.update. r=aswan
...
MozReview-Commit-ID: LQGXyB9WuiI
2016-03-22 23:13:11 +01:00
Tom Schuster
45bf54777a
Bug 1253134 - Support drawAttention in browser.windows.update. r=kmag
2016-03-17 12:59:11 +01:00
Tom Schuster
4fc3d6c738
Backed out changeset 41042ab2e4bc (wrong patch)
2016-03-16 15:02:26 +01:00
Tom Schuster
4dc4b4f41d
Bug 1223634 - Support exclude_globs/include_globs in webext manifests. r=kmag
2016-03-16 14:59:20 +01:00
Kris Maglione
be45cc1d06
Bug 1253128: [webext] Support type=popup in the browser.windows API. r=billm
...
MozReview-Commit-ID: ALgprY2w7w9
2016-03-03 18:44:18 -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
9a6052d7ca
Bug 1247493: [webext] Implement the tabId property of windows.create. r=billm
...
MozReview-Commit-ID: Jw4KvvUqkBh
2016-02-17 11:46:19 -08:00
Wes Kocher
16896018ab
Backed out changeset cf766413a25e (bug 1247493) for failures in browser_ext_tabs_update.js
2016-02-17 14:30:53 -08:00
Kris Maglione
aab3c1ded2
Bug 1247493: [webext] Implement the tabId property of windows.create. r=billm
...
MozReview-Commit-ID: Jw4KvvUqkBh
2016-02-17 11:46:19 -08:00
Kris Maglione
c20aca6ab3
Bug 1234020: Part 2k - [webext] Return promises from the windows API. r=rpl
2016-02-01 18:28:00 -08:00
Kris Maglione
ef4d15a0eb
Bug 1229874: Support defineLazyServiceGetter in components-import eslint helper. r=miker
2015-12-02 16:49:50 -08:00
Bill McCloskey
88a32fbdba
Bug 1208257 - [webext] windows.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
Bill McCloskey
948f074381
Bug 1223585 - [webext] Annotate ignoreEvent (r=kmag)
2015-11-12 08:19:45 -08: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
Christoph Kerschbaumer
21dba02c52
Bug 1204983 - Deprecate NewTabURL and forward calls to AboutNewTabService (r=florian,olivier)
...
* * *
Bug 1204983 - Replace NewTabURL.jsm with simpleBrowserServices.js (r=florian)
2015-10-19 13:29:33 -07:00
Wes Kocher
8b80c319c8
Backed out 3 changesets (bug 1204983) for various talos failures
...
Backed out changeset 5bdf50e82ca8 (bug 1204983)
Backed out changeset 602e91d48e43 (bug 1204983)
Backed out changeset c7d3635f771a (bug 1204983)
2015-10-16 09:29:36 -07:00
Christoph Kerschbaumer
5137728030
Bug 1204983 - Deprecate NewTabURL and forward calls to AboutNewTabService (r=florian,olivier)
...
* * *
Bug 1204983 - Replace NewTabURL.jsm with simpleBrowserServices.js (r=florian)
2015-10-16 06:54:42 -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
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
136c455ba2
Bug 1202479 - [webext] Implement "current window" support in browser.{windows,tabs} (r=gabor)
2015-09-22 16:09:21 -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
Edgar Chen
b00ed31bb6
Bug 1202532 - The callback argument of windows.update() is optional. r=billm
2015-09-07 18:55:00 +08:00