Commit graph

70 commits

Author SHA1 Message Date
Michael Kaply
b7a354c792 Bug 1432355 - Add a policy to disable private browsing. r=Gijs
MozReview-Commit-ID: AprbL6usEv5

--HG--
extra : rebase_source : d0a9255aae8b8d038c69978cbeabbfc394ad46cd
2018-03-01 10:20:38 -06:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Kris Maglione
4a4c4fdfd4 Bug 1421459: Update to ESLint 4 "indent" rule. r=aswan
MozReview-Commit-ID: LxLDWlsIlSk

--HG--
extra : rebase_source : 5762bdf08ff6c09c1b29f87366bddb552e4c74b2
extra : amend_source : 922a0c03722bd5a81daace7f0289ec3228191cfb
2017-11-28 14:13:59 -08:00
tushararora
ec914abaff Bug 1402399 - Fix browser.windows.update to clear titlePreface if it is passed empty. r=bsilverberg, r=mixedpuppy 2017-10-13 12:38:19 +05:30
Bob Silverberg
d94a6f7526 Bug 1406379 - Implement windowTypes option for windows.getAll, r=mixedpuppy
This option works in Chrome and is documented to work in Firefox but seems
to have never been implemented.

MozReview-Commit-ID: KOu8TRaCCzL

--HG--
extra : rebase_source : 98605a64c12102e5c09acfd5bfef410cb75d5ba0
2017-10-16 16:01:59 -04:00
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