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

81920 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 5539520106 Bug 1535124 part 3. Add MOZ_CAN_RUN_SCRIPT annotations to geolocation code as needed. r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D23521

--HG--
extra : moz-landing-system : lando
2019-03-20 18:05:09 +00:00
Boris Zbarsky a998830a71 Bug 1535124 part 2. Mark Web IDL callbacks MOZ_CAN_RUN_SCRIPT by default. r=qdot
We add a [MOZ_CAN_RUN_SCRIPT_BOUNDARY] opt-out for now to keep the tree
compiling.  The naming purposefully matches the C++ annotation that has a
similar effect, top make it easy to search for.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 12:59:54 +00:00
Boris Zbarsky 5c13f9c06d Bug 1535124 part 1. Add a MOZ_KnownLive() around callback-typed arguments in bindings. r=qdot
This allows calling a C++ MOZ_CAN_RUN_SCRIPT method that takes a callback argument.

The changes to TestCanRunScript.cpp are there to catch an incorrect change I was
going to make to the analysis to make this work, until I figured out that
RootedCallback should be MOZ_IS_SMARTPTR_TO_REFCOUNTED.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 12:59:53 +00:00
Alex Gaynor 823516cc43 Bug 1536097 - Part 5 - convert AttestationConveyancePreference to use ParamTraits for deserialization; r=jcj
Depends on D24065

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

--HG--
extra : moz-landing-system : lando
2019-03-19 23:25:35 +00:00
Alex Gaynor 12dcc5de20 Bug 1536097 - Part 4 - convert UserVerificationRequirement to use ParamTraits for deserialization; r=jcj
Depends on D24064

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

--HG--
extra : moz-landing-system : lando
2019-03-19 23:25:47 +00:00
Alex Gaynor b6f7702cfa Bug 1536097 - Part 3 - convert WebAuthnMaybeGetAssertionExtraInfo to use a native IPDL maybe; r=jcj
Depends on D24063

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

--HG--
extra : moz-landing-system : lando
2019-03-19 23:26:00 +00:00
Alex Gaynor 936775f7b8 Bug 1536097 - Part 2 - convert WebAuthnMaybeMakeCredentialExtraInfo to use a native IPDL maybe; r=jcj
Depends on D24062

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

--HG--
extra : moz-landing-system : lando
2019-03-19 23:26:20 +00:00
Alex Gaynor 8db559a3fd Bug 1536097 - Part 1 - convert WebAuthnMaybeAuthenticatorAttachment to use a native IPDL maybe and use ParamTraits for deserialization; r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D24062

--HG--
extra : moz-landing-system : lando
2019-03-20 15:23:44 +00:00
Byron Campen [:bwc] b6c6f6df02 Bug 1518672: Sync transceivers before firing signalingstatecheanged. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D23906

--HG--
extra : moz-landing-system : lando
2019-03-19 21:07:30 +00:00
James Willcox cf8b03cc76 Bug 1522451 - Resolve named CSS colors to RGB in Web Manifests r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D23025

--HG--
extra : moz-landing-system : lando
2019-03-20 14:44:29 +00:00
Thomas Wisniewski 13eb2f8827 Bug 1437360 - do not attempt to parse XHRs as XML if content-length=0, to prevent logging "no root element found" errors; r=smaug
do not attempt to parse XHRs as XML if content-length=0, to prevent logging "no root element found" errors

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

--HG--
extra : moz-landing-system : lando
2019-03-20 15:43:31 +00:00
Mihir a24deb683c Bug 1532944 - Remove unnecessary ESLint disabling mozilla/no-cpows-in-tests comments. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24148

--HG--
extra : moz-landing-system : lando
2019-03-20 13:58:47 +00:00
Gijs Kruitbosch d185982673 Bug 1530500 - remove obsolete browser swapping flags, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24114

--HG--
extra : moz-landing-system : lando
2019-03-20 08:49:04 +00:00
Sylvestre Ledru 102b964803 Bug 1536432 - MoofParser: Delete useless declaration r=jya
Differential Revision: https://phabricator.services.mozilla.com/D24014

--HG--
extra : moz-landing-system : lando
2019-03-20 00:45:40 +00:00
Alastor Wu bbb2e64dde Bug 1524065 - part1 : implement the way to resume delayed autoplay media via browsing context. r=farre
After enable Fission, we're not able to resume media in the different process, because the current way we use can only notify one process and would cause the media on other process can't be resumed.

Therefore, we should use the browsing context to notify the web content which might be on different processes.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 03:15:36 +00:00
Andrea Marchesini 1b6bfa6413 Bug 1536110 - StorageAccess should be propagated to workers, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23861

--HG--
extra : moz-landing-system : lando
2019-03-20 01:06:33 +00:00
Jan-Ivar Bruaroey f30f21c430 Bug 1335740 - Update wpt & mochitests to work w/[SecureContext] navigator.mediaDevices. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20425

--HG--
rename : testing/web-platform/meta/mediacapture-streams/MediaDevices-getSupportedConstraints.html.ini => testing/web-platform/meta/mediacapture-streams/MediaDevices-getSupportedConstraints.https.html.ini
rename : testing/web-platform/tests/mediacapture-streams/MediaDevices-getSupportedConstraints.html => testing/web-platform/tests/mediacapture-streams/MediaDevices-getSupportedConstraints.https.html
extra : moz-landing-system : lando
2019-03-19 14:17:53 +00:00
Jan-Ivar Bruaroey 2958460ddc Bug 1335740 - getUserMedia() Add 2 prefs to control A) NotAllowedError in http (pref'd on), and B) [SecureContext] navigator.mediaDevices (pref'd off) r=bzbarsky,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D19549

--HG--
rename : testing/web-platform/meta/mediacapture-streams/historical.html.ini => testing/web-platform/meta/mediacapture-streams/historical.https.html.ini
rename : testing/web-platform/tests/mediacapture-streams/historical.html => testing/web-platform/tests/mediacapture-streams/historical.https.html
extra : moz-landing-system : lando
2019-03-19 14:17:51 +00:00
Edwin Gao 0e56d58992 Bug 1536604 - disable manifest dom/media/test/mochitest.ini r=jmaher
Disable the following:

- test_MediaSource_flac_mp4 (keeps getting missed somehow)
- dom/media/test/mochitest.ini

Disabling the entire `dom/media/test/mochitest.ini` manifest file does have collateral damage in that it disables tests that are running fine; the alternative is to disable only the EME tests, but the failure count numbers somewhere close to 50.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 22:54:34 +00:00
Edwin Gao dd607c2044 Bug 1536566 - disable dom/base/test/browser_timeout_throttling_with_audio_playback.js r=jmaher
Disable this test from `mochitest-browser-chrome`, possibly related to the wider audio/video issues in windows10-aarch64.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 19:45:02 +00:00
Razvan Maries 84a87f5587 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-03-20 00:07:50 +02:00
Razvan Maries 7c20ad9250 Merge mozilla-inbound to mozilla-central a=merge 2019-03-19 23:54:04 +02:00
Gijs Kruitbosch 5e05f6c9c9 Bug 1353013 - move new tab preload browser tracking into a separate module, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D21126

--HG--
extra : moz-landing-system : lando
2019-03-19 17:29:14 +00:00
Michael Froman 5410fc4ddc Bug 1530305 - handle failure to alloc Shmem in RemoteVideoDecoderParent. r=jya
- Modify ProcessDecodedData to return a MediaResult.
- RemoteDecoderParent::RecvInput and RemoteDecoderParent::RecvDrain
  both use error returned from ProcessDecodedData to call SendError.
- RemoteVideoDecoderParent and RemoteAudioDecoderParent both return
  MediaResult with NS_ERROR_OUT_OF_MEMORY if AllocShmem fails in
  ProcessDecodedData (or if the returned buffer size is less than
  the requested size).

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

--HG--
extra : moz-landing-system : lando
2019-03-19 15:56:52 +00:00
Jan Varga 1ce29b4c3b Bug 1535221 - Add infrastructure for hang debugging; r=asuth
This patch adds a timer for synchronous local storage requests. Once the timer
fires the request is canceled. The parent reports debugging information upon receiving cancellation.

Differential Revision: https://phabricator.services.mozilla.com/D24006
2019-03-19 12:23:16 +01:00
Coroiu Cristina 6e856bf267 Backed out changeset a0fb9b7bcfe7 (bug 1534343) for mochitest failures at netwerk/cookie/test/mochitest/test_xmlDocument.html on a CLOSED TREE 2019-03-19 14:17:03 +02:00
Jagmeet Bhamber e15a06b5ac Bug 1508823 - Enable ESLint for dom/browser-element (manual changes). r=mccr8
Depends on D21215

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

--HG--
extra : moz-landing-system : lando
2019-03-19 20:56:24 +00:00
Mark Banner e29933c06a Bug 1508823 - Enable ESLint for dom/browser-element (automatic changes). r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21215

--HG--
extra : moz-landing-system : lando
2019-03-19 20:56:10 +00:00
Emilio Cobos Álvarez 12cbe02f9a Bug 1536176 - Share font preferences across documents. r=jfkthame
And also don't blow the preferences away unless they actually change. We were
blowing them away whenever the document language changed or what not, that's not
good.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 16:40:01 +00:00
Byron Campen [:bwc] 216fd782cc Bug 1534673 - Part 2: Update a couple of mochitests to stop checking track ids. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D23207

--HG--
extra : moz-landing-system : lando
2019-03-19 16:03:32 +00:00
Byron Campen [:bwc] 55e67a8eff Bug 1535410: Check for null mid/level in addIceCandidate. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D23727

--HG--
extra : moz-landing-system : lando
2019-03-19 16:49:05 +00:00
Byron Campen [:bwc] d87bbcbe6a Bug 1529635 - Part 1: Add sdpMid/sdpMLineIndex checking to RTCIceCandidate. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D23723

--HG--
extra : moz-landing-system : lando
2019-03-19 16:48:45 +00:00
Byron Campen [:bwc] dbdab2a71c Bug 1318167 - Part 1: Give RTCIceCandidateInit.candidate a default value. r=smaug,jib
Differential Revision: https://phabricator.services.mozilla.com/D23219

--HG--
extra : moz-landing-system : lando
2019-03-19 16:48:06 +00:00
Thomas Wisniewski 8518ed6826 Bug 1454325 - update XHR upload content-type handling to match the spec. r=baku
update XHR upload content-type handling to match the spec

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

--HG--
extra : moz-landing-system : lando
2019-03-19 19:34:39 +00:00
Alex Chronopoulos 509d004d90 Bug 1534313 - Make GetDeviceCollection accessible only by the enumerator. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22989

--HG--
extra : moz-landing-system : lando
2019-03-19 10:40:25 +00:00
Alex Chronopoulos eb84b032d9 Bug 1534313 - Remove direct calls to GetDeviceCollection method. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22988

--HG--
extra : moz-landing-system : lando
2019-03-19 10:40:12 +00:00
Alex Chronopoulos 026c81cfc9 Bug 1534313 - Add new method in enumerator to get the device info from device name. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22987

--HG--
extra : moz-landing-system : lando
2019-03-19 10:40:05 +00:00
Alex Chronopoulos a996b0052f Bug 1534313 - Put the default audio output first in the list of devices. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22986

--HG--
extra : moz-landing-system : lando
2019-03-19 10:39:57 +00:00
Alastor Wu 5017bb4783 Bug 1488673 - part8 : remove unnecessary anonymous function. r=heycam
There is no need to have an anonymous function after we replace all `var` to `let`, now those variables won't pollute outer scopes.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 03:31:43 +00:00
Alastor Wu fd28fe7a4e Bug 1488673 - part7 : huge replacement of 'var' by 'let'. r=heycam
In order to keep the local variable only visible inside the function scope, we should only use 'let' for those variables.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 03:31:20 +00:00
Alastor Wu 508719c298 Bug 1488673 - part6 : remove unused functions. r=heycam
Remove those funcitons which are used to implement the previous way to move the cue box.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 03:30:32 +00:00
Alastor Wu 3addeaf47c Bug 1488673 - part5 : find the best position for the cue box in order not to overlap it with other cue boxes. r=heycam
According to the spec 7.2.10 [1], the step13 to step21 (snap-to-line is true) and the step3 to step5 (snap-to-line is false), we need to find the best position where the cue box has least overlap with other cue boxes.

In addition, in order not to be affected by CSS transformation, use non-tranformed attribute in `BoxPosition`.

[1]
https://w3c.github.io/webvtt/#ref-for-webvtt-cue-snap-to-lines-flag-12
https://w3c.github.io/webvtt/#ref-for-webvtt-cue-snap-to-lines-flag-13

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

--HG--
extra : moz-landing-system : lando
2019-03-19 03:30:09 +00:00
Alastor Wu ae09d890c0 Bug 1488673 - part4 : adjust cue's position. r=heycam
According to the spec 7.2.10, step1 to step10 (snap-to-line is true) and step1 to step2 (snap-to-line is flase) [1], we would adjust cue box's position depending on the algorithm.

The algorithm would calculate the cue box's top (or left) position depending on the writing direction, and move the box to the specific position.

However, if the cue box is overlapping with other cue boxes in the rendering area, we would still need to adjust its postion, which will be implemented in next patch.

[1]
https://w3c.github.io/webvtt/#ref-for-webvtt-cue-snap-to-lines-flag-12
https://w3c.github.io/webvtt/#ref-for-webvtt-cue-snap-to-lines-flag-13

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

--HG--
extra : moz-landing-system : lando
2019-03-19 03:29:36 +00:00
Alastor Wu d710d5d54b Bug 1488673 - part3 : only use BoxPosition format for position calculation r=heycam
It's confused that we have both simpleBoxPosition object and BoxPosition object, we should only use one format to perform all box related operations.

Therefore, BoxPosition should be able to be initiaized by StyleBox, HTMLElement or BoxPosition.

In addition, as `right` and `bottom` can be calculated from other attributes, we remove these two attributes from BoxPosition, and use getter to get the correct value, which can reduce some unnessary modification when we changes the `height` or `width`. In order to implement a more readable getter, so we change `BoxPosition` to class-based.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 03:29:29 +00:00
Alastor Wu 44d26f1c7f Bug 1488673 - part2 : keep font size consistent even if applying CSS transform scale on the parent element r=heycam
When calculating font size, we should use the original bounding box as a reference, or it would cause incorrect font size scale.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 03:29:27 +00:00
Alastor Wu c36028fc0f Bug 1488673 - part1 : use correct size to calculate position. r=heycam
According to the spec [1], we have calculated the size in step 7.3 and then we should use that for calculating x-position and y-position, instead of using cue's size.

[1] https://w3c.github.io/webvtt/#apply-webvtt-cue-settings

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

--HG--
extra : moz-landing-system : lando
2019-03-19 03:27:04 +00:00
Coroiu Cristina 5f875389c3 Backed out changeset bdefd9c7fc99 (bug 1534343) for mochitest failures at netwerk/cookie/test/mochitest/test_xmlDocument.html on Android on a CLOSED TREE 2019-03-19 17:50:08 +02:00
Valentin Gosu de736f1c55 Bug 1532253 - Hold lock in mozilla::dom::IsType() r=baku
Differential Revision: https://phabricator.services.mozilla.com/D24018

--HG--
extra : moz-landing-system : lando
2019-03-19 15:14:04 +00:00
Valentin Gosu 1d4e58f9fd Bug 1532253 - Use nsIURI.prePath instead of manually computing it r=baku
Differential Revision: https://phabricator.services.mozilla.com/D22134

--HG--
extra : moz-landing-system : lando
2019-03-19 15:14:01 +00:00
Valentin Gosu b7c2ade2f2 Bug 1532253 - Add threadsafe BlobURLProtocolHandler::CreateNewURI r=baku
Differential Revision: https://phabricator.services.mozilla.com/D22135

--HG--
extra : moz-landing-system : lando
2019-03-19 15:13:47 +00:00