Граф коммитов

5831 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell bb337a8abf Bug 1489301 - Part 5: Expose all System-only objects on Window, r=bzbarsky
There is a limited number of these, and this allows me to completely remove
mention of the 'System' global.

In the future System-only exposure could be achieved using a [Func] enabler.

Differential Revision: https://phabricator.services.mozilla.com/D9400
2018-10-22 20:17:14 -04:00
Nika Layzell 0562b4b23b Bug 1489301 - Part 4: Remove unnecessary [Exposed=System] annotations, r=bzbarsky
We don't need to expose on both Window and System anymore, as Window now
implies System. I don't remove unnecessary [Exposed=Window] annotations, as
WebIDL upstream has removed PrimaryGlobal.

Differential Revision: https://phabricator.services.mozilla.com/D9399
2018-10-22 20:15:47 -04:00
Boris Zbarsky 348aa22e01 Bug 1398354 part 2. Update document.all item() and legacycaller to new spec semantics. r=mccr8 2018-10-17 23:00:49 -04:00
Brad Werth 2813ca23fa Bug 1497589 Part 1: Move Flex.webidl to the chrome-webidl directory. r=bzbarsky,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D9022

--HG--
rename : dom/webidl/Flex.webidl => dom/chrome-webidl/Flex.webidl
extra : moz-landing-system : lando
2018-10-18 00:08:02 +00:00
Emilio Cobos Álvarez 54175e6475 Bug 1498860 - Add window.screenLeft / window.screenTop as aliases of screenX / screenY. r=smaug
Tests are at https://github.com/web-platform-tests/wpt/pull/13543.

Spec is waiting on those, but this matches all other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D8917

--HG--
extra : moz-landing-system : lando
2018-10-17 02:20:15 +00:00
shindli 2eb594138a Merge inbound to mozilla-central. a=merge 2018-10-17 03:55:26 +03:00
Marcos Cáceres 6de37261e9 Bug 1497699 - Drop support for PaymentItem.type. r=edenchuang,baku
Being removed from the spec. Front-end no longer needs this.

Differential Revision: https://phabricator.services.mozilla.com/D8160

--HG--
extra : moz-landing-system : lando
2018-10-16 12:53:01 +00:00
Gijs Kruitbosch 9048f58f8f Bug 1477669 - remove feed preview code and associated files/code, r=flod,mak,nika
Differential Revision: https://phabricator.services.mozilla.com/D8524

--HG--
extra : moz-landing-system : lando
2018-10-16 12:47:36 +00:00
Boris Zbarsky 5a0e236dba Bug 1497301 part 4. Simplify Location::CheckURL. r=bholley
The main change is to just use the principal bindings pass us to do our
CheckLoadURI check.  If we do that, we don't have to care about the current
JSContext.
2018-10-12 11:07:18 -04:00
Andreas Pehrson 7561a1fdef Bug 1258143 - Remove LocalMediaStream. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D8064

--HG--
extra : moz-landing-system : lando
2018-10-15 08:17:07 +00:00
Philipp Hancke c0cf9f10eb Bug 1435789: implement relayProtocol for localcandidate stats r=smaug,ng
relayProtocol is the standardized variant of mozLocalTransport.
Spec:
  https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatestats-relayprotocol

IDL:
  https://w3c.github.io/webrtc-stats/#icecandidate-dict*

Differential Revision: https://phabricator.services.mozilla.com/D3428

--HG--
extra : moz-landing-system : lando
2018-10-07 07:42:48 +00:00
Jan-Ivar Bruaroey 7d40419bc8 Bug 1497390 - Remove support for legacy mozAutoGainControl and mozNoiseSuppression constraints. r=bzbarsky,achronop a=reland
Differential Revision: https://phabricator.services.mozilla.com/D8053

--HG--
extra : amend_source : 99bbce10577ac5fb2c32a869d74e52b0f4f02142
2018-10-12 20:25:07 +03:00
Csoregi Natalia 86dc471972 Merge autoland to mozilla-central. a=merge 2018-10-12 19:55:37 +03:00
Sebastian Hengst b219f1c732 Backed out changeset 419218259bc1 (Bug 1497390) for frequently failing mda's dom/media/tests/mochitest/identity/test_fingerprints.html (bug 1498326). a=backout 2018-10-12 19:50:42 +03:00
Andreas Pehrson f5f6f6fdb4 Bug 1377146 - Remove AudioStreamTrack and VideoStreamTrack from js. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D8063

--HG--
extra : moz-landing-system : lando
2018-10-11 15:36:11 +00:00
Csoregi Natalia de7b5dcc69 Merge mozilla-central to autoland. CLOSED TREE 2018-10-12 13:18:41 +03:00
Alex Chronopoulos 79f5e13243 Bug 934425 - Add SinkId in webidl for HTMLMediaElement. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D5873

--HG--
extra : moz-landing-system : lando
2018-10-12 08:44:55 +00:00
Narcis Beleuzu e09f2e2622 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-12 06:53:11 +03:00
Andrew McCreight 53217795fe Bug 1493237 - Use a test-only non-nsISupports wrapper cached WebIDL class in a weak map test r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D8134

--HG--
extra : moz-landing-system : lando
2018-10-11 23:02:10 +00:00
Yaron Tausky f6f1bde06f Bug 1263734: Implement ServiceWorkerContainer.startMessages() r=asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D4237

--HG--
extra : moz-landing-system : lando
2018-10-11 12:37:37 +00:00
Tiberius Oros fea4c7c01d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-11 06:56:20 +03:00
Jeff Gilbert dd4766f2a3 Bug 1494809 - Remove WebGL ATC support. - r=kvark,qdot
The WG rejected this extension.


--HG--
rename : dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_es3.html => dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc.html
2018-10-10 18:13:14 -07:00
Jeff Gilbert f7941731a5 Bug 1494809 - Support WebGL exts for BPTC and RGTC. - r=kvark,qdot 2018-10-10 18:13:11 -07:00
Jan-Ivar Bruaroey 6b5cb93598 Bug 1497351 - Remove dictionary null defaults from MediaTrackConstraintSet; handle absence in NormalizedConstraintSet. r=bzbarsky,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D8054

--HG--
extra : moz-landing-system : lando
2018-10-11 02:03:17 +00:00
Jan-Ivar Bruaroey 20f3798c41 Bug 1497390 - Remove support for legacy mozAutoGainControl and mozNoiseSuppression constraints. r=bzbarsky,achronop
Differential Revision: https://phabricator.services.mozilla.com/D8053

--HG--
extra : moz-landing-system : lando
2018-10-11 02:02:32 +00:00
Coroiu Cristina f41994d019 Backed out changeset 493e812d0342 (bug 1497390) for mda failures at dom/media/tests/mochitest/identity/test_fingerprints.html 2018-10-10 19:02:35 +03:00
Dorel Luca 14654707e6 Backed out changeset 2c01f22661fa (bug 1263734) for wpt failures in fetch/api/request/destination/fetch-destination-no-load-event.https.html. CLOSED TREE 2018-10-10 18:31:01 +03:00
Jan-Ivar Bruaroey 6793adb6e3 Bug 1497390 - Remove support for legacy mozAutoGainControl and mozNoiseSuppression constraints. r=bzbarsky,achronop
Differential Revision: https://phabricator.services.mozilla.com/D8053

--HG--
extra : moz-landing-system : lando
2018-10-10 07:51:09 +00:00
Yaron Tausky 286a3c2333 Bug 1263734: Implement ServiceWorkerContainer.startMessages() r=asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D4237

--HG--
extra : moz-landing-system : lando
2018-10-10 13:55:23 +00:00
Tim Huang b88841d2fd Bug 1363508 - Part 3: Spoofing navigator.maxTouchPoints into 0 if fingerprinting resistance is enabled r=arthuredelstein,masayuki,smaug
The maxTouchPoints is going to review the detail of users' hardware. So,
we will spoof it into 0 if fingerprinting resistance is on.

Depends on D6004

Differential Revision: https://phabricator.services.mozilla.com/D6005

--HG--
extra : moz-landing-system : lando
2018-10-09 11:50:03 +00:00
Tim Huang 0a30f56cd5 Bug 1363508 - Part 1: Spoofing pen/touch pointer events into mouse pointer events when fingerprinting resistance is on r=arthuredelstein,masayuki,smaug
The pointerType field in the pointer event will reveal the details of
users' hardware; this is a fingerprinting vector. So, we would spoof all
types of pointer events into mouse type pointer events for protecting
users from browser fingerprinting when fingerprinting resistance is on.

In this patch, we would spoof the pointerType as well as other fields
that mouse pointer events don't support, like pressure, tiltX/Y and so
on when fingerprinting resistance is on.

Differential Revision: https://phabricator.services.mozilla.com/D6003

--HG--
extra : moz-landing-system : lando
2018-10-09 11:55:43 +00:00
Masayuki Nakano 06267cb849 Bug 1479964 - Set KeyboardEvent.keyCode and KeyboardEvent.charCode to same value if the event is "keypress" event r=smaug
Chrome sets both KeyboardEvent.keyCode and KeyboardEvent.charCode of "keypress"
event to same value.  On the other hand, our traditional behavior is, sets
one of them to 0.

Therefore, we need to set keyCode value to charCode value if the keypress
event is caused by a non-function key, i.e., it may be a printable key with
specific modifier state and/or different keyboard layout for compatibility
with Chrome.  Similarly, we need to set charCode value to keyCode value if
the keypress event is caused by a function key which is not mapped to producing
a character.

Note that this hack is for compatibility with Chrome.  So, for now, it's enough
to change the behavior only for "keypress" event handlers in web content.  If
we completely change the behavior, we need to fix a lot of default handlers
and mochitests too.  However, it's really difficult because default handlers
check whether keypress events are printable or not with following code:

> if (event.charCode &&
>     !event.altKey && !event.ctrlKey && !event.metaKey) {

or

> if (!event.keyCode &&
>     !event.altKey && !event.ctrlKey && !event.metaKey) {

So, until we stop dispatching "keypress" events for non-printable keys,
we need complicated check in each of them.

And also note that this patch changes the behavior of KeyboardEvent::KeyCode()
when spoofing is enabled and the instance is initialized by initKeyEvent() or
initKeyboardEvent().  That was changed by bug 1222285 unexpectedly and keeping
the behavior makes patched code really ugly.  Therefore, this takes back the
old behavior even if spoofing is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D7974

--HG--
extra : moz-landing-system : lando
2018-10-09 04:43:37 +00:00
Noemi Erli c2709dc7e9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-09 00:56:03 +03:00
Arnaud Bienner bb6b29da9d Bug 1473467: implement AudioWorkletGlobalScope::RegisterProcessor(). r=baku,karlt
Differential Revision: https://phabricator.services.mozilla.com/D6368

--HG--
extra : moz-landing-system : lando
2018-10-08 19:15:13 +00:00
Eden Chuang 05093acbf4 Bug 1441752 - Adding an new attribute regionCode in PaymentAddress. r=baku
--HG--
extra : histedit_source : d71b94a611ff5cd3f5b556de9157ff46a5cfeda6
2018-09-28 12:21:59 +02:00
Ciure Andrei 9023b4cc72 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-03 19:45:50 +03:00
Masayuki Nakano 339308fcab Bug 1343955 - part 4: Implement static API to synthesize keyboard events into FuzzingFunctions r=smaug
Synthesizing keyboard events is dangerous and such API is requested only by
fuzzing test.  So, we should add it into FuzzingFunctions which is built
only when |ac_add_options --enable-fuzzing| is specified and enabled by
the pref.

This patch implements the API as synthesizing keyboard events in the focused
widget and the synthesized events are propagated as native key events except
APZ (because keyboard events are synthesized only in the process).  This
behavior allows to test including any default action handlers such as
EventStateManager and setting WidgetGUIEvent::mWidget since some C++ handler
checks if it's nullptr.

Differential Revision: https://phabricator.services.mozilla.com/D5516

--HG--
extra : moz-landing-system : lando
2018-10-02 12:16:45 +00:00
Ryan Hunt 3bb8e3eca9 Bug 1475139 part 12 - Expose drawSnapshot API to <browser>. r=nika
This commit initially exposes the drawSnapshot API off of <browser>. This
is done by adding a WebIDL binding to FrameLoader and wrapping it in
browser.xml.

Differential Revision: https://phabricator.services.mozilla.com/D6791

--HG--
extra : rebase_source : 9f819b13c102edf42ab2bb2466578751a7a2f647
2018-09-24 21:48:30 -05:00
Tiberius Oros fdc44b6afe Merge mozilla-central to inbound on a CLOSED TREE 2018-10-03 09:44:29 +03:00
Perry Jiang fd4ce6d9d5 Bug 1487463 - implement StructuredCloneTester to be used in testing r=baku
StructuredCloneTester objects can configured to be serializable (or not) and
deserializable (or not) by the structured clone algorithm. They can be used to
test, for example, onmessageerror event handlers, where the messageerror event
is fired when a message fails to be deserialized (but was successfully serialized).
The class is pref'ed with "dom.testing.structuredclonetester.enabled".

Differential Revision: https://phabricator.services.mozilla.com/D5207

--HG--
extra : moz-landing-system : lando
2018-10-02 16:43:57 +00:00
Marcos Cáceres 70744c3261 Bug 1495335 - Rename PayerErrorFields to PayerErrors. r=baku 2018-10-01 03:44:00 -04:00
Andrea Marchesini 4be054a731 Bug 1390801 - FeaturePolicy - part 2 - WebIDL + DOM integration, r=ckerschb 2018-10-01 08:09:44 +02:00
Gurzau Raul c961dacac0 Backed out changeset 8152c0b1017c (bug 1487463) for bustages at dom/bindings/StructuredCloneTesterBinding.cpp on a CLOSED TREE 2018-09-29 03:52:10 +03:00
Perry Jiang b61092a88e Bug 1487463 - implement StructuredCloneTester to be used in testing r=baku
StructuredCloneTester objects can configured to be serializable (or not) and
deserializable (or not) by the structured clone algorithm. They can be used to
test, for example, onmessageerror event handlers, where the messageerror event
is fired when a message fails to be deserialized (but was successfully serialized).
The class is pref'ed with "dom.testing.structuredclonetester.enabled".

Differential Revision: https://phabricator.services.mozilla.com/D5207

--HG--
extra : moz-landing-system : lando
2018-09-18 17:15:22 +00:00
Marcos Cáceres ce4c75065c Bug 1489968 - Implement BasicCardErrors for PaymentRequest. r=edenchuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D6378

--HG--
extra : moz-landing-system : lando
2018-09-27 08:03:14 +00:00
Boris Zbarsky 64298b1913 Bug 1493798. Update the MediaCapabilities dictionaries to follow the spec more closely. r=jya
This partially backs out bug 1471165 now that we don't enforce a default value
for dictionary-typed members of dictionaries.

Differential Revision: https://phabricator.services.mozilla.com/D6876

--HG--
rename : testing/web-platform/meta/media-capabilities/decodingInfo.html.ini => testing/web-platform/meta/media-capabilities/encodingInfo.html.ini
rename : testing/web-platform/tests/media-capabilities/decodingInfo.html => testing/web-platform/tests/media-capabilities/encodingInfo.html
extra : moz-landing-system : lando
2018-09-26 19:19:47 +00:00
arthur.iakab ec46826255 Merge inbound to mozilla-central. a=merge 2018-09-26 15:54:41 +03:00
Boris Zbarsky 17e28d0bbc Bug 1368949. Stop automatically giving dictionary-typed members of dictionaries a default value of null. r=qdot 2018-09-25 18:09:30 -04:00
Xidorn Quan 913d0147f3 Bug 1493869 - Put window.event behind a pref and disable it by default for release versions. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D6752

--HG--
extra : moz-landing-system : lando
2018-09-25 15:55:09 +00:00
Botond Ballo ad2c16cef9 Bug 1484597 - Keep the bounding client rect field of the 'mozcaretstatechanged' event relative to the visual viewport. r=mstange,nika
Depends on D6074

Differential Revision: https://phabricator.services.mozilla.com/D6075

--HG--
extra : moz-landing-system : lando
2018-09-25 17:46:58 +00:00