Kris Maglione
701fb54270
Bug 1387907: Part 3 - Merge ext-browser.js and ext-utils.js. r=mixedpuppy
...
MozReview-Commit-ID: CmOax5b5Gki
--HG--
extra : rebase_source : d0200575bfe49607f277cef5aea3da920852fd45
2017-08-06 18:20:25 -07:00
Kris Maglione
f87ef7bd44
Remove unused lazy imports. r=trivial (no bug)
...
MozReview-Commit-ID: rqUFJw7Wsb
--HG--
extra : rebase_source : cdda5d87fe33bdb9dacc1846fd67f3cb4154f230
2017-08-02 21:09:38 -07:00
Bob Silverberg
456985f68e
Bug 1333376 - Support reading the title and setting the title preface of a Window object, r=aswan
...
Implements a title property on the Window object, and allows for a titlePreface to be set
both via windows.create and via windows.update.
MozReview-Commit-ID: CaWwPN0utzs
--HG--
extra : rebase_source : 20d4310063bc37fccb1a1fe68b5d67ec2cc0e433
2017-07-05 16:53:10 -04:00
Andrew Swan
c29de224fb
Bug 1369577 Part 1 Rename SingletonEventManager to EventManager r=kmag
...
MozReview-Commit-ID: 7nsYWdSTJCG
--HG--
extra : rebase_source : 7afd89a9a1853d51bd31196bb2faa7e0d786043c
2017-06-09 13:49:07 -07:00
Sebastian Hengst
6d1aee1b24
Backed out changeset 26fd6d0a1254 (bug 1369577) for failing xpcshell's test_ext_simple.js and test_ext_startup_cache.js on Android. r=backout
2017-06-30 01:01:13 +02:00
Andrew Swan
c60b71854e
Bug 1369577 Part 1 Rename SingletonEventManager to EventManager r=kmag
...
MozReview-Commit-ID: 7nsYWdSTJCG
--HG--
extra : rebase_source : 22cf5ee36dfa27e121a5c577bce2fd0189ccb164
2017-06-09 13:49:07 -07:00
Bob Silverberg
460568b25e
Bug 1374237 - Part 3: Declare all top-level functions in browser API files files via const., r=mixedpuppy
...
Also changed some function names to attempt to guarantee uniqueness across API files.
MozReview-Commit-ID: FU5JU1lRHzn
--HG--
extra : rebase_source : 4fdda100649f1bf604f6d5445aa04ce561859964
2017-06-21 16:13:00 -04:00
Mark Banner
403075400a
Bug 1371292 - Clean up more ESLint global definitions in configuration files in toolkit/ and browser/. r=mossop
...
MozReview-Commit-ID: 5KC23kzaCFN
--HG--
extra : rebase_source : 6a7541b5ffe85d275bc16194c155ad43f93d52ae
2017-06-08 10:59:12 +01:00
Kris Maglione
b13ea15e1c
Bug 1317697: Remove things from ExtensionUtils that don't belong there. r=mixedpuppy
...
MozReview-Commit-ID: CTX0TckLqoV
--HG--
extra : rebase_source : ebea9b6f0f17a29d331851a08e025cbd04f4d02b
extra : absorb_source : 70b120f39e9307c4b2ef66d8e776e8b832b4aab8
2017-04-07 13:39:06 -07:00
Florian Queze
37f2343b9a
Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws.
2017-04-14 21:51:39 +02:00
Sebastian Hengst
9e0ecf32c5
Backed out changeset e1f191aad863 (bug 1356569)
2017-04-14 23:39:17 +02:00
Florian Queze
93a734a3ce
Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws.
2017-04-14 21:51:39 +02:00
Kris Maglione
e6d84db845
Bug 1350522: Part 4 - Convert browser APIs to lazy loading. r=aswan
...
MozReview-Commit-ID: BQoWF9nHOuF
--HG--
rename : browser/components/extensions/ext-desktop-runtime.js => browser/components/extensions/ext-browser.js
extra : source : 7fd4ade8811856e835506310a57725dbd355c786
extra : histedit_source : c1775902971f858bfaa386977ca8d579c0ce3c61%2C489e3ed33d4c1bb47c3afbe30849b42e83771f48
2017-04-02 11:59:55 -07:00
Kris Maglione
3fe8cbd2c9
Bug 1260548: Part 1 - Factor out the common functionality of the tabs API. r=aswan
...
MozReview-Commit-ID: AS7asn6nXzr
--HG--
extra : rebase_source : f81a28a979b6d1a76534343bed2029456cc6a2c7
2017-01-30 22:44:16 -08:00
Andrew Swan
322ee1283f
Bug 1203330 Part 2 Convert EventManager uses to SingletonEventManager r=kmag
...
MozReview-Commit-ID: A12TPwAYzTS
--HG--
extra : rebase_source : 10526ee923dc1eed24bac3c9b9c80c54b8e174e9
2017-01-26 11:27:03 -08:00
Phil Ringnalda
9447dfdbd4
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
2dde6b8e9b
Bug 1203330 Part 2 Convert EventManager uses to SingletonEventManager r=kmag
...
MozReview-Commit-ID: A12TPwAYzTS
--HG--
extra : rebase_source : 3e034fba247132c3b7a92ce8f4656136c2313a20
2017-01-26 11:27:03 -08:00
Florian Quèze
0e0865f4fc
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
390a9ca00f
bug 1307012 raise an error on invalid id r=kmag
...
MozReview-Commit-ID: FDdPzmtN2mq
--HG--
extra : rebase_source : db614a4427288bb41d8ead675c07309f8c5e20e9
2016-12-08 08:09:08 -10:00
Eric Rahm
52e9f58e98
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
5ae97524cb
Bug 1312055: Fix various eslint errors. r=standard8
...
MozReview-Commit-ID: 2XbldhBnofs
--HG--
extra : rebase_source : f0c91dfbe37159077b8d0506913dd719fe577f17
2016-10-21 10:03:51 -07:00
Tomislav Jovanovic
3743f656f6
bug 1290057 - fire onFocusChanged when Firefox loses/gains focus r=kmag
...
MozReview-Commit-ID: 7OdyglGjnFQ
--HG--
extra : rebase_source : 72fc9d46f004366419b0dd62c6e2ab201ab9fef1
2016-10-14 05:38:34 +02:00
Eric Rahm
1b5670be81
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
e06eb7dfd0
bug 1273146 - populate tabs in windows.create() return value r=kmag
...
MozReview-Commit-ID: 5dnnSdXrsaJ
--HG--
extra : rebase_source : 5cc49e83ed070b9c96dc7855ff3f612045a44647
2016-10-09 02:11:25 +02:00
Tomislav Jovanovic
0c231aa27e
bug 1301227 - add allowScriptsToClose option to windows.create(), r=kmag
...
MozReview-Commit-ID: 4p8A1y2FALX
--HG--
extra : rebase_source : 5be607adae5c5eb8de8061a76461d1c056786161
2016-09-23 23:40:24 +02:00
Rob Wu
be3652cd57
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
--HG--
extra : rebase_source : 946a3c0009a4e3223c2d10044b3099a94c845394
2016-08-16 15:51:50 -07:00
Rob Wu
bacc209644
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
--HG--
extra : rebase_source : 7aa9fb7a53e057e8d3d8c477bd6821f8344c571a
2016-08-15 01:04:58 -07:00
Sebastian Hengst
2164cd95c8
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
dfc11d6f00
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
--HG--
extra : rebase_source : 9a85d95f0c147198938b86c57127f6e7403fd53c
2016-08-15 01:04:58 -07:00
Kris Maglione
4f1b1dda0b
Bug 1225215: [webext] Raise the expected errors when given invalid tab IDs. r=aswan
...
MozReview-Commit-ID: E5G0GmVhzLh
--HG--
extra : rebase_source : 5c6624b9d2d06109a1b047ad48dcac7e9405ee59
extra : amend_source : fb23020f7d2772f56fabc61f2e32f7d9c4c2f52a
2016-02-26 17:56:30 -08:00
Kris Maglione
a1dac7caad
Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
...
MozReview-Commit-ID: 8m7wJrAbFwS
--HG--
extra : source : a00cf073f5c00380d4e42b13bc0cd3146b708845
extra : amend_source : d74ef90e88acbe62e33af3b5b9cf870d5c0a9d3e
2016-06-09 17:44:47 -07:00
Sebastian Hengst
f8035f62a8
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
b465305345
Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
...
MozReview-Commit-ID: 8m7wJrAbFwS
--HG--
extra : rebase_source : cba877c0ef400917b0b7e5913895e64ebefb34b9
extra : amend_source : 6e943015e3e00854c431cbd653994a6734e66ce4
2016-06-09 17:44:47 -07:00
Bob Silverberg
c37418b9d5
Bug 1262976 - browser.windows.onFocusChanged sometimes fires twice, even after the event listener is removed, r=kmag
...
MozReview-Commit-ID: 4wfFjPBn7zJ
--HG--
extra : transplant_source : %E4%2C%DDNqS%E8%EC%96%AE%E2%C5%D3%1A.v%C9%5C%E2%80
2016-04-08 09:46:45 -04:00
Kris Maglione
8706c945fd
Bug 1253133: [webext] Support changing window geometry via windows.update. r=aswan
...
MozReview-Commit-ID: LQGXyB9WuiI
--HG--
extra : rebase_source : 840ec6f25eb4409383b6e0c7a43ba03dc3cddf9b
2016-03-22 23:13:11 +01:00
Tom Schuster
7fe37de259
Bug 1253134 - Support drawAttention in browser.windows.update. r=kmag
2016-03-17 12:59:11 +01:00
Tom Schuster
1f813aa1a3
Backed out changeset 41042ab2e4bc (wrong patch)
2016-03-16 15:02:26 +01:00
Tom Schuster
2fe587fac4
Bug 1223634 - Support exclude_globs/include_globs in webext manifests. r=kmag
2016-03-16 14:59:20 +01:00
Kris Maglione
d53da79b1c
Bug 1253128: [webext] Support type=popup in the browser.windows API. r=billm
...
MozReview-Commit-ID: ALgprY2w7w9
--HG--
extra : rebase_source : 3608b83eb0538f1ff90a65ee064e2df544abddac
2016-03-03 18:44:18 -08:00
Kris Maglione
ebd03d7771
Bug 1253132: [webext] Support window states in browser.windows APIs. r=billm
...
MozReview-Commit-ID: LIw6swRAB3h
--HG--
extra : rebase_source : ab313986de1b12e9a38d341da16c8338cc3ea5e5
2016-03-05 09:59:35 -08:00
Kris Maglione
2b5bba8484
Bug 1247493: [webext] Implement the tabId property of windows.create. r=billm
...
MozReview-Commit-ID: Jw4KvvUqkBh
--HG--
extra : source : cf766413a25e77d31495f2b6e7d38e1d1bb40603
extra : amend_source : 1abfec3bf52538cae5391235527cd0bc6a60481f
2016-02-17 11:46:19 -08:00
Wes Kocher
9ed5a2a0d7
Backed out changeset cf766413a25e (bug 1247493) for failures in browser_ext_tabs_update.js
...
--HG--
extra : commitid : yaJz71RWlF
2016-02-17 14:30:53 -08:00
Kris Maglione
9fc87de614
Bug 1247493: [webext] Implement the tabId property of windows.create. r=billm
...
MozReview-Commit-ID: Jw4KvvUqkBh
--HG--
extra : rebase_source : 5434dfc85356a75ae32b4c5c47e4f689f916ec96
extra : histedit_source : 1f1e15a93b4a161e442c41c7bd95614f625cffde
2016-02-17 11:46:19 -08:00
Kris Maglione
eb18e4d151
Bug 1234020: Part 2k - [webext] Return promises from the windows API. r=rpl
...
--HG--
extra : commitid : 7aWMMY5x2Jw
extra : rebase_source : 5209f8fca41a347fd5cba62c2e5be2a84d7f82db
2016-02-01 18:28:00 -08:00
Kris Maglione
b7869a821a
Bug 1229874: Support defineLazyServiceGetter in components-import eslint helper. r=miker
...
--HG--
extra : commitid : JasCECgeDvZ
extra : rebase_source : 4f2bc306a845e8b2f561be4430d6741f44b204ec
extra : amend_source : 8955e75045f39f47b758587b635d7d2cec85f7f5
extra : source : 6745f48efb28b3ec118166e1211b02354ab01769
2015-12-02 16:49:50 -08:00
Bill McCloskey
505a9bb407
Bug 1208257 - [webext] windows.json (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
Bill McCloskey
fd0aea8d56
Bug 1223585 - [webext] Annotate ignoreEvent (r=kmag)
2015-11-12 08:19:45 -08:00
Christoph Kerschbaumer
eee83aa5d8
Bug 1204983 - Deprecate NewTabURL and forward calls to AboutNewTabService (r=florian,olivier)
...
--HG--
rename : browser/components/newtab/tests/xpcshell/test_NewTabURL.js => browser/components/newtab/tests/xpcshell/test_AboutNewTabService.js
2015-10-20 18:51:25 -07:00
Wes Kocher
c6deb98829
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