Commit graph

38 commits

Author SHA1 Message Date
Luca Greco
eab2b0ad2c Bug 1268773 - Notify Addon Listeners when the preferred addon debug global is changed. r=aswan
MozReview-Commit-ID: Hn7jb8Kni2J

--HG--
extra : rebase_source : db4a2545950e3b8d32808475ea4b16bd88c43272
2016-07-07 16:29:36 +02:00
Kris Maglione
fba8996a05 Bug 1274775 - Make sure background pages are created with a PresShell. r=billm
MozReview-Commit-ID: GLWg5aK47g5

--HG--
extra : rebase_source : 472365762aca534e826173989c48f5058960a987
2016-07-24 15:09:07 -07:00
Rob Wu
f8554fe4b9 Bug 1234677 - Introduce _generated_background_page.html r=billm
- Fixes bugzil.la/1234677
- Fixes bugzil.la/1286057
- Fixes bug: the URL failed to load if a query string or reference
  fragment was present.

MozReview-Commit-ID: 4oMwI3IS7OX

--HG--
extra : rebase_source : 621878e4f62febdc34899192e254f8ec315b789e
2016-07-12 13:55:14 -07:00
Rob Wu
0211115bf6 Bug 1234677 - Overwrite alert at window init instead of onload r=billm
A nice extra effect of this is that it will also work after reloading
the background page (location.reload()) and it should also work for
child frames in background pages.

MozReview-Commit-ID: ErvpzD8d3ow

--HG--
extra : rebase_source : 2057ecc805c8d8c8e724743a11c01362fa0cf5bc
2016-07-20 01:00:29 -07:00
Iris Hsiao
d677544a02 Backed out changeset 4dd2466573ec (bug 1234677) for Mochitest test_chrome_ext_background_page.html failure 2016-07-20 12:54:00 +08:00
Rob Wu
feb2e74708 Bug 1234677 - Introduce _generated_background_page.html r=billm
- Fixes bugzil.la/1234677
- Fixes bugzil.la/1286057
- Fixes bug: the URL failed to load if a query string or reference
  fragment was present.

MozReview-Commit-ID: 4oMwI3IS7OX

--HG--
extra : rebase_source : 60096dd421d18c0991f807a6f07eb72be10109dd
2016-07-12 13:55:14 -07: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
Kris Maglione
c98153037d Bug 1276025: Stop using injectInDocShell to tag docShells with types. r=billm
MozReview-Commit-ID: 7h5PI2birY4

--HG--
extra : source : 99b213f494e1a9e20629e936681faedec16d22a3
extra : amend_source : d70ffaecbc11445a5bddeb52c9c940a866934347
2016-06-02 20:53:41 -07:00
Wes Kocher
3ec856c177 Backed out changeset 99b213f494e1 (bug 1276025) for xpcshell bustage CLOSED TREE 2016-06-07 16:59:20 -07:00
Kris Maglione
c5d392a9bc Bug 1276025: Stop using injectInDocShell to tag docShells with types. r=billm
MozReview-Commit-ID: 7h5PI2birY4

--HG--
extra : rebase_source : a8b8b9b49f9ef8304ee669f6c28c9290a1198ff3
extra : amend_source : f868dc11e3da5f89852343e88e373db14f5dcbd3
extra : histedit_source : 6ee59978a58828e22a9f2cbf651cb713ba28d25d
2016-06-02 20:53:41 -07:00
tofumatt
b5aa4919a7 Bug 1203394 - Fix eslint errors in alert() patch. r=Aryx
MozReview-Commit-ID: KRUJflBrkxa
2016-04-25 15:16:32 +01:00
tofumatt
efbcce4925 bug 1203394: alias alert() to console.log() in background scripts r=kmag
MozReview-Commit-ID: 65m3yVGQhlQ
***
Add test and fix nitpicks to alert() patch

--HG--
extra : rebase_source : 4b5ec2a09bce49bca6c419b2ece59160c282da94
2016-03-22 12:35:31 +00:00
Bill McCloskey
74d6b169e1 Bug 1197346 - Rename ExtensionPage to ExtensionContext (r=kmag) 2016-04-23 20:04:29 -07:00
Johann Hofmann
1c76cac853 Bug 1005193 - Allow addons to specify a custom global debug context. r=mossop 2016-04-11 08:26:20 +02:00
Carsten "Tomcat" Book
e46b14d4df Backed out changeset 387bd412040f (bug 1005193) for test failures in Android 4.3 API15+ debug Mochitest Chrome 2016-04-14 11:31:17 +02:00
Johann Hofmann
eb48aa54c0 Bug 1005193 - Allow addons to specify a custom global debug context. r=mossop 2016-04-11 08:26:20 +02:00
Kris Maglione
dce2b3c2cd Bug 1214955: [webext] Automatically localize all localizable manifest properties. r=billm
MozReview-Commit-ID: 2kvYT44NIE8

--HG--
extra : rebase_source : ebab864b517c2e576dde27cf1439cf2deadb0685
2016-02-29 19:34:49 -08:00
Kris Maglione
ba2e5f60f4 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
f0a1600d9a Bug 1234020: Part 2a - [webext] Return promises from the background page APIs. r=rpl
--HG--
extra : commitid : 6QaVA3XIUzC
extra : rebase_source : a769506ee88b7ac0e4b972c26750409adec5239c
extra : histedit_source : 1768cb7a91aa363ee2ea0d5094ad8e5a18eb9605
2016-02-02 19:14:34 -08:00
Kris Maglione
ccbc83560c Bug 1239822: Part 2a - [webext] Explicitly destroy windowless browsers on unload. r=billm
--HG--
extra : commitid : JXAapKEd31v
extra : rebase_source : 729fa88d1d0e8c91a47745af00fb321866eb1063
2016-01-15 13:30:15 -08:00
Kris Maglione
9e41dc86fa Bug 1239884: Follow-up: Fix ESLint error.
--HG--
extra : commitid : foilvht5yL
2016-01-15 19:49:30 -08:00
Kris Maglione
276df1ae5c Bug 1239884: Part 1 - [webext] Don't create an extra API context for background pages. r=billm
--HG--
extra : commitid : ESaeR89QQR1
extra : rebase_source : 63e76105c40ef5204a655be9711d045be36e775d
2016-01-14 16:23:10 -08:00
Bill McCloskey
c15d73943a Bug 1224105 - [webext] Use <browser> element for background page (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
b8196d4c71 Bug 1208257 - [webext] runtime.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
1b98762630 Bug 1208257 - [webext] extension.json (r=kmag) 2015-12-23 08:57:13 -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
Kris Maglione
9b2c61cbae Bug 1215893: [webext] Check capturing event listeners for the correct target. r=billm
--HG--
extra : commitid : IYgT9fAiHJX
extra : rebase_source : c672622b7f2e931ceab45b5569c9de0bfd40602a
2015-11-14 23:30:52 -08:00
Kris Maglione
0eabae6e36 Bug 1197422 - Part 1: [webext] Use the correct URL for background page contexts. r=billm
--HG--
extra : commitid : 4g2Y9hBw0gc
extra : rebase_source : 4418a658e65152056d5537d480998867fbc27f1f
2015-10-09 04:14:55 -07:00
Carsten "Tomcat" Book
08997000eb 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
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Fabrice Desré
94b76178d8 Bug 1198970 - Get WebExtensions background pages to work on b2g r=billm 2015-08-27 13:34:33 -07:00
Bill McCloskey
b1a00d7c72 Bug 1175770 - New extension API (r=Mossop) 2015-08-03 10:41:24 -07:00
Carsten "Tomcat" Book
03d48d1951 Backed out changeset 4e3821b236f9 (bug 1175770) 2015-08-03 09:37:54 +02:00
Bill McCloskey
14e7d8ca0a Bug 1175770 - New extension API (r=Mossop) 2015-08-02 17:29:55 -07:00