Wes Kocher
1674eb3e4f
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Wes Kocher
2c04ebdaa3
Merge autoland to central, a=merge
...
MozReview-Commit-ID: LTZmzqpIUXI
2017-09-28 15:49:14 -07:00
Ryan VanderMeulen
2ccfaf0697
Backed out changesets d0d30a90efa1 and fd1d81b93380 (bug 1305237) for causing bug 1403932.
2017-09-28 17:55:43 -04:00
Ian Moody
abc4c64057
Bug 1375485 - Add test to verify that requesting an origin or permission in the wrong field throws an error. r=aswan
...
MozReview-Commit-ID: HZwkeUoGDRW
--HG--
extra : rebase_source : 99c32b349b1b7c7aa6047822f69fafb6b92f5fe3
2017-09-23 17:43:43 +01:00
Ian Moody
eb9a013737
Bug 1375485 - Update the extension manifest schema to distinguish between permissions and origins. r=aswan
...
The manifest of an extension has two fields, permissions and optional_permissions,
which both take an array of strings consisting of permissions or origins.
The permissions API accepts the same values but within distinct origins and
permissions fields of an object.
This patch modifies the schema to reflect this difference.
MozReview-Commit-ID: 3V3YeWEIVnf
--HG--
extra : rebase_source : 0d2f4b0e7736dbb41169c2690e716b5f48b43d92
2017-09-23 17:41:08 +01:00
Wes Kocher
13aa1f3a82
Merge m-c to autoland, a=merge CLOSED TREE
...
MozReview-Commit-ID: 6Em6JpAgEOF
2017-09-27 17:04:00 -07:00
Wes Kocher
61c098eae7
Merge inbound to m-c a=merge CLOSED TREE
...
MozReview-Commit-ID: 3pMHYV9oXLm
--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Thom Chiovoloni
76a3991796
Bug 1400467 - Make WeaveCrypto use promises instead of spinning event loops r=eoger,markh
...
MozReview-Commit-ID: 64dewKKaAOJ
--HG--
extra : rebase_source : e8d48e05ad8dac214358b0a9979b011a65ed07a8
2017-09-15 19:21:31 -07:00
Shane Caraveo
088c63f6e5
Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
...
MozReview-Commit-ID: HpneTIKPoS1
--HG--
extra : rebase_source : d4c7e9146b4156f7e429e6427628bbf7cd25cbe7
2017-09-27 07:58:17 -07:00
Paolo Amadini
c6564bb63b
Bug 1402279 - Part 2 - Unify the usage of the DownloadPaths module. r=mak,aswan
...
MozReview-Commit-ID: HEhwkyxtYTP
--HG--
extra : rebase_source : f4adb90eea4898b8c769900400a3ead6246b9ece
extra : source : 41da9c5daa902543f0f59818b2e3bbae44605036
2017-09-27 12:13:07 +01:00
Wes Kocher
9d9610f6a3
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: Kjjgw1Pdb3U
2017-09-26 17:15:46 -07:00
Wes Kocher
22a72df7fe
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: 6viJ4wRxLa8
2017-09-26 15:54:51 -07:00
Kris Maglione
1eb9c4b99b
Bug 1402066: Part 2 - Enable permissions tests in OOP mode. r=aswan
...
MozReview-Commit-ID: 4Tv2HAaSV19
--HG--
extra : source : 641430a496824e34170786f6f3bc5e587f2056eb
extra : amend_source : e049c437ad8a70766544a3476a584395df7debb3
2017-09-25 21:05:00 -07:00
Kris Maglione
da3313920f
Bug 1402066: Part 1 - Fix ordering of base schema data in extension child processes. r=aswan
...
MozReview-Commit-ID: FtLHJq5H5oD
--HG--
extra : source : d828e2c01a60febf598dcc544da266042c74731b
2017-09-25 21:01:32 -07:00
Sebastian Hengst
811f53c0fc
Backed out changeset 41da9c5daa90 (bug 1402279)
2017-09-26 18:17:51 +02:00
Paolo Amadini
9c4cbe557f
Bug 1402279 - Part 2 - Unify the usage of the DownloadPaths module. r=mak,aswan
...
MozReview-Commit-ID: HEhwkyxtYTP
--HG--
extra : rebase_source : d17ef98796d5a4fcac899c6319045eec02b0633e
2017-09-26 16:03:24 +01:00
Sebastian Hengst
ece521e642
Backed out changeset d828e2c01a60 (bug 1402066) for frequently failing modified xpcshell test toolkit/components/extensions/test/xpcshell/test_ext_redirects.js on Android 4.3 debug. r=backout
2017-09-26 11:38:33 +02:00
Sebastian Hengst
c88c2ff44e
Backed out changeset 641430a49682 (bug 1402066)
2017-09-26 11:37:44 +02:00
Ian Moody
93760b3cea
Bug 1331769 - Properly check whether new origin permissions are a subset of old origin permissions. r=aswan
...
This prevents prompts occuring in cases where the new permissions are more
specific but still covered by the old permissions.
e.g.:
["<all_urls>"] -> ["<all_urls>", "*://*.example.com"]
["*://*.example.com"] -> ["http://subdomain.example.com "]
MozReview-Commit-ID: B685pJ6kTNa
--HG--
extra : rebase_source : dc6000ade2ac57017f7cb22d2dcf5d324417bcc3
2017-09-21 17:03:15 +01:00
Shane Caraveo
86d45aba67
Bug 1401350 fix proxy auth for system requests, r=kmag
...
MozReview-Commit-ID: CAh89djQobI
--HG--
extra : rebase_source : c85ff5148d4ac1df4e21622d2d615040ba9e09d7
2017-09-25 15:14:09 -07:00
Jonathan Kingston
f78dfa631c
Bug 1403243 - Fix typo in identity exceptions. r=kmag
...
MozReview-Commit-ID: 9gt0f990ftu
--HG--
extra : rebase_source : 0f668a6d5f68a4b457794fb63560aa8b35d7bfd2
2017-09-26 17:50:42 +01:00
Nicholas Nethercote
dfd3b7e7aa
Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
...
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.
These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.
- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>
- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
- Count() --> Length()
- ObjectAt() --> ElementAt()
- AppendObject() --> AppendElement()
- RemoveObjectAt() --> RemoveElementAt()
- ns*Hashtable<nsISupportsHashKey, ...> -->
ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>
- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
- This requires adding a Get() method to nsRefPtrHashtable that it lacks but
nsInterfaceHashtable has.
- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
- nsArrayBase::Create() --> nsTArray()
- GetLength() --> Length()
- do_QueryElementAt() --> operator[]
The patch also has some changes to Rust code that manipulates nsIAtom.
MozReview-Commit-ID: DykOl8aEnUJ
--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Kris Maglione
ad260d3d24
Bug 1402066: Part 2 - Enable permissions tests in OOP mode. r=aswan
...
MozReview-Commit-ID: 4Tv2HAaSV19
--HG--
extra : rebase_source : f9ab74ad8833f5287df8873637be8eb9539e67da
extra : histedit_source : bc86a99a22df05a89d52f305955a490f5de3933d%2Ca1ae6f8c8c53f2f4f48ccd805d7d5ac801b60fea
2017-09-25 21:05:00 -07:00
Kris Maglione
a7ae859c01
Bug 1402066: Part 1 - Fix ordering of base schema data in extension child processes. r=aswan
...
MozReview-Commit-ID: FtLHJq5H5oD
--HG--
extra : rebase_source : 5613613bfb211ce814d76b0c730f6c33600ae619
extra : histedit_source : 34c5f7f2a25d0279068bd161bb3b97fe66b56927%2C55ab362778df6bde9773a649663ea35981c05cb8
2017-09-25 21:01:32 -07:00
Geoff Brown
81c675f7bc
Bug 1397615 - Skip some long-running mochitests on Android Debug only; r=snorp
2017-09-21 12:39:35 -06:00
Kris Maglione
dc5b40508d
Bug 1379148: Part 4 - Add tests for document.write() with document_start content script present. r=mixedpuppy
...
MozReview-Commit-ID: 5yxgpur1tvf
--HG--
extra : rebase_source : c85d0d6c0cb71316957621f25cbea303850208a5
2017-09-20 17:01:33 -07:00
Kris Maglione
152d99b50d
Bug 1379148: Part 3 - Inject scripts synchronously if they're already available. r=mixedpuppy
...
MozReview-Commit-ID: J6vheuxsqJR
--HG--
extra : rebase_source : 94f44806e5eb4e0eebc0dd465ab1c0c4ef2c14e0
2017-09-20 17:00:44 -07:00
Kris Maglione
73b35e74b6
Bug 1379148: Part 2 - Don't block script-created parsers when executing content scripts. r=mixedpuppy
...
MozReview-Commit-ID: GsqsaOVob4B
--HG--
extra : rebase_source : f82bcf302a486d2e796cfa895af46c8fb2781dc7
2017-09-20 16:13:03 -07:00
Tomislav Jovanovic
effef809a2
Bug 1386427 - Part 4: Implement basic storage.managed functionality r=kmag
...
MozReview-Commit-ID: Auy1ujS8wyz
--HG--
extra : rebase_source : abce9a406d36c68509a39569e4b8ce000a08e779
2017-09-16 19:42:40 +02:00
Tomislav Jovanovic
b2c8e48429
Bug 1386427 - Part 3: Add storage and pkcs11 NativeManifest types r=kmag
...
MozReview-Commit-ID: 62MoqNLTxic
--HG--
rename : toolkit/components/extensions/schemas/native_host_manifest.json => toolkit/components/extensions/schemas/native_manifest.json
extra : rebase_source : c6cd9f380c39c97b841f7dd2fdf4014286bcec41
2017-09-16 05:30:13 +02:00
Tomislav Jovanovic
74b5af87d6
Bug 1386427 - Part 2: Extract HostManifestManager to NativeManifests.jsm r=kmag
...
MozReview-Commit-ID: GrVBZbkTfrB
--HG--
rename : toolkit/components/extensions/NativeMessaging.jsm => toolkit/components/extensions/NativeManifests.jsm
rename : toolkit/components/extensions/test/xpcshell/test_native_messaging.js => toolkit/components/extensions/test/xpcshell/test_native_manifests.js
extra : rebase_source : c83a79d2af724c5d6d15a6ca09330cc6173a8853
2017-09-15 20:14:56 +02:00
Tomislav Jovanovic
8a81eff787
Bug 1386427 - Part 1: Add XRE*NativeManifests locations to dirsvc r=kmag
...
MozReview-Commit-ID: DoJIP6QZ5AX
--HG--
extra : rebase_source : 8351f66a4ddbe8a7c5a7fdf0dcc96288d060f53a
2017-09-12 18:58:23 +02:00
Rob Wu
0b80fc3ee8
Bug 1401511 - Don't mutate return value of FindProxyForURL r=mixedpuppy
...
MozReview-Commit-ID: 38A1Afzvfqd
--HG--
extra : rebase_source : 0f2da231e3c54cffeed560098961d2e6756a2fb9
2017-09-20 14:47:15 +02:00
Luca Greco
2e366395e2
Bug 1401293 - Remove unneeded special handling for the devtools panel from extension-process-script.js. r=kmag
...
MozReview-Commit-ID: 3pjuoqjULAB
--HG--
extra : rebase_source : 173db3de84203c1834eee3527ab1db1093818d8f
2017-09-19 20:28:56 +02:00
Sebastian Hengst
48545a66e9
Backed out changeset f4c33a37fe6d (bug 1395890) for failing browser-chrome's browser/components/extensions/test/browser/browser_ext_find.js. r=backout on a CLOSED TREE
2017-09-19 16:35:31 +02:00
Luca Greco
7c23181cbd
Bug 1383310 - Extensions Devtools panels should not receive messages or ports from content scripts. r=zombie
...
MozReview-Commit-ID: B5Hq11Tb3Y0
--HG--
extra : rebase_source : 6f0458a10717dfd4264e56ac66422882ddaaee7f
2017-09-14 16:43:45 +02:00
Dan Banner
d9bd75f0cc
Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
...
MozReview-Commit-ID: LJS6m1GppiS
--HG--
extra : rebase_source : 0428c961831f079a63f345c8d6684b869fbcdecd
2017-09-18 19:07:17 +01:00
Jonathan Kingston
b194a2f906
Bug 1397100 - Disable container about:preference checkbox if a container addon is enabled. r=bsilverberg,Felipe
...
MozReview-Commit-ID: DtJX3FiE0e0
--HG--
extra : rebase_source : 2374318065a63ea2c279d85591a7442e132422c0
2017-09-18 08:11:31 +01:00
Kris Maglione
ee9369c7a1
Bug 1399375: Disable test_ext_permissions on asan for frequent intermittents. r=me
...
MozReview-Commit-ID: EIt2GQENXUi
--HG--
extra : rebase_source : cbdf16aeddcbf2ea0329482189965d653ccc0881
2017-09-28 09:25:01 -07:00
Kris Maglione
ff3798ffe6
Bug 1402944: Follow-up: Fix and re-enable test_ext_webrequest_background_events. r=me
...
MozReview-Commit-ID: 1D65HWgmnxX
--HG--
extra : rebase_source : c75f8d1d264328eb58746a5e594bad4c6e86a976
2017-09-28 00:11:22 -07:00
Andrea Marchesini
baa04d619a
Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug
2017-08-06 20:47:00 +03:00
Tom Schuster
2b68d66833
Bug 1403723 - Correct metadata when using management.get. r=mixedpuppy
2017-09-28 12:46:09 +02:00
Sebastian Hengst
e071afa182
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-09-28 12:17:21 +02:00
Kris Maglione
178e1f4b29
Bug 1402944: Follow-up: Also disable test_ext_webrequest_background_events on Windows debug. r=me
...
MozReview-Commit-ID: Hc45POKbh9S
2017-09-27 23:31:43 -07:00
Kris Maglione
718b6fff3e
Bug 1402944: Follow-up: Disable test_ext_webrequest_background_events on Android due to cascading failures. r=me
...
MozReview-Commit-ID: E4yFLRtRaP7
--HG--
extra : rebase_source : 5efea928ec276e5b7f52a2ace5f862b5af40b205
2017-09-27 22:09:50 -07:00
Kris Maglione
7868eacb34
Bug 1399550: Skip test_ext_permissions on OS-X debug for frequent intermittent failures. r=annoying
...
MozReview-Commit-ID: IYy25JxftWE
--HG--
extra : amend_source : c7c720b98d30c5f4adc61416b0b29697f92dac89
2017-09-27 21:02:59 -07:00
Kris Maglione
22c7c90b19
Bug 1403369: Correctly handle content-side errors in tabs.executeScript(). r=zombie
...
MozReview-Commit-ID: CPRV9PvWe9e
--HG--
extra : rebase_source : c07f426d9a1504124da3d1969a4da2e30a68118f
extra : amend_source : d2f5ef63c24231cf1368945c0d36d27e148adbc5
2017-09-26 15:33:11 -07:00
Kris Maglione
cdb5c8abfe
Bug 1402944: Part 11 - Use number rather than string value for getUniqueId(). r=mixedpuppy
...
This allows us to avoid a fairly expensive stringification/string allocation
when calling getUniqueId(), which is helpful. It also allows us to avoid
atomizing the ID string when storing it in a Set or Map, which is even more
helpful. And, of course, it makes comparisons faster.
MozReview-Commit-ID: 8wMc6TdhzfY
--HG--
extra : rebase_source : 389881c910124083e5db6ff5db293144c3901326
2017-09-25 15:00:17 -07:00
Kris Maglione
ee47ab1f43
Bug 1402944: Part 9 - Optimize request/response header handling. r=mixedpuppy,ehsan
...
We don't use the initial Map returned by ChannelWrapper as a map, so there's no
need for the overhead involved in creating it. We also don't need the header map
generated by HeaderChanger unless headers are actually being modified, which
for many listeners they never are, so there's no need for the map creation and
string lower-casing overhead prior to modification time.
MozReview-Commit-ID: K2uK93Oo542
--HG--
extra : rebase_source : f50574fb0eb32878aee3f68b3a73d46ba53987e5
2017-09-23 16:25:19 -07:00
Kris Maglione
a32ad146bd
Bug 1402944: Part 8 - Avoid X-ray overhead when cloning event handler responses. r=mixedpuppy
...
MozReview-Commit-ID: 4CHP80WymuA
--HG--
extra : rebase_source : 612b9d38cc0c6c5146b1863f22a40789c7471808
2017-09-23 13:30:52 -07:00