Commit Graph

5195 Commits

Author SHA1 Message Date
Attila Craciun
f3cd43457f Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-10-30 12:28:40 +02:00
Christoph Kerschbaumer
58b63c1576 Bug 1302667 - CSP: Implement 'worker-src'. r=baku,dveditz,mckinley 2017-10-30 09:10:36 +01:00
Kyle Machulis
5f973ae9ca Bug 1408169 - Remove nsIDOMHTMLMenuItemElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLMenuItemElement, replacing it
with binding class usage.

MozReview-Commit-ID: 9HtCmwKyV1W

--HG--
extra : rebase_source : d56ee91a46d48c9d8698765b520a585361813a26
2017-10-12 15:10:50 -07:00
Eden Chuang
4780056a6a Bug 1408734 - Return InvalidStateError when accessing ServiceWorkerRegistration::updateViaCache after unregister. r=bkelly
This patch implements followings
1. Adding extended attribute [Throws] on ServiceWorkerRegistration
   ::updateViaCacheattribute.
2. Instead of calling MOZ_ASSERT, returning InvalidStateError when fail to
   get the registration in ServiceWorkerRegistration::GetUpdateViaCache().
3. Adding a new mochitest test_bug1408734.html to reproduce the bug
   introduced by accessing ServiceWorkerRegistration::updateViaCache after
   unregister() finishes.

--HG--
extra : rebase_source : 49fba33bf28bcb74601b87f79ce91787e435939d
2017-10-26 22:55:19 +08:00
Kyle Machulis
df8270946f Bug 792059 - Add NeedsWindowsUndef extended attribute for constants; r=bz
When defining WebIDL constants in C++, we may need to undefine some
constant names that conflict with windows.h preprocessor defines.
Doing this in the binding header is far easier than tracking down the
include orders that may cause conflicts.

MozReview-Commit-ID: A0UoYezIQs5

--HG--
extra : rebase_source : d9100af2ccdb5c6e6468542ac68f74b2e4f9050c
2017-10-23 17:34:28 -07:00
Nils Ohlmeier [:drno]
daf7230f6d Bug 1411498: delete unused sipcc states. r=bwc,smaug
MozReview-Commit-ID: DnJrQk4hkYb

--HG--
extra : rebase_source : c615899389154cca4eecdbd6e332986837451d26
2017-10-24 23:40:02 -07:00
Sebastian Hengst
485da1eec8 Backed out changeset c2c746884242 (bug 1403027) for failing M-e10s(2,h2) without failure summary on Windows. r=backout on a CLOSED TREE
--HG--
extra : amend_source : e140ace761a6be91840cb282bc7c676561698291
2017-10-25 23:44:40 +02:00
dw-dev
d4ffe26984 Bug 1404681 - change to FrameLoader.print(); r=smaug
Changes FrameLoader.print() WebIDL declaration to allow 3rd argument
(print progress listener) to be null or omitted.

This change allows tabs.saveAsPDF(), which calls FrameLoader.print()
with a null 3rd argument, to work correctly in Firefox 57.

MozReview-Commit-ID: AAHgPuMTvDe

--HG--
extra : rebase_source : 68a433b630970eda2cbe5c1661f3a100ad2e2020
2017-10-21 09:28:15 +01:00
Thomas Wisniewski
6bf7c6882a Bug 1403027 - Do not throw from PerformanceObserver.observe when none of the entryTypes are known (log a JS console warning instead); r=bz
MozReview-Commit-ID: Lx2cjWDX8sh

--HG--
extra : rebase_source : d7e8b3dfbf395de0c0d7b5b7ce716a37337735f5
2017-10-22 22:49:44 -04:00
Emilio Cobos Álvarez
d631a75643 Bug 1410074: Make the caller type from MatchMedia arrive to the CSS code. r=xidorn,bz
MozReview-Commit-ID: LUiobfHSUq1
2017-10-25 16:04:48 +02:00
Ben Tian
a4fe26d361 Bug 1404842 - P1: Implement Element.attachShadow and Element.slot, r=smaug
MozReview-Commit-ID: KWy8mDqEw4o

--HG--
extra : rebase_source : d8378628b8f7028f6b3600c5abd20dc4fc6a9ccb
2017-10-19 14:44:35 +08:00
bechen@mozilla.com
4e5c6bb79d Bug 1183495 - part1: Remove mozSrcObject in HtmlMediaElement.ipdl . r=smaug
MozReview-Commit-ID: DopdOr0WRV7

--HG--
extra : rebase_source : ecfba857aa698c379489672026fb923e96615c0b
2017-10-20 11:22:32 +08:00
Sebastian Hengst
6125e83b28 Backed out changeset c5f2f0e827d0 (bug 1403027) for build bustage at dom/workers/WorkerPrivate.cpp(984): expression did not evaluate to a constant, at least on Windows. r=backout on a CLOSED TREE
--HG--
extra : amend_source : e6eb5cbe9b6b41a929c8f811859efe6093eab3a2
2017-10-21 00:31:07 +02:00
Thomas Wisniewski
ac538c1bc0 Bug 1403027 - Do not throw from PerformanceObserver.observe when none of the entryTypes are known (log a JS console warning instead); r=bz
MozReview-Commit-ID: Lx2cjWDX8sh

--HG--
extra : rebase_source : 7f70818de5e4c31eb1781d524e0129b0b20759e3
2017-10-20 15:58:20 -04:00
Brian Birtles
c38308c79b Bug 1398038 - Implement extended property-indexed keyframe syntax; r=bz,hiro
This implements the changes specified in these three spec changesets:

  8efd180bd9
  f43ecdfbe5
  a4f1ad1a60

MozReview-Commit-ID: KFhgZ5ip6BA

--HG--
extra : rebase_source : aa18f8e3fbcd5d96194ff9a5239a3c415622dc2f
2017-10-18 16:12:21 +09:00
Jessica Jong
0d1588d9f7 Bug 1408341 - Implement assignedSlot on Element and Text. r=smaug 2017-10-19 14:31:36 +08:00
Nils Ohlmeier [:drno]
8fd8af4c1b Bug 1408371: report AEC log dir through getter. r=ng,smaug
MozReview-Commit-ID: 1Tb8nwYzMFt

--HG--
extra : rebase_source : e44b90749667961771d573da3b9e6d65b3bf554c
2017-10-13 17:57:15 -07:00
Sebastian Hengst
fea24c0daf merge mozilla-central to autoland. r=merge a=merge
--HG--
extra : rebase_source : 819bdfcc5e3f50cb5a3d8d76ce1f88ceeb0dd5a9
2017-10-17 23:54:52 +02:00
Andrea Marchesini
ba7f928d6a Bug 1409325 - Update FileReader WebIDL File, r=smaug 2017-10-17 13:41:01 +02:00
J.C. Jones
c3de84620b Bug 1381190 - Change to COSE Algorithm identifiers for WebAuthn r=qdot,ttaubert
The WD-06 (and later) WebAuthn specs choose to move to integer algorithm
identifiers for the signatures [1], with a handful of algorithms identified [2].
U2F devices only support ES256 (e.g., COSE ID "-7"), so that's all that is
implemented here.

Note that the spec also now requires that we accept empty lists of parameters,
and in that case, the RP says they aren't picky, so this changes what happens
when the parameter list is empty (but still aborts when the list is non-empty
but doesn't have anything we can use) [3].

There's a follow-on to move parameter-validation logic into the U2FTokenManager
in Bug 1409220.

[1] https://w3c.github.io/webauthn/#dictdef-publickeycredentialparameters
[2] https://w3c.github.io/webauthn/#alg-identifier
[3] https://w3c.github.io/webauthn/#createCredential bullet #12

MozReview-Commit-ID: KgL7mQ9u1uq

--HG--
extra : rebase_source : 2a1767805779a9f8049102723011193f113f0713
2017-10-12 15:21:06 -07:00
Emilio Cobos Álvarez
49520448ff Bug 1409079: Simplify WebComponents enabled checks. r=smaug
MozReview-Commit-ID: F8WAYvregRu

--HG--
extra : rebase_source : e27fca79d9c5bbaf5c096abfa3e0e1dd75e07cfc
2017-10-17 11:37:07 +02:00
J.C. Jones
cffad01a4b Bug 1407829 - WebAuthn: Implement CredMan's Store method r=qdot,ttaubert
Credential Management defines a Store operation [1], which needs to be
implemented for WebAuthn's spec compliance. It only returns a NotSupportedError
for WebAuthn [2], so it's pretty simple.

[1] https://w3c.github.io/webappsec-credential-management/#dom-credentialscontainer-store
[2] https://w3c.github.io/webauthn/#storeCredential

MozReview-Commit-ID: KDEB8r5feQt

--HG--
extra : rebase_source : b3e2a270a2ea7c1689ef9991c1345bcc20368c9e
2017-10-12 17:02:22 -07:00
MilindL
80419f5161 Bug 1063635 Part 1 - Add native code for OS.File.writeAtomic. r=smaug,Yoric
MozReview-Commit-ID: 2TKZh6jCsq5

--HG--
extra : rebase_source : 91972f346b038044cca1a70b8b5ec69cea5cd54e
2017-06-27 13:10:11 +05:30
Lee Salzman
807fcbf2b1 Bug 1348976 - let OffscreenCanvas::TransferToImageBitmap report its error. r=mtseng, r=ehsan
MozReview-Commit-ID: 8x5i4ukIWe5
2017-10-12 14:14:54 -04:00
Sebastian Hengst
f7efb5fc2c Merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-12 12:03:15 +02:00
Kris Maglione
00d7367b44 Bug 1404652: Part 1 - Add ChromeUtils.idleDispatch helper method. r=ehsan
This is similar to Services.tm.idleDispatchToMainThread, but provides an
IdleDeadline argument to its callbacks, the same way that
Window.requestIdleCallback does.

The IdleDeadline argument was necessary for my first attempt at this bug. It's
not necessary for the current version, but I suspect it will be useful in
other areas, and it also avoids some XPConnect overhead, so it's probably
worth keeping.

MozReview-Commit-ID: FtrbNkE7Vz5

--HG--
extra : rebase_source : d28973641e914c8d180f66125669aabc29ab857f
2017-09-23 22:12:32 -07:00
J.C. Jones
26573fc330 Bug 1406456 - WebAuthn WebIDL Updates for WD-07 (part 3) r=qdot,ttaubert
Reorder WebAuthentication.webidl to match the ordering of the IDL index in
the Web Authentication spec. No normative changes.

MozReview-Commit-ID: 7qPE60Qh7Ly

--HG--
extra : rebase_source : 18f18a85c013528bf9b2ec84165f7a32a134c3d7
2017-10-09 16:48:01 -07:00
J.C. Jones
8622a9216c Bug 1406456 - WebAuthn WebIDL Updates for WD-07 (part 2) r=qdot,ttaubert
This covers these renames:

* In CollectedClientData, hashAlg => hashAlgorithm
* In CollectedClientData, tokenBinding => tokenBindingId
* In MakePublicKeyCredentialOptions, parameters => pubKeyCredParams
* In MakePublicKeyCredentialOptions, excludeList => excludeCredentials
* In PublicKeyCredentialRequestOptions, allowList => allowCredentials
* Transport (WebAuthnTransport in Gecko) => AuthenticatorTransport

MozReview-Commit-ID: 3FdRnkosy83

--HG--
extra : rebase_source : 22f124c781b03837ad0cd4be4edf34527e3b9d38
2017-10-09 16:28:13 -07:00
J.C. Jones
24696391df Bug 1406456 - WebAuthn WebIDL Updates for WD-07 (part 1) r=keeler,qdot
This covers these renames:
* In PublicKeyCredentialParameters, algorithm => alg
* MakeCredentialOptions => MakePublicKeyCredentialOptions
* PublicKeyCredentialEntity => PublicKeyCredentialRpEntity
* Attachment => AuthenticatorAttachment

It sets a default excludeList and allowList for the make / get options.

It adds the method isPlatformAuthenticatorAvailable which is incomplete and
not callable, to be completed in Bug 1406468.

Adds type PublicKeyCredentialRpEntity.

Adds "userId" to AuthenticatorAssertionResponse.

Adds "id" as a buffer source to PublicKeyCredentialUserEntity and as a
DOMString to PublicKeyCredentialRpEntity, refactoring out the "id" field
from the parent PublicKeyCredentialEntity.

It also adds a simple enforcement per spec 4.4.3 "User Account Parameters for
Credential Generation" that the new user ID buffer, if set, be no more than
64 bytes long. I mostly added it here so I could adjust the tests all at once
in this commit.

MozReview-Commit-ID: IHUdGVoWocq

--HG--
extra : rebase_source : bc1793f74700b2785d2bf2099c0dba068f717a59
2017-10-06 16:10:57 -07:00
Luca Greco
305df319dc Bug 1390445 - Fix select popup positioning for oop extensions options_ui pages. r=billm,kats,kmag
MozReview-Commit-ID: Izt10SuUK0i

--HG--
extra : rebase_source : d6e302d4fd8b78100d98cbe52c4234bd49de1dfd
2017-09-20 20:03:58 +02:00
Sebastian Hengst
044775ad49 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
Shane Caraveo
3a90ea2602 Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
MozReview-Commit-ID: 64lIMu6neaD

--HG--
extra : rebase_source : 36fef9a014a7f4bb2db66fb8736de06298008e36
2017-10-10 09:54:22 -07:00
Kris Maglione
9c145b38f6 Bug 1406278: Part 8b - Use subject principal as triggering principal in style <link> "href" attribute. r=bz
MozReview-Commit-ID: LWMkBcB4WIg

--HG--
extra : rebase_source : fa2daf25c58190cee7e55798347d4eaffa0d5250
extra : histedit_source : f2887c9e53c572aa5e675600cd1aeb6c5a72becc%2Ce7a84ac505319ca24e65c73a4df13014a0a0cdc0
2017-10-05 19:40:48 -07:00
Kris Maglione
e11ba47925 Bug 1406278: Part 7 - Use subject principal as triggering principal in <input> "src" attribute. r=bz
MozReview-Commit-ID: 8DZOwqBrA2i

--HG--
extra : rebase_source : 9c2b4611f72f4aa18e67ef6f3b144c85a92b59e7
2017-10-05 16:19:19 -07:00
Kris Maglione
34083e453d Bug 1406278: Part 6 - Use subject principal as triggering principal in <source> "srcset" attribute for <picture>. r=bz
MozReview-Commit-ID: DFq3k9PSOgA

--HG--
extra : rebase_source : 03663e599b11c22d6dc3b7e2f826ecb0b147f04c
2017-10-05 15:59:15 -07:00
Kris Maglione
ba5df86019 Bug 1406278: Part 5b - Use subject principal as triggering principal in <source> "src" attribute for <audio>/<video>. r=bz
MozReview-Commit-ID: zZCXpvs719

--HG--
extra : rebase_source : 0de7f2abe0f06a0992f7f6c27db5eb67e6085635
2017-10-05 15:28:22 -07:00
Kris Maglione
ca83a2c304 Bug 1406278: Part 5a - Use subject principal as triggering principal in <audio>/<video> "src" attribute. r=bz
MozReview-Commit-ID: A1JixlTeZGq

--HG--
extra : rebase_source : 011984908aaacf0b90ea6e67c265dcce7b1779c4
2017-10-05 14:47:09 -07:00
Kris Maglione
154e5011a0 Bug 1406278: Part 4 - Use subject principal as triggering principal in <iframe>/<frame> "src" attribute r=bz
MozReview-Commit-ID: AgxZmfRvfTR

--HG--
extra : rebase_source : 5663f54ae3d03870d38107e1703902df5ade4b10
2017-10-04 22:59:44 -07:00
Kris Maglione
0641eb51a8 Bug 1406278: Part 3 - Use subject principal as triggering principal in <script> "src" attribute. r=bz
MozReview-Commit-ID: KwGIE4t7KUx

--HG--
extra : rebase_source : 7bc0f04178c5ea5a2b9b66960280f53e4a10e0cd
2017-10-04 22:16:32 -07:00
Kris Maglione
d038453393 Bug 1406278: Part 2c - Use subject principal as triggering principal in <img> "srcset" attribute. r=bz
MozReview-Commit-ID: 784EsgwBcS1

--HG--
extra : rebase_source : 01b701f84c425786b66cd9787d4e570dd9341ae5
2017-10-02 21:30:34 -07:00
Kris Maglione
d72aa193c4 Bug 1406278: Part 2b - Use subject principal as triggering principal in <img> "src" attribute. r=bz
MozReview-Commit-ID: DrblTjP99WJ

--HG--
extra : rebase_source : 649cf6757266c9e08a3f5a621c3e9451a7ccef67
2017-10-02 20:28:32 -07:00
Kris Maglione
4275cd1039 Bug 1406278: Part 1 - Pass subject principal to SetAttribute and friends. r=bz
In order to tailor certain security checks to the caller that is attempting to
load a particular piece of content, we need to be able to attach an
appropriate triggering principal to the corresponding requests. Since most
HTML content is loaded based on attribute values, that means capturing the
subject principal of the caller who sets those attributes, which means making
it available to AfterSetAttr hooks.

MozReview-Commit-ID: BMDL2Uepg0X

--HG--
extra : rebase_source : 25e438c243700a9368c393e40e3a6002d968d6c8
2017-10-09 14:33:38 -07:00
Peter Van der Beken
b2711ec3e9 Bug 1339853 - Make XPathExpression/XPathEvaluator arguments optional. r=bz.
--HG--
extra : rebase_source : 96d441625eaf8866aabcf255613c848921a194ae
extra : source : 00dd493a0b55f871d33fc08f514d7ea6ac5b875a
2017-09-28 18:14:46 +02:00
Ben Kelly
f9e5ee1ee2 Bug 1191943 P1 Implement PerformanceResourceTiming.workerStart. r=asuth 2017-10-06 09:04:54 -07:00
Peter Van der Beken
772f1ee5da Bug 1383059 - Remove instanceof for supplemental interfaces. Part 2: remove support for supplemental interfaces in instanceof code and remove unnecessary ChromeWindow interface. r=bz.
--HG--
extra : rebase_source : e8ce446e7f1844c6d1d352896873cbb865837632
extra : source : 944786dca81aed2e480562694bfabc6e5fbf1266
2017-07-05 23:01:04 +02:00
Peter Van der Beken
c705293c1c Bug 1383059 - Remove instanceof for supplemental interfaces. Part 1: add Window.isChromeWindow and switch |instanceof [nsIDOM]ChromeWindow| to use it instead. r=bz.
--HG--
extra : rebase_source : 1efc83abae922c1a7b7eb855fd10a6333615044b
extra : source : 32277b160af4739c812ca2750a39ca111b16ea69
2017-10-06 13:47:27 +02:00
Byron Campen [:bwc]
0c94395051 Bug 1377299: Add packet dump hooks r+drno r=drno,smaug
MozReview-Commit-ID: Jr7n49OOduG

--HG--
extra : rebase_source : 8880b8b6bf842f996f99e86fc45510e59e70a665
2017-06-29 19:14:06 -05:00
Bobby Holley
ef26283b2d Bug 1403397 - Revert: Add a testing API. r=bholley
This reverts commit 4194b7dd8ec748c044a9b8b0967fd9d652ea342c.
2017-10-03 14:05:56 -07:00
Wes Kocher
7c7aca4ea6 Backed out 2 changesets (bug 1305237) for crashtest failures in 403574-1.xhtml and 1282985-1.svg a=backout
Backed out changeset 96b5d596cc27 (bug 1305237)
Backed out changeset 5fe72402746f (bug 1305237)

MozReview-Commit-ID: CjCWY73Hps1

--HG--
extra : rebase_source : 7a9f0893dabdb0cb6ea79cc9cb7169ceed14616f
2017-10-02 16:41:56 -07:00
Shane Caraveo
359754d5e7 Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
MozReview-Commit-ID: 8gvEiqJEsP3

--HG--
extra : rebase_source : db5476ae895737b89df125c83468ea2e477e9af4
2017-10-02 15:11:54 -07:00
John Dai
25f8ec6929 Bug 1121994 - Implement adopted callback for custom elements. r=smaug 2017-10-02 00:42:00 -04:00
Olli Pettay
657d54de19 Bug 1402941 - Add HTMLSlotElement (disabled for now), r=hsivonen
--HG--
extra : rebase_source : ced3d844425bee6fddd22641646a7366ffd5d69e
2017-10-02 13:22:12 +03:00
Bobby Holley
bd4be52f46 Bug 1403397 - Add a testing API. r=bz,r=Manishearth
This will allow us to verify the entire detection pipeline in real nightly
builds, which will give us confidence that real heap corruption will be
detected and reported properly.

MozReview-Commit-ID: 43Fp2HT8RYy
2017-09-28 18:23:15 -07:00
Wes Kocher
134e495909 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6RdWW73Lc0A
2017-09-28 17:16:12 -07:00
Wes Kocher
1674eb3e4f Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -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
Thomas Wisniewski
cdaa875696 Bug 1389274 - Correct the behavior of Element.scrollIntoView to match the draft spec and pass web platform tests; r=annevk,bkelly
MozReview-Commit-ID: 3is36wstsdb

--HG--
extra : rebase_source : f4a7598aad5b04a2dcaf40d09ee7733b4d6982f6
2017-09-28 16:57:24 -04:00
Brad Werth
227f633bc7 Bug 1402942 Part 1: Use double precision math in computation of Window.devicePixelRatio. r=bz,heycam
MozReview-Commit-ID: 9OCtSgE6jYj

--HG--
extra : rebase_source : 16d12ea76dce60c062ea513f886a83dff317bfde
2017-09-25 11:53:09 -07:00
Sebastian Hengst
8b3a2fc88e Backed out changeset 8a970e561fe1 (bug 1389274) for unexpected passes of web-platform-test /cssom-view/scrollIntoView-shadow.html. r=backout 2017-09-28 19:46:03 +02:00
Thomas Wisniewski
86f49170db Bug 1389274 - Correct the behavior of Element.scrollIntoView to match the draft spec and pass web platform tests; r=annevk,bkelly
MozReview-Commit-ID: 3is36wstsdb

--HG--
extra : rebase_source : f063ca918d30998dc03c0c73206db495257758a2
2017-09-27 12:23:33 -04: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
Andrea Marchesini
04cd5ddc32 Bug 1402317 - Remove dom.abortController.enabled and dom.abortController.fetch.enabled prefs, r=qdot 2017-09-27 03:50:46 +02:00
Kyle Machulis
a3876f104a Bug 1389650 - Remove nsIDOMHTMLAnchorElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAnchorElement, replacing it
with binding class usage.

MozReview-Commit-ID: 7v0bKlY7Fax
2017-09-26 11:41:28 -07:00
Sebastian Hengst
5ed0b93c50 Backed out changeset 26805294a547 (bug 1389650) 2017-09-26 10:47:41 +02:00
Jessica Jong
9c73bf3115 Bug 1334044: Replace detached callback (v0) with disconnected callback (v1). r=smaug
MozReview-Commit-ID: 8jxFK1fze15
2017-09-26 13:56:11 +08:00
Jessica Jong
dca1a68e1a Bug 1334043 - Part 1: Replace attached callback (v0) with connected callback (v1). r=smaug
MozReview-Commit-ID: 3qQh4viyvBX
2017-09-26 13:55:58 +08:00
Kyle Machulis
e2ace7d91f Bug 1389650 - Remove nsIDOMHTMLAnchorElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAnchorElement, replacing it
with binding class usage.

MozReview-Commit-ID: 7v0bKlY7Fax
2017-09-25 23:12:44 -07:00
Wes Kocher
7bf1b49628 Merge inbound to central, a=merge
MozReview-Commit-ID: 7EzhCCVVn7n
2017-09-25 16:41:34 -07:00
Jonathan Kew
1b1aafb2e8 Bug 1402859 - Remove ENABLE_INTL_API conditional from webidl and dom/base code, now that it's true across all builds. r=smaug 2017-09-25 17:32:12 +01:00
Olli Pettay
c80e124562 Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap
--HG--
extra : rebase_source : 2bb600ed1ffd35c195617a7eb70d0ba847a46898
2017-09-25 18:09:26 +03:00
Andrea Marchesini
b49b5f31c9 Bug 1397151 - Remove the support for moz-chunk-text type in XHR, r=smaug 2017-09-22 07:18:49 +02:00
Andrea Marchesini
2071ba4680 Bug 1397145 - Remove the support for moz-blob type in XHR, r=smaug 2017-09-22 07:18:14 +02:00
Kris Maglione
0c3a1b9b7e Bug 1379148: Part 1 - Allow blocking only non-script-created parsers. r=hsivonen
MozReview-Commit-ID: 8cGxywiUzWj

--HG--
extra : rebase_source : b684a4a7d00c141a3def4f1cde9d7463c12baa4b
2017-09-20 16:12:27 -07:00
Tom Tromey
916228aee7 Bug 1399911 - preserve sourceURL comment directive on style sheets; r=bz,heycam
In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools.  This name is also used as the base
URL for the source-map URL resolution algorithm.  sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/

This patch changes Firefox to record this URL, if specified, and to
expose it (chrome-only) vai StyleSheet.webidl.

MozReview-Commit-ID: 7NwXsOf7nbY

--HG--
extra : rebase_source : bd5d25b4d44f5f220a4624db346edbc4236c9886
2017-09-14 14:59:32 -06:00
Boris Zbarsky
b4ae7df969 Bug 1400898 part 2. Get rid of the interface constants on nsIDOMChromeWindow. r=farre
MozReview-Commit-ID: 4FuJSgha5y3
2017-09-19 10:13:22 -04:00
Boris Zbarsky
3dc9073bd5 Bug 1400139 part 2. Make window.content non-enumerable. r=mystor
MozReview-Commit-ID: LQkEkdG8wKf
2017-09-18 21:24:38 -04:00
Boris Zbarsky
6b4983d30a Bug 864845 part 2. Make window.content chromeonly in nightly. r=mystor
MozReview-Commit-ID: Q7hTmngEgI
2017-09-12 15:33:10 -04:00
Shane Caraveo
85604b0c2b Bug 1393150 prevent remote extensions when e10s is off, r=bz,kmag
MozReview-Commit-ID: HjLLa9vx2UW

--HG--
extra : rebase_source : d37088f31931a74ef2c40dc510794ebc5f4931ab
2017-09-14 15:12:45 -07:00
Ryan VanderMeulen
fc0fb3cc9a Merge m-c to autoland. a=merge 2017-09-13 20:37:40 -04:00
Ryan VanderMeulen
3fc86b0be1 Backed out 2 changesets (bug 864845) for causing bug 1399649.
Backed out changeset c991b71d3642 (bug 864845)
Backed out changeset 9e6a4d96cf76 (bug 864845)
2017-09-13 19:23:12 -04:00
Andrea Marchesini
57228a9b15 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Andrea Marchesini
abd6b28844 Bug 1359017 - onmessageerror for Workers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Andrea Marchesini
f59c3de953 Bug 1359017 - onmessageerror for BroadcastChannel in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Andrea Marchesini
ab8673f32d Bug 1359017 - onmessageerror for MessagePort in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:05 +02:00
Sebastian Hengst
643376d693 Backed out changeset a8d6f6fd7bda (bug 1359017) for failing wpt's /html/dom/reflection-forms.html. r=backout 2017-09-13 08:56:53 +02:00
Sebastian Hengst
92d408093a Backed out changeset 354139a05e75 (bug 1359017) 2017-09-13 08:56:23 +02:00
Sebastian Hengst
264522f53d Backed out changeset 9248962260f9 (bug 1359017) 2017-09-13 08:56:18 +02:00
Sebastian Hengst
66969c6b7b Backed out changeset 7b45c1aebf7f (bug 1359017) 2017-09-13 08:56:13 +02:00
Andrea Marchesini
68fed142b9 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Andrea Marchesini
977186322a Bug 1359017 - onmessageerror for Workers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Andrea Marchesini
f3bcbfa12b Bug 1359017 - onmessageerror for BroadcastChannel in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Andrea Marchesini
456461ba4d Bug 1359017 - onmessageerror for MessagePort in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:05 +02:00
Boris Zbarsky
101a69d71a Bug 864845 part 2. Make window.content chromeonly. r=mystor
MozReview-Commit-ID: Q7hTmngEgI
2017-09-12 15:33:10 -04:00
Masatoshi Kimura
60816b85fa Bug 1398445 - Remove window._content. r=mystor,qdot
MozReview-Commit-ID: 13KovslzGnM

--HG--
extra : rebase_source : 801700a3dc0b1ca207e3b47e9f6433fbd2d00505
2017-09-09 10:47:48 +09:00
Sebastian Hengst
13f018a460 Backed out changeset 78cd991b074f (bug 1359017) for rooting hazards and unexpected passes in wpt's /html/dom/interfaces.html. r=backout on a CLOSED TREE 2017-09-12 14:17:46 +02:00
Sebastian Hengst
db70a75d27 Backed out changeset 8936320bf355 (bug 1359017) 2017-09-12 14:16:42 +02:00
Sebastian Hengst
e313ec3dd9 Backed out changeset 65146cc073d4 (bug 1359017) 2017-09-12 14:16:37 +02:00
Sebastian Hengst
f155e6119f Backed out changeset e28d6869f6a0 (bug 1359017) 2017-09-12 14:16:31 +02:00
Andrea Marchesini
92ba78b8c0 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-12 11:57:26 +02:00
Andrea Marchesini
c9ef43bdda Bug 1359017 - onmessageerror for Workers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-12 11:57:26 +02:00
Andrea Marchesini
1f151318f4 Bug 1359017 - onmessageerror for BroadcastChannel in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-12 11:57:26 +02:00
Andrea Marchesini
df522b457d Bug 1359017 - onmessageerror for MessagePort in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-12 11:57:26 +02:00
Sebastian Hengst
e748f212a3 Backed out changeset 27f3e967a340 (bug 864845) 2017-09-09 22:35:59 +02:00
Boris Zbarsky
a1cf4fc819 Bug 864845 part 2. Make window.content chromeonly. r=mystor 2017-09-09 04:29:51 -04:00
Michael Layzell
63ecbc4c55 Bug 1199729 - Part 4: Update EventUtils to simulate drag events more accurately, r=baku 2017-09-08 11:05:08 -04: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
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
30a2ef9ec1 Bug 1402944: Part 7 - Move traceable channel registration to ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 6hGmh4VpJMQ

--HG--
extra : rebase_source : 082f3cb19ec957b81536b67a56969ba714e81e79
2017-09-27 18:15:39 -07:00
Kris Maglione
89ae1721a0 Bug 1402944: Part 5 - Move request filtering and permission matching into ChannelWrapper. r=mixedpuppy,ehsan
This allows us to reuse the same URLInfo objects for each permission or
extension that we match, and also avoids a lot of XPConnect overhead we wind
up incurring when we access URI objects from the JS side.

MozReview-Commit-ID: GqgVRjQ3wYQ

--HG--
extra : rebase_source : 71c19fd8b432c16a3f13f7d0bd0424064f3e5661
2017-09-27 18:15:12 -07:00
Kris Maglione
e3089ef89e Bug 1402944: Part 4 - Fold start/stop listener into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 52zZNjgaCEj

--HG--
extra : rebase_source : c608625921d6cbf35dd7c4719df2438a9b0e3905
2017-09-26 13:39:30 -07:00
Kris Maglione
ff2dd2a70a Bug 1402944: Part 3 - Move error checks into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 7uLonYWnLcX

--HG--
extra : rebase_source : cf89bfe98adc699b74230356ce3cb99cc16d5af6
2017-09-26 13:38:54 -07:00
Kris Maglione
f80c50c88d Bug 1402944: Part 2 - Move error string logic into ChannelWrapper. r=mixedpuppy,ehsan
MozReview-Commit-ID: 4rOeoliLTV7

--HG--
extra : rebase_source : 3e9b1151e8dbc812623ae2fd05895b7362e322f1
2017-09-22 18:43:18 -07:00
Kris Maglione
8494f907e7 Bug 1402944: Part 1 - Document undocumented ChannelWrapper members. r=mixedpuppy,ehsan
MozReview-Commit-ID: bdKJKfB6H7

--HG--
extra : rebase_source : 7727928abae62aab3f22c24336c57365909d8e6a
2017-09-22 18:00:39 -07:00
Sebastian Hengst
8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
Kris Maglione
d6b735f9d2 Bug 1397536: Avoid newURI overhead for MatchPattern. r=ehsan,mixedpuppy
Ehsan, can you please review the (trivial) WebIDL changes, and Shane the
WebRequest logic?

The change to allow strings in MatchPattern arguments removes a huge amount of
XPConnect overhead that accumulates when creating nsIURI objects for
WebRequest processing.

The change to re-use existing URI objects removes a huge amount of URI
creation overhead.

MozReview-Commit-ID: 3DJjAKJK1Sa

--HG--
extra : rebase_source : 585a1c3c136ed1c5014f680ae81f635c8d1a2931
2017-09-06 21:56:45 -07:00
Kris Maglione
d55de0c717 Bug 1396856: Part 3 - Add a WebIDL wrapper class for necko channels. r=ehsan,mixedpuppy
Ehsan, can you please review the DOM bindings, and Shane the request logic?

The bulk of the overhead WebRequest API is in its access to nsIChannel and
friends through XPConnect. Since it's not really feasible to convert channels
to use WebIDL bindings directly, this generic channel wrapper class serves the
same purpose.

MozReview-Commit-ID: 4mNP8HiKWK

--HG--
extra : rebase_source : 111687dd0925619b5d93447aecffacd5d53532ef
2017-09-06 14:38:23 -07:00
dmu@mozilla.com
280b27a0fb Bug 1359055 - Part 1: PBO offset for WebGL compressedTexImage; r=baku,jgilbert
MozReview-Commit-ID: LN2diy41A2Z

--HG--
extra : rebase_source : d77ee2b289348e0609bac248dfab670c72623fa0
2017-07-18 18:02:57 +00:00
Nils Ohlmeier [:drno]
8c19cc6c3b Bug 1264479: added current and pending descriptions to PeerConnection.webidl. r=smaug
MozReview-Commit-ID: 3Ud3pUP1GUh

--HG--
extra : rebase_source : 06c0db3005c85f473a7d8f87a05299c9e213f5e4
2017-08-30 14:29:28 -07:00
Tom Tromey
c355a3b8b9 Bug 1388855 - Extract source map URL when parsing CSS, r=bz,heycam
This changes the CSS lexer to extract sourceMappingURL directives from
comments and preserve them; then changes the parser to expose this value
as the style sheet's sourceMapURL.

MozReview-Commit-ID: LfMamJ1PsU0

--HG--
extra : rebase_source : 258827720282d415f97f1d49d870b7c2448d39f4
2017-08-09 13:33:24 -06:00
Hiroyuki Ikezoe
53ea279d4e Bug 1396219 - Support PerformanceObserverInit.buffered. r=baku
MozReview-Commit-ID: FhVZquBoC6F

--HG--
extra : rebase_source : 550192da86e26b1a0056d89546e83644e19bbcbb
2017-09-03 10:25:57 +09:00
Kris Maglione
e29233744c Bug 1255894: Part 6 - Implement StreamFilter DOM bindings. r=baku,mixedpuppy
MozReview-Commit-ID: 6EaVrIep1gC

--HG--
extra : rebase_source : 0ab8311a87ed6c5bcaa3216a1d84793f76143821
2017-08-27 19:51:36 -07:00
Valentin Gosu
f59511657b Bug 1263722 - Implement performance navigation timing r=baku
MozReview-Commit-ID: 9rJ3J6SqiDX
* * *
[mq]: test.patch

MozReview-Commit-ID: IYXp5G3iNSi

--HG--
extra : rebase_source : 42ef00dea8c7dff60743c1119faf4a76e8f59ae5
2016-04-17 22:03:28 +02:00
Sebastian Hengst
b9a549d819 Backed out changeset 6827b7bf9116 (bug 1263722) for leaks detected on mochitest shutdown. r=backout 2017-09-25 09:57:13 +02:00
Valentin Gosu
d5c34da10e Bug 1263722 - Implement performance navigation timing r=baku
MozReview-Commit-ID: 9rJ3J6SqiDX
* * *
[mq]: test.patch

MozReview-Commit-ID: IYXp5G3iNSi

--HG--
extra : rebase_source : 5f2efdcf2cbd9f3b80752b59f083e32654a32e61
2016-04-17 22:03:28 +02:00
Sebastian Hengst
ce3e00458b Backed out changeset 44ff3bc7bee5 (bug 1063635) for failing xpcshell's toolkit/components/osfile/tests/xpcshell/test_read_write.js on Linux x64 debug. r=backout 2017-09-01 15:54:56 +02:00
MilindL
02b99ee53a Bug 1063635 Part 1 - Add native code for OS.File.writeAtomic. r=smaug,Yoric
MozReview-Commit-ID: 2TKZh6jCsq5

--HG--
extra : rebase_source : b10915c559fd365c46081a3882de358182af2b78
2017-06-27 13:10:11 +05:30
Andrea Marchesini
1df07a3979 Bug 1395141 - RequestInit dictionary must have AbortSignal as optional, r=bkelly 2017-08-30 18:47:23 +02:00
Sebastian Hengst
2a9cc8e3be merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BQuBmVtsdki
2017-08-29 20:30:41 +02:00
Andrea Marchesini
f533937740 Bug 1378342 - AbortSignal/AbortController - part 6 - Implement Request.signal, r=bkelly 2017-08-29 11:31:06 +02:00
Andrea Marchesini
031018437a Bug 1378342 - AbortSignal/AbortController - part 4 - Separate pref for AbortSignal/AbortController, r=bkelly
--HG--
rename : dom/abort/tests/file_abort_controller.html => dom/abort/tests/file_abort_controller_fetch.html
rename : dom/abort/tests/test_abort_controller.html => dom/abort/tests/test_abort_controller_fetch.html
rename : dom/abort/tests/worker_abort_controller.js => dom/abort/tests/worker_abort_controller_fetch.js
2017-08-29 11:31:06 +02:00
Andrea Marchesini
6e67fd43cc Bug 1378342 - AbortSignal/AbortController - part 3 - Removing the following algorithm, r=bkelly 2017-08-29 11:31:06 +02:00
Andrea Marchesini
186795d3eb Bug 1378342 - AbortSignal/AbortController - part 2 - Renaming FetchController/FetchSignal, r=bkelly
--HG--
rename : dom/abort/FetchController.cpp => dom/abort/AbortController.cpp
rename : dom/abort/FetchController.h => dom/abort/AbortController.h
rename : dom/abort/FetchSignal.cpp => dom/abort/AbortSignal.cpp
rename : dom/abort/FetchSignal.h => dom/abort/AbortSignal.h
rename : dom/abort/tests/file_fetch_controller.html => dom/abort/tests/file_abort_controller.html
rename : dom/abort/tests/test_fetch_controller.html => dom/abort/tests/test_abort_controller.html
rename : dom/abort/tests/worker_fetch_controller.js => dom/abort/tests/worker_abort_controller.js
rename : dom/webidl/FetchController.webidl => dom/webidl/AbortController.webidl
rename : dom/webidl/FetchSignal.webidl => dom/webidl/AbortSignal.webidl
2017-08-29 11:31:06 +02:00
Sebastian Hengst
ffe4336403 Backed out changeset e5c6f95530f2 (bug 1378342)
--HG--
rename : dom/abort/AbortController.cpp => dom/abort/FetchController.cpp
rename : dom/abort/AbortController.h => dom/abort/FetchController.h
rename : dom/abort/AbortSignal.cpp => dom/abort/FetchSignal.cpp
rename : dom/abort/AbortSignal.h => dom/abort/FetchSignal.h
rename : dom/abort/tests/file_abort_controller.html => dom/abort/tests/file_fetch_controller.html
rename : dom/abort/tests/test_abort_controller.html => dom/abort/tests/test_fetch_controller.html
rename : dom/abort/tests/worker_abort_controller.js => dom/abort/tests/worker_fetch_controller.js
rename : dom/webidl/AbortController.webidl => dom/webidl/FetchController.webidl
rename : dom/webidl/AbortSignal.webidl => dom/webidl/FetchSignal.webidl
2017-08-29 09:17:21 +02:00
Sebastian Hengst
d71637fab2 Backed out changeset 203ad2fab9aa (bug 1378342) 2017-08-29 09:17:15 +02:00
Sebastian Hengst
12299a2c87 Backed out changeset bded779447b2 (bug 1378342)
--HG--
rename : dom/abort/tests/worker_abort_controller_fetch.js => dom/abort/tests/worker_abort_controller.js
2017-08-29 09:17:10 +02:00
Sebastian Hengst
80e618e605 Backed out changeset 2c6f49d73935 (bug 1378342) 2017-08-29 09:16:59 +02:00
Andrea Marchesini
afa1c0c6c4 Bug 1378342 - AbortSignal/AbortController - part 6 - Implement Request.signal, r=bkelly 2017-08-29 07:30:21 +02:00
Andrea Marchesini
60b5326da5 Bug 1378342 - AbortSignal/AbortController - part 4 - Separate pref for AbortSignal/AbortController, r=bkelly
--HG--
rename : dom/abort/tests/file_abort_controller.html => dom/abort/tests/file_abort_controller_fetch.html
rename : dom/abort/tests/test_abort_controller.html => dom/abort/tests/test_abort_controller_fetch.html
rename : dom/abort/tests/worker_abort_controller.js => dom/abort/tests/worker_abort_controller_fetch.js
2017-08-29 07:30:20 +02:00
Andrea Marchesini
df2bbaffa3 Bug 1378342 - AbortSignal/AbortController - part 3 - Removing the following algorithm, r=bkelly 2017-08-29 07:30:20 +02:00
Andrea Marchesini
9b66f91da8 Bug 1378342 - AbortSignal/AbortController - part 2 - Renaming FetchController/FetchSignal, r=bkelly
--HG--
rename : dom/abort/FetchController.cpp => dom/abort/AbortController.cpp
rename : dom/abort/FetchController.h => dom/abort/AbortController.h
rename : dom/abort/FetchSignal.cpp => dom/abort/AbortSignal.cpp
rename : dom/abort/FetchSignal.h => dom/abort/AbortSignal.h
rename : dom/abort/tests/file_fetch_controller.html => dom/abort/tests/file_abort_controller.html
rename : dom/abort/tests/test_fetch_controller.html => dom/abort/tests/test_abort_controller.html
rename : dom/abort/tests/worker_fetch_controller.js => dom/abort/tests/worker_abort_controller.js
rename : dom/webidl/FetchController.webidl => dom/webidl/AbortController.webidl
rename : dom/webidl/FetchSignal.webidl => dom/webidl/AbortSignal.webidl
2017-08-29 07:30:19 +02:00
Ryan VanderMeulen
afcf43248f Backed out revision 2e5306010ce1 (bug 1389421) due to unresolved spec issues. 2017-08-28 15:20:55 -04:00
Jessica Jong
acd0223fec Bug 1334051 - Part 1: Include namespace in attributeChangedCallback. f=jdai, r=smaug
Per spec [1], we should include namesapce in attributeChangedCallback argurment
list.

[1] https://html.spec.whatwg.org/multipage/custom-elements.html#concept-upgrade-an-element, step 3

MozReview-Commit-ID: 3K6SeIr3FJX
2017-08-27 23:25:00 -04:00
John Lin
bad6535260 Bug 842782 - p2: introduce attributes for orientation lock to video element. r=jwwang,smaug
MozReview-Commit-ID: odq1y9qH1
2017-08-28 18:15:31 +08:00
Alastor Wu
f570c3c5ec Bug 1373888 - part1 : remove useless function. r=cpearce,smaug
These functions didn't be used by anyone, remove them.

MozReview-Commit-ID: BLj8GsVp1gR

--HG--
extra : rebase_source : 1b7eee86c62314401c2374a2979ba2a42fda2490
2017-08-29 10:54:18 +08:00
Andrea Marchesini
8aeaa4ff79 Bug 1392358 - Introduce XHR.sendInputStream(nsIInputStream) chrome-only, r=smaug 2017-08-25 15:31:15 +02:00
Andrea Marchesini
a1e210edec Bug 1392358 - Remove XHR.send(nsIInputStream) and unify XHR.send(params) as the spec says, r=smaug 2017-08-25 15:30:33 +02:00
Ryan VanderMeulen
3d0158833d Merge autoland to m-c. a=merge 2017-08-24 20:20:08 -04:00
Kris Maglione
13e61f79f9 Bug 1391405: Part 5 - Add helper for retrieving the enumerable value properties of a cross-compartment object. r=gabor,qdot
As part of the normalization process for WebExtension API calls, we need to
extract and validate the full set of value properties (including properties
X-rays would normally deny access to) from cross-compartment objects. This
currently involves waiving X-rays, enumerating property descriptors, and
unwaiving X-rays - all through X-ray wrappers and waivers - and generating a
lot of expensive and short-lived wrappers in-between.

This helper reads out the list of safe properties from within the object's
compartment, and then copies them over to an object in the target compartment,
without any X-ray overhead, or any unnecessary intermediate wrappers or
compartment switches. It cuts about 40% off the overhead of our normalization
code.

MozReview-Commit-ID: H582oAYocaX

--HG--
extra : rebase_source : 7f7d5df605bc6544cb7f1c0c7e224d81b211e09c
extra : histedit_source : f980a03413b5e65fc6fa272c012a769d2764d89b
2017-08-24 13:33:40 -07:00
Kris Maglione
85754fb12a Bug 1391405: Part 1 - Add WebIDL versions of much used Components.utils helpers. r=gabor,qdot
In the code that I'm profiling, the XPC WrappedNative overhead of calling
these functions adds up to about a quarter of the time spent executing the
code. The overhead of the WebIDL versions is negligible.

MozReview-Commit-ID: 30qJy5RtP9d

--HG--
extra : rebase_source : 4fe73f4b9bde052a0eadf7d5634f792e16ca1c94
extra : histedit_source : ec61152a0181f3b0e28023c951e7181c43216d2f
2017-08-18 11:10:10 -07:00
Sebastian Hengst
ab6a6e1367 merge mozilla-central to autoland. r=merge a=merge 2017-08-24 13:30:00 +02:00
Kris Maglione
90f1e3558c Bug 1391110: Part 3 - Add nsIWebBrowserPersistable to FrameLoader bindings. r=smaug
MozReview-Commit-ID: 8mBNbgmrXBV

--HG--
extra : rebase_source : d553bca30c3fa4affc9e6ee9e65e5b4000e0cac2
2017-08-19 14:16:16 -07:00
Kris Maglione
470160f420 Bug 1391110: Part 1 - Convert FrameLoader bindings to WebIDL. r=smaug
XPConnect wrapper overhead for this interface has been showing up heavily in a
lot of my profiles, in some places accounting for 50ms of the 80ms we spend
getting getting <browser> messageManagers. This improves the situation
considerably.

MozReview-Commit-ID: 9d1hCORxsYG

--HG--
rename : dom/base/nsIFrameLoader.idl => dom/webidl/FrameLoader.webidl
extra : rebase_source : d8a1fc1a19632ba36a9fc6f63873f7534671a13b
2017-08-19 00:55:00 -07:00
Wes Kocher
6dd42e2664 Merge inbound to central, a=merge
MozReview-Commit-ID: BMWuqvmTljV
2017-08-22 17:07:23 -07:00
Alexandre Poirot
f96db08ae3 Bug 1388709 - Remove console originAttributes property. r=baku,kmag
MozReview-Commit-ID: jwUAKSEgZE

--HG--
extra : rebase_source : e83b048165998e750f7c169a9b8b8b9d700a3cf8
2017-08-08 14:30:44 +02:00
Aryeh Gregor
1b3b415680 Bug 1389421 - Support nonce IDL property; r=ckerschb,smaug
We already support the actual functionality, but nobody added support
for the IDL property to the .webidl file.

Also added <style nonce> to the web-platform-tests reflection tests,
since nobody updated that to the current spec either.

This does not add support for .nonce to SVGScriptElement, because I
couldn't find any standard that specified it.  I updated the wpt tests
to expect .nonce to work on HTMLScriptElement but not SVGScriptElement.

MozReview-Commit-ID: F1K7WMfMoDi

--HG--
extra : rebase_source : 247c63b63446dc0d60062bb9d9c61228c379b989
2017-08-21 14:49:44 +03:00
Jan de Mooij
2cc6df95c3 Bug 1392554 - Port (Async)StatementParams to WebIDL bindings. r=asuth,qdot 2017-08-24 10:52:52 +02:00
Jan de Mooij
3912244f0b Bug 1390489 - Port StatementRow to WebIDL bindings. r=asuth,qdot 2017-08-22 09:25:37 +02:00
Eric Rahm
9732475fe0 Bug 1389598 - Part 3: Remove gonk references from dom/ r=bkelly
--HG--
extra : rebase_source : 94a2b34b21cfde0c0ebda1045e9d30c6b88a1557
2017-08-11 17:42:11 -07:00
Kris Maglione
7788abbf4f Bug 1356334: Part 4 - Add a helper to synchronously get an extension's name from its ID. r=billm
MozReview-Commit-ID: 8nuvM4PR7XR

--HG--
extra : source : b2a663ffd1446f9f70b220866855a0ecb3503761
extra : histedit_source : 16847e7aececf6c944bbb6b21639629c60bcdc93
2017-08-11 21:22:18 -07:00
Ryan VanderMeulen
3fe1f45009 Backed out 8 changesets (bug 1356334) for frequent test_ext_contentscript_async_loading.html failures on Android debug on a CLOSED TREE.
Backed out changeset 9c677ebfdda0 (bug 1356334)
Backed out changeset 16b49fd1c38a (bug 1356334)
Backed out changeset 4f5bcd2b2dc6 (bug 1356334)
Backed out changeset d832803270ac (bug 1356334)
Backed out changeset b83aea215a82 (bug 1356334)
Backed out changeset b2a663ffd144 (bug 1356334)
Backed out changeset 805c56806930 (bug 1356334)
Backed out changeset 7c880eca810a (bug 1356334)
2017-08-18 11:32:18 -04:00
Kris Maglione
03b92c5149 Bug 1356334: Part 4 - Add a helper to synchronously get an extension's name from its ID. r=billm
MozReview-Commit-ID: 8nuvM4PR7XR

--HG--
extra : rebase_source : fecadb38ca64afeb83f1b7b999295586e9c55944
2017-08-11 21:22:18 -07:00
Ho-Pang Hsu
502a2f107a Bug 1353636 - Part 2: Expose ServieworkerRegistration.updateViaCache. r=bkelly
--HG--
extra : rebase_source : 51eb4aebc78f0e48487e88ce5f9f9b70bf8efadd
2017-08-16 14:21:29 +08:00
Ho-Pang Hsu
3f781402a4 Bug 1353636 - Part 1: Move from nsLoadFlags to UpdateViaCache. r=bkelly
--HG--
extra : rebase_source : 063c490f52a006f1c46f63cd07e9f93b6d15ccde
2017-08-16 14:18:52 +08:00
Aryeh Gregor
6135e3dc8e Bug 1388391 - Track DOMError usage with telemetry; r=francois,smaug
MozReview-Commit-ID: A0kH6xsg4mm

--HG--
extra : rebase_source : 180284e82b5f927350b9fd2a47681fc95d95ff5f
2017-08-08 17:43:32 +03:00
Carsten "Tomcat" Book
4d2af4ff71 Backed out changeset 417e576cfa1e (bug 1388391) on developers request 2017-08-16 14:23:09 +02:00
Aryeh Gregor
c246fd1c3e Bug 1388391 - Track DOMError usage with telemetry; r=francois,smaug
MozReview-Commit-ID: A0kH6xsg4mm

--HG--
extra : rebase_source : b5cf64f9adb94093a565d8b436b14d4c38a39af3
2017-08-08 17:43:32 +03:00
Bryce Van Dyk
751da7c177 Bug 1275856 - Remove now unused RecrodErrorEvent. r=jib,smaug
MozReview-Commit-ID: GK7L2U6sZSS

--HG--
extra : rebase_source : e906a6deca9167f30d3448dbae0460bfdd0235ce
2017-08-04 11:41:22 +12:00
Bryce Van Dyk
b37a1720f8 Bug 1275856 - Add MediaRecorderErrorEvent webidl files and update moz.build. r=jib,smaug
This adds the webidl definition of the MediaRecorderErrorEvent given in the
spec. It also updates the build system to give us generated C++ code for this
event.

MozReview-Commit-ID: Bi1f0tD9iUj

--HG--
extra : rebase_source : 0cb10aab1a8a8fd7720c5d069cf4ac65817a9855
2017-07-25 08:46:59 +12:00
Aryeh Gregor
11e2c13fc6 Bug 1390170 - DOMException.prototype should have .message and .name r=bkelly
The spec requires that they be interface members:

  https://heycam.github.io/webidl/#idl-DOMException

This means they're on the prototype.  This change brings us in line with
Chrome, Edge, and WebKit, as tested by
<https://github.com/w3c/web-platform-tests/pull/6875>.

MozReview-Commit-ID: A1cKpmlCNCs

--HG--
extra : rebase_source : 1bce93cdb44fe6718289a86314bbe8ab4afea6ed
2017-08-14 18:52:18 +03:00
Aryeh Gregor
2df3e475b4 Bug 1387828 - Reinstate support for initKeyboardEvent; r=smaug
https://github.com/w3c/uievents/issues/112

This is supported by all other UAs.  In the past we had compatibility
problems when trying to add support, but it seems these might be fixed
if we make all arguments optional beyond the first.

The interface chosen for the method is from the spec, which has been
updated to match Chrome.  This is also very similar to WebKit, but the
final four arguments are different from IE.

MozReview-Commit-ID: 36AeX1JwJTt

--HG--
extra : rebase_source : 28b298d370f0f9a5ab4090a71a2aae91f1d90025
2017-08-06 16:52:39 +03:00
Aryeh Gregor
2340265246 Bug 718711 - getSelection() should exist for XML documents; r=smaug
The spec puts it on the Document interface, not HTMLDocument, so it
should apply to XML documents as well.  In general we want APIs to be
available for all types of documents unless there's a specific reason
not to.

Tests submitted upstream:
https://github.com/w3c/web-platform-tests/pull/6804

MozReview-Commit-ID: A0QDxpONNCE

--HG--
extra : rebase_source : 0c84863b455c3e9748aedcfb562920f8679e358c
2017-08-10 16:53:42 +03:00
Chung-Sheng Fu
7a392d6952 Bug 1382499 - Enhance fingerprinting resistance for Touch API r=arthuredelstein,bz
MozReview-Commit-ID: 8nzOkvIvwrD

--HG--
extra : rebase_source : 15cfa77ffc639838d6345fa4bffc7079d8d198e7
2017-07-31 17:30:38 +08:00
Wes Kocher
eb3058e466 Backed out 3 changesets (bug 1382499) for eslint failures a=backout
Backed out changeset 0ebb9924affa (bug 1382499)
Backed out changeset c25b50b0edc5 (bug 1382499)
Backed out changeset 1dcdc22d4919 (bug 1382499)

MozReview-Commit-ID: 9rygU1QF1kb
2017-08-11 13:49:34 -07:00
Wes Kocher
a5fc391fdf Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
Wes Kocher
5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Chung-Sheng Fu
c28d4be7b3 Bug 1382499 - Enhance fingerprinting resistance for Touch API r=arthuredelstein,bz
MozReview-Commit-ID: 8nzOkvIvwrD

--HG--
extra : rebase_source : 15cfa77ffc639838d6345fa4bffc7079d8d198e7
2017-07-31 17:30:38 +08:00
Wes Kocher
cff9e9b197 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Wes Kocher
47df5726ac Backed out 6 changesets (bug 1275856) for failures in test_interfaces.html and test_all_synthetic_events.html a=backout
Backed out changeset d229d269ac55 (bug 1275856)
Backed out changeset 2fb8d23f1ece (bug 1275856)
Backed out changeset 210e8d6d5f85 (bug 1275856)
Backed out changeset 38739c5a3ae8 (bug 1275856)
Backed out changeset 1c8e6dd99100 (bug 1275856)
Backed out changeset 407dc5f8de5b (bug 1275856)

MozReview-Commit-ID: CeTwTrzfY2P
2017-08-10 16:32:12 -07:00
Sebastian Hengst
51d351f567 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-10 17:41:11 +02:00
Matthew Gregan
12c83fb1ba Bug 1388236 - Remove B2G-only AudioChannel code from dom/webidl. r=smaug 2017-08-11 00:56:49 +12:00
Bryce Van Dyk
d30ae6e711 Bug 1275856 - Remove now unused RecrodErrorEvent. r=jib,smaug
MozReview-Commit-ID: GK7L2U6sZSS

--HG--
extra : rebase_source : e906a6deca9167f30d3448dbae0460bfdd0235ce
2017-08-04 11:41:22 +12:00
Bryce Van Dyk
02f1e4cbb7 Bug 1275856 - Add MediaRecorderErrorEvent webidl files and update moz.build. r=jib,smaug
This adds the webidl definition of the MediaRecorderErrorEvent given in the
spec. It also updates the build system to give us generated C++ code for this
event.

MozReview-Commit-ID: Bi1f0tD9iUj

--HG--
extra : rebase_source : 0cb10aab1a8a8fd7720c5d069cf4ac65817a9855
2017-07-25 08:46:59 +12:00
btian
1acd604a98 Bug 1384030 - Enable setting <input type=file>.files. r=smaug 2017-08-08 17:49:48 +08:00
Thomas Wisniewski
357b81bcfd Bug 1388591 - Implement OfflineAudioCanvas dict constructor; r=padenot,smaug
MozReview-Commit-ID: F9h9JO5tYeU

--HG--
extra : rebase_source : 111cb0d4a574cce4d5c8869e5953dfbb68d01e72
2017-08-08 22:55:43 -04:00
Carsten "Tomcat" Book
c329d562fb merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
Eric Rahm
01f545fea7 Bug 1386825 - Part 1: Remove MOZ_B2G from dom. r=bkelly
MozReview-Commit-ID: 1zzP2r01B7U
2017-08-08 14:41:05 -07:00
Blake Kaplan
263a31a811 Bug 1374460 - Remove all code related to showModalDialog. r=smaug
MozReview-Commit-ID: GCGwBfIx2SJ

--HG--
extra : rebase_source : 44108de8ebbd9c0d8ed9ab69d50ad973c4883b6e
2017-07-13 16:42:03 -07:00
Aryeh Gregor
ac0f3aab46 Bug 1388132 - Enable use counter for XMLDocument.async; r=francois,smaug
This API is not implemented by other browsers and we want to ensure
there isn't significant usage before removing it.

MozReview-Commit-ID: Kb3HyJW6hGB

--HG--
extra : rebase_source : deb7013ef20194fa9282dbe4390d37e8c2efc68e
2017-08-08 14:00:06 +03:00
Masatoshi Kimura
49e04cc095 Bug 1149830 - Remove nsIStackFrame::language. r=bz,mccr8
MozReview-Commit-ID: LxTiLFzNJ9Y

--HG--
extra : rebase_source : 98ca14aa59a62309dcbe0c9ed3e961c730ff9db9
2017-08-03 15:50:07 +09:00
Aryeh Gregor
ca4b09e233 Bug 1359157 - Support Selection.type from spec; r=smaug
All other browsers already support it, more or less interoperably.

MozReview-Commit-ID: 4VoOeqBoKI0

--HG--
extra : rebase_source : fdd5198cc5fe8c2175242ddcc170947e7ca592b9
2017-08-03 17:13:24 +03:00
Wes Kocher
5df77c43f9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IJRYyJu1sWm
2017-08-02 17:42:10 -07:00
Nicholas Nethercote
f5c5231809 Bug 1382955 (part 1) - Remove MozPowerManager and related things. r=bz,gsvelto.
This includes the FactoryReset stuff.
2017-08-02 10:04:36 +10:00
Brad Werth
a379a4b87a Bug 1302513 Part 2: Remove declaration of getAuthoredPropertyValue from webidl. r=bholley,dholbert
MozReview-Commit-ID: 63khMKDdIBT

--HG--
extra : rebase_source : d269423c5d7197f0bd1d494aed67f16302caced2
2017-07-21 14:14:19 -07:00
Andrea Marchesini
e44cd2d765 Bug 1128959 - Implement the WHATWG Streams spec - part 9 - FetchStreamReader, r=bkelly 2017-08-10 18:04:55 -07:00
Andrea Marchesini
3a14f6c21f Bug 1128959 - Implement the WHATWG Streams spec - part 7 - Response.body, r=bkelly 2017-08-10 18:04:55 -07:00
Andrea Marchesini
7e57abcf58 Bug 1128959 - Implement the WHATWG Streams spec - part 5 - Disable StreamS API by default, r=bkelly 2017-08-10 18:04:55 -07:00
Andrea Marchesini
3b86092f16 Bug 1128959 - Implement the WHATWG Streams spec - part 4 - Fetch implementation, r=bkelly 2017-08-10 18:04:54 -07:00
Andrea Marchesini
99819a81c8 Bug 1128959 - Implement the WHATWG Streams spec - part 2 - Use of ReadableStream in WebIDL files, r=bkelly 2017-08-10 18:04:54 -07:00
Kyle Machulis
ffa9be1bed Bug 1279218 - Remove Applet tag; r=bz
Removes applet tag interfaces, and changes HTML5 parser to output
HTMLUnknownElement when tag is found. Removes tag process from various
places in the browser.

MozReview-Commit-ID: 2zHhK2U2esX

--HG--
extra : rebase_source : d06ecaffd1cb656301e29b900bafde4c68a4606e
2017-07-10 16:00:30 -07:00
Luke Chang
491deaf2a1 Bug 1362290 - Support non-experimental autocomplete pref. r=baku
MozReview-Commit-ID: LABuNLbq2Io

--HG--
extra : rebase_source : 3902adee74ef95ff144325d7b77c13192133d3e7
2017-07-27 11:41:15 +08:00