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

83136 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 11ea945833 Bug 1546697 - Use a consistent style for enum classes in layout. r=dholbert
Per the discussion in:

  https://groups.google.com/d/msg/mozilla.dev.platform/P79pwa9z5m8/iPYPAWPHCAAJ

They should be CamelCase, and that's what most of them already do. This converts
the rest, which are a few.

For the ones that already used `e` or `k` prefixes, I've mostly done:

 for file in $(rg Type::e layout | cut -d : -f 1 | sort | uniq); do sed -i 's#Type::e#Type::#g' $file; done

For the ones that used uppercase, I've removed the prefix if it was already in
the type name, and turn them into CamelCase.

Depends on D28680

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:03:04 +00:00
Emilio Cobos Álvarez 3e1e7ce302 Bug 1547138 - IntrinsicSize shouldn't use nsStyleCoord. r=dholbert
We have a better type to represent "a coord or nothing", and that's Maybe.

This code is shorter, and I think reads generally better / is less easy to
misuse.

I wrote this on top of bug 1547126 so there shouldn't be conflicts.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:48:14 +00:00
Daniel Varga 46db25d004 Backed out 5 changesets (bug 1272409) for build bustage at /builds/worker/workspace/build/src/dom/base/nsGlobalWindowCommands. On a CLOSED TREE
Backed out changeset 2ad8260489d6 (bug 1272409)
Backed out changeset 224dad4cbdc3 (bug 1272409)
Backed out changeset 72775dbf35c8 (bug 1272409)
Backed out changeset c331a4a8b343 (bug 1272409)
Backed out changeset d817fbfc52b6 (bug 1272409)
2019-04-26 02:41:43 +03:00
Byron Campen [:bwc] 1963cd0a3a Bug 1531894: Throw TypeError if both maxRetransmits and maxPacketLifeTime are set, and re-enable test case. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D28252

--HG--
extra : moz-landing-system : lando
2019-04-25 20:59:45 +00:00
Byron Campen [:bwc] 79f14c2299 Bug 1529595: Remove "token" from RTCIceCredentialType, re-enable a web-platform-test, and fix a mochitest. r=smaug,jib
Differential Revision: https://phabricator.services.mozilla.com/D28496

--HG--
extra : moz-landing-system : lando
2019-04-25 20:58:12 +00:00
Fariskhi Vidyan 55597e55fc Bug 1272409 - Part 4: Integrate ResizeObserver with Document and reflow. r=dholbert,smaug
Depends on D27617

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:16 +00:00
Fariskhi Vidyan 68460618c3 Bug 1272409 - Part 3: Add ResizeObserverController. r=dholbert,smaug
Use ResizeObserverController to schedule the observers and manage them.
Document will hold this controller in the later patch.

Depends on D27616

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:36 +00:00
Fariskhi Vidyan 3d0af6e0c6 Bug 1272409 - Part 2: Add ResizeObserver webidl and implementation. r=dholbert,smaug
This implements the first version of spec, so the webidl file doesn't
match the current spec and we will fix them in the follow-up bugs.

i.e.
1. The default observer box is content-box.
2. `ResizeObserverBoxOptions`, `ResizeObserverOptions`, and `ResizeObserverSize`
   are not included in `ResizeObserver.webidl`.
3. `ResizeObserverEntry` doesn't have `borderBoxSize` and `contentBoxSize`
   attributes.

Depends on D27615

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:06 +00:00
Fariskhi Vidyan ee632b46da Bug 1272409 - Part 1: Add GetNodeDepth() to nsContentUtils. r=smaug
`GetNodeDepth()` will be used in the next patch.

Depends on D27614

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:04 +00:00
Brian Grinstead 4663e6262a Bug 1448213 - Migrate label-control to a Custom Element r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D5686

--HG--
extra : moz-landing-system : lando
2019-04-23 20:16:46 +00:00
Bryce Van Dyk 2862090894 Bug 1545108 - Use a diagnostic assert to check for nullptr when pushing into MediaQueue. r=alwu
We're rarely getting nullptrs out of MediaQueues. It's not clear where these are
coming from, as we have many guards against them. Upgrade this assert to a
diagnostic to help us track the source and determine if the value is null before
entering the queue.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 17:08:27 +00:00
Andreas Pehrson cef48c8ec4 Bug 1545133 - Avoid trying to double-suspend a MediaStream if external code makes the suspendCount negative. r=padenot
We don't currently know any ways in which external code can make the
suspendCount negative, but this will keep us safe should a future bug enable it.

Depends on D28805

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

--HG--
extra : moz-landing-system : lando
2019-04-25 16:41:15 +00:00
Andreas Pehrson b53e315572 Bug 1545133 - Add crashtest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D28805

--HG--
extra : moz-landing-system : lando
2019-04-25 16:41:33 +00:00
Emily Toop 1cdb609e6a Bug 1527074 - Expose storage manager API to GeckoView r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D25408

--HG--
extra : moz-landing-system : lando
2019-04-25 16:20:48 +00:00
Gurzau Raul 71e35400ef Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-25 19:30:38 +03:00
Gurzau Raul dc61b90737 Merge inbound to mozilla-central. a=merge 2019-04-25 19:19:37 +03:00
Marcos Cáceres 0e6e3ef889 Bug 1546859 add requestSecurityCode member to BasicCardRequest r=baku
the requestSecurityCode allows merchants to opt out of requiring a CVV from a credit card.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 07:47:36 +00:00
Bogdan Tara 240b24fbe1 Backed out 5 changesets (bug 1534712, bug 1545758) for test_ext_webrequest_upload.html failures CLOSED TREE
Backed out changeset 447b0f5a5802 (bug 1545758)
Backed out changeset 0528f8f11814 (bug 1545758)
Backed out changeset d85c68071b54 (bug 1545758)
Backed out changeset 10b380bc5b0c (bug 1545758)
Backed out changeset 57136f4e7b54 (bug 1534712)
2019-04-25 12:36:51 +03:00
Bogdan Tara b77143169d Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-25 12:51:48 +03:00
Masayuki Nakano 2933c032e7 Bug 1545342 - part 3: Move remaining public enum of nsIPresShell to mozilla namespace in mozilla/PresShellForwards.h and make them enum class r=smaug
This patch moves remaining public `enum` of `nsIPresShell` to `mozilla`
namespace in `mozilla/PresShellForwards.h` and make them `enum class`es.

Additionally, some methods which use the moving `enum`s from `nsIPresShell`
to `PresShell`.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 05:04:23 +00:00
Masayuki Nakano 3622509485 Bug 1545342 - part 2: Make some public enum of nsIPresShell move to mozilla namespace and defined as enum class in PresShellForwards.h r=smaug
This patch moves some `enum` in `nsIPresShell` which are in public scope into
`mozilla` namespace and change them as `enum class`es.

Unfortunately, only "where to scroll" enum is just defines constants of
percentages of scroll destination.  Therefore, this patch makes only them
as `static const`.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 05:04:15 +00:00
Masayuki Nakano 5932f01d53 Bug 1545342 - part 1: Create mozilla/PresShellForwards.h and move global enums/constants in nsIPresShell.h and mozilla/PresShell.h into the new one r=smaug
This patch creates new header, `mozilla/PresShellForwards.h`.  It should have
all forward declarations of global class/struct in `nsIPresShell.h` and
`mozilla/PresShell.h`.

Additionally, this moves all `enum`s and `constant`s in them into the new file
with changing them to `enum class`es.

This will make other headers which require only specific types in the header
files not include them.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 05:02:20 +00:00
Zibi Braniecki 0e59a5d8f4 Bug 1544118 - Move nsINode::localize to use DocumentL10n::TranslateFragment. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D28269

--HG--
extra : moz-landing-system : lando
2019-04-24 10:35:37 +00:00
Ehsan Akhgari c2290ca6a3 Bug 1546390 - Enable determining whether the current document should respect resist fingerprinting mode on the main thread in OffscreenCanvas.toBlob(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28593

--HG--
extra : moz-landing-system : lando
2019-04-25 07:47:45 +00:00
Ehsan Akhgari 3157527f0f Bug 1545807 - Fall back to the principal-based slow code path inside ThirdPartyUtil::IsThirdPartyWindow() when we face a document without a cached base domain; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28524

--HG--
extra : moz-landing-system : lando
2019-04-25 07:47:58 +00:00
Emilio Cobos Álvarez 2b46634961 Bug 1546329 - Remove dead skins code. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com//D28459
2019-04-25 14:00:06 +02:00
Emilio Cobos Álvarez 1c3126eaaa Bug 1545699 - Track editor stylesheets better. r=masayuki
Replacing the whole set of user-agent stylesheets seems a bit overkill.

Differential Revision: https://phabricator.services.mozilla.com/D28212
2019-04-25 14:00:01 +02:00
Emilio Cobos Álvarez 074dccfbba Bug 1545699 - Don't sync-reload chrome:// user-agent stylesheets from nsChromeRegistry. r=bzbarsky
We assume in a bunch of other places that user agent stylesheets don't really
change dynamically. It's not clear to me what this code is trying to accomplish
or how is it supposed to work in a multi-process world, but I've left the author
stylesheets code for now...

Also, I'm pretty sure the styleset doesn't handle null sheets, so add a
null-check to the author stylesheets.

Differential Revision: https://phabricator.services.mozilla.com/D28211
2019-04-25 13:59:58 +02:00
Andrea Marchesini 0b8eabfa62 Bug 1546576 - Canceling workers during xpcom-shutdown, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D28595

--HG--
extra : moz-landing-system : lando
2019-04-24 17:18:29 +00:00
Andrea Marchesini 3512672cd3 Bug 1545758 - Move dom/file IPC components into mozilla::dom namespace - IPCBlobInputStream actors, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28191

--HG--
extra : moz-landing-system : lando
2019-04-25 07:44:47 +00:00
Andrea Marchesini 6bbc401f45 Bug 1545758 - Move dom/file IPC components into mozilla::dom namespace - TemporaryIPCBlob actors, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28190

--HG--
extra : moz-landing-system : lando
2019-04-25 07:44:29 +00:00
Andrea Marchesini 50fa1de562 Bug 1545758 - Move dom/file IPC components into mozilla::dom namespace - PendingIPCBlob actors, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28189

--HG--
extra : moz-landing-system : lando
2019-04-25 07:44:03 +00:00
Andrea Marchesini f39753b4b8 Bug 1545758 - Move dom/file IPC components into mozilla::dom namespace - FileCreator actors, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28188

--HG--
extra : moz-landing-system : lando
2019-04-25 07:43:38 +00:00
Andrea Marchesini cbdda85d6e Bug 1534712 - Port FileCreatorHelper to PBackground, r=smaug
FileCreatorHelper creates a FileBlobImpl on the main-thread and, because of
this, we end up executing I/O operations on that thread, slowing down other
components.  With this patch, FileCreatorHelper logic is moved to PBackground.

That the 'type' getter is still called on the main-thread because FileBlobImpl
uses nsIMIMEService which is a non thread-safe component.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 07:41:10 +00:00
Brindusan Cristian e6bfbdb99f Backed out changeset a72c9df6c09a (bug 1527287) for build bustages at BrowserElementParent.cpp. CLOSED TREE 2019-04-25 03:15:59 +03:00
Ehsan Akhgari 691bad31ac Bug 1527287 - Add support for "noreferrer" feature argument to window.open(); r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28396

--HG--
extra : moz-landing-system : lando
2019-04-24 23:50:40 +00:00
Felipe Gomes d59fde21a1 Bug 1546737 - Don't use the hidden window in browser_xhr_sandbox.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D28710

--HG--
extra : moz-landing-system : lando
2019-04-24 22:43:04 +00:00
Brindusan Cristian b3b1ca15aa Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
rename : dom/ipc/TabParent.h => dom/ipc/BrowserParent.h
2019-04-25 01:43:17 +03:00
Brindusan Cristian 72339d0385 Backed out changeset ce050fe2bd45 (bug 1527287) for causing merge conflicts. CLOSED TREE 2019-04-25 01:39:26 +03:00
Brindusan Cristian f92b05e5f0 Merge inbound to mozilla-central. a=merge
--HG--
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
2019-04-25 00:54:01 +03:00
shindli ff6b6815f1 Backed out 2 changesets (bug 1540748) for causing perma assertion failure !mTime.IsNegative(), at /builds/worker/workspace/build/src/dom/media/MediaData.h:303 CLOSED TREE
Backed out changeset d8cb636260a0 (bug 1540748)
Backed out changeset 27bcf73686ed (bug 1540748)
2019-04-24 21:07:15 +03:00
Alastor Wu 1df4ea356e Bug 1546324 - use TimeUnit version modular. r=bryce
The value of `mAudioDecodedDuration` can be larger than `int32`, so we should use the modular function which accepts `TimeUnit`as a input.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 17:21:01 +00:00
Alastor Wu f9ae0149f6 Bug 1546506 - Add an assertion to ensure that we won't construct SeekTarget with invalid time. r=bryce
We should only use valid time to construct a `SeekTarget`, because we can't get the value from the invalid time.

This can help us to prevent having a crash when request data value from an invalid time.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 17:07:40 +00:00
Michael Froman 9563f008ce Bug 1545575 - stop RDD process cleanly if linux sandbox fails to init. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D28663

--HG--
extra : moz-landing-system : lando
2019-04-24 16:55:03 +00:00
Alastor Wu 57885dc99c Bug 1540748 - part2 : adjusted time should always be non-negative. r=jolin
As the purpose of adjusting time is to make the start of the playback to align to zero, so the result should not be negative.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 15:05:39 +00:00
Alastor Wu 4e0420416f Bug 1540748 - part1 : Android decoder should throw an error when the decoded sample's time is smaller than the time of first demuxed sample. r=jolin
Considering that the audio sample's time is always increased, the decoded sample's time decoder returns should always be equal or larger than its demuxed time.

When the decoded sample's time is smaller than the time of first demuxed sample, that time would probably cause a problem so we should  throw an error for that.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 15:16:58 +00:00
Jeff Gilbert 88d6589226 Bug 1534937 - Update webgl-conf checkout to tip. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D28592

--HG--
rename : dom/canvas/test/webgl-conf/checkout/conformance/rendering/out-of-bounds-index-buffers.html => dom/canvas/test/webgl-conf/checkout/conformance/rendering/out-of-bounds-array-buffers.html
rename : dom/canvas/test/webgl-conf/checkout/conformance/attribs/gl-bindAttribLocation-aliasing.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ext-float-blend.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview_depth.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2_depth.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview_draw_buffers.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2_draw_buffers.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview_flat_varying.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2_flat_varying.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview_instanced_draw.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2_instanced_draw.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview_non_multiview_shaders.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2_non_multiview_shaders.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview_single_view_operations.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2_single_view_operations.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview_timer_query.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2_timer_query.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/extensions/webgl_multiview_transform_feedback.html => dom/canvas/test/webgl-conf/checkout/conformance2/extensions/ovr_multiview2_transform_feedback.html
rename : dom/canvas/test/webgl-conf/checkout/conformance2/textures/misc/tex-unpack-params-imagedata.html => dom/canvas/test/webgl-conf/checkout/conformance2/textures/misc/generate-mipmap-with-large-base-level.html
rename : dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/common_functions.html => dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/common_functions_00.html
rename : dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/geometric.html => dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/common_functions_01.html
rename : dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/float_compare.html => dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/common_functions_02.html
rename : dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/int_compare.html => dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/common_functions_03.html
rename : dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/bool_compare.html => dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/common_functions_04.html
rename : dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/selection.html => dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/common_functions_05.html
rename : dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/sequence.html => dom/canvas/test/webgl-conf/checkout/deqp/functional/gles3/shaderoperator/common_functions_06.html
rename : dom/canvas/test/webgl-conf/checkout/js/tests/webgl_multiview_util.js => dom/canvas/test/webgl-conf/checkout/js/tests/ovr_multiview2_util.js
extra : moz-landing-system : lando
2019-04-24 03:34:48 +00:00
Ehsan Akhgari 27e187b37d Bug 1527287 - Add support for "noreferrer" feature argument to window.open(); r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28396

--HG--
extra : moz-landing-system : lando
2019-04-24 18:09:44 +00:00
Nika Layzell 264203b655 Bug 1533466 - Use a new window for each JSWindowActor test, r=jdai
Differential Revision: https://phabricator.services.mozilla.com/D27840

--HG--
extra : moz-landing-system : lando
2019-04-24 18:10:18 +00:00
Andreas Pehrson 4021f52e46 Bug 1546655 - Fix test filtering in test_streams_element_capture.html. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D28666

--HG--
extra : moz-landing-system : lando
2019-04-24 14:49:23 +00:00
Andreas Pehrson b3f586c723 Bug 1546655 - Skip ambisonics.mp4 in test_streams_element_capture.html. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D28651

--HG--
extra : moz-landing-system : lando
2019-04-24 14:00:53 +00:00
Mike de Boer 775fbffcb9 Bug 1518551 - Remove the 'MOZ_TOOLKIT_SEARCH' build config constant, because it's unused; we always enable the search service. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D27702

--HG--
extra : moz-landing-system : lando
2019-04-24 08:52:32 +00:00
Andreas Pehrson 1e4382f9fb Bug 1544650 - Always pre-create MediaStreamTracks for DecodedStream in MediaDecoder. r=padenot
This moves the responsibility for creating MediaStreamTracks from
DecodedStream::Start to MediaDecoder. This let's MediaDecoder create them as
soon as metadata is known. This gives the application guarantees on when tracks
can be expected to exist, and aligns with the spec that says they should be
created when metadata is known.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 16:46:30 +00:00
Andreas Pehrson eaf1537b05 Bug 1544650 - Add mochitest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D28472

--HG--
extra : moz-landing-system : lando
2019-04-23 16:46:45 +00:00
Andreas Pehrson 2cab1f445f Bug 1536766 - End a track only after the graph has reported reaching its end time in DecodedStream. r=jya,padenot
This gives us a guarantee that the first frame of a media file can be rendered
with a second media element and mozCaptureStream(), even if the file is very
very short.

With longer video-only files there were also cases where nothing ended up being
rendered. Probably because the MediaStreamGraph ended up switching from an
AudioCallbackDriver to a SystemClockDriver and this took enough time to put the
SourceMediaStream::EndTrack and the SourceMediaStream::AddTrackListener calls
for this video track to be processed in the same iteration. The listener would
then always lose to the ending track and update main thread state too late,
leading to its media element not rendering any frames and nasty intermittent
failures.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:56:16 +00:00
Andreas Pehrson 8734620d4d Bug 1536766 - Drop frames more accurately when ending and interrupting video track playback. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D27269

--HG--
extra : moz-landing-system : lando
2019-04-24 10:56:11 +00:00
Andreas Pehrson 58af5d4443 Bug 1536766 - Make NotifyOutput from SourceMediaStream tracks reflect amount of data in the track. r=padenot
`streamCurrentTime` is relative to the start of the stream, as is the track's
segment. We need to account for the track's start time in the stream when
notifying of output.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:56:04 +00:00
Andreas Pehrson 977b049e15 Bug 1536766 - Better handle overlapping video frames in DecodedStream::SendVideo. r=jya
A case where this wasn't working was bipbop-lateaudio.mp4, where the last frame
has duration 0 and starts and ends before the previous frame has ended. The
VideoSink still renders this frame at the end of playback, so this patch
brings DecodedStream closer to that behavior by rendering all frames with a
start time after the previous frame's start time. The track's duration is still
based on absolute times so things don't blow up.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:55:55 +00:00
Andreas Pehrson 39580a0cf7 Bug 1536766 - Remove unused MediaStream::HasCurrentData. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D27266

--HG--
extra : moz-landing-system : lando
2019-04-24 10:55:50 +00:00
Andreas Pehrson fc3f15c331 Bug 1536766 - Assert that time always goes forward in DecodedStream. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27265

--HG--
extra : moz-landing-system : lando
2019-04-24 10:55:48 +00:00
Andreas Pehrson 2c9b92be1f Bug 1536766 - Handle DecodedStream's resets when calculating VideoChunk durations in the MSG. r=padenot
This is necessary to get an accurate total track duration in case DecodedStream
does a lot of seeking and pausing.

This also removes previous code for avoiding blocking a video track, as this new
code handles that case too.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:55:46 +00:00
Andreas Pehrson 19834afbea Bug 1536766 - Don't ignore null frames in MediaStreamGraph. r=padenot
Null frames could still be valid. It's how DecodedStream signals a pause. They
could also be valid and have an intrinsic size and the force-black flag set.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:55:41 +00:00
Andreas Pehrson cc6262e7c7 Bug 1536766 - Fix a rounding error in DecodedStream. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27262

--HG--
extra : moz-landing-system : lando
2019-04-24 10:55:37 +00:00
Andreas Pehrson ee433bc6ed Bug 1536766 - Send a black dummy frame out when a video track that contained no frames ends. r=jya
This is similar to what VideoSink does, and is required for us to end playback
on HAVE_CURRENT_DATA (a frame for currentTime must be available).

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:55:35 +00:00
Andreas Pehrson 93d09c009d Bug 1536766 - Follow the video clock when audio ends early in DecodedStream. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27260

--HG--
extra : moz-landing-system : lando
2019-04-24 10:53:52 +00:00
Andreas Pehrson 3bb44440ba Bug 1536766 - Fix MediaStream currentTime wrt starting late in a graph's timeline. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27259

--HG--
extra : moz-landing-system : lando
2019-04-24 10:53:44 +00:00
Andreas Pehrson 232e24cd08 Bug 1536766 - Re-label two files in gPlayTests as video, since they contain video tracks. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27258

--HG--
extra : moz-landing-system : lando
2019-04-24 10:53:31 +00:00
Andreas Pehrson 89b1d846dc Bug 1536766 - Switch test_streams_element_capture.html to test all gPlayTests. r=jya
This tests HTMLMediaElement::MozCaptureStream on all of our play-tests, rather
than just a single test, in order to test more corner cases in the capture code.

Because this test checks that the media element that's playing the
mozCaptureStream()-stream ends after at least the duration of the original media
file, and because media elements playing a MediaStream have a `currentTime`
based on the MediaStreamGraph's monotonically increasing clock, we need to have
accurate metadata for how long the duration of the content of the original media
file is. There are several cases among the play-tests where the duration
metadata doesn't match what the decoder gives us -- the reason is often preroll
or corrupt containers. This patch updates manifest.js with `contentDuration` for
the tests among `gPlayTests` where try detected mismatches.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:53:24 +00:00
Eden Chuang 9bffd42acf Bug 1539208 - Propagate the result of mListener in InterceptedHttpChannel::OnStartRequest and ::OnStopRequest r=perry,ttung,kershaw
1. Propagate the mListener's result in InterceptedHttpChannel::OnStartRequest()
   and ::OnStopRequest().

2. remove unnecessary assertion in FetchDriver::OnStartRequest().

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

--HG--
extra : moz-landing-system : lando
2019-04-24 08:49:36 +00:00
Emilio Cobos Álvarez 88a1b27597 Bug 1546046 - Remove support for XBL resources. r=TYLin
So much unsound code going away :-)

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

--HG--
extra : moz-landing-system : lando
2019-04-23 16:43:15 +00:00
Tom Tung b20f7ff351 Bug 1481164 - Dispatch to the Background thread even when the Connection is a nullptr in IdleConnectionRunnable::Run(); r=janv
Differential Revision: https://phabricator.services.mozilla.com/D28520

--HG--
extra : moz-landing-system : lando
2019-04-23 18:05:41 +00:00
Henri Sivonen ef43ab5278 Bug 1543363 - Use TabParent::GetWidget() for IME purposes. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D28458

--HG--
extra : moz-landing-system : lando
2019-04-24 05:59:17 +00:00
Zibi Braniecki d143f8ce30 Bug 1503657 - Migrate nsINode::localize and DOMLocalization.jsm to use DOMOverlays C++. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D27201

--HG--
extra : moz-landing-system : lando
2019-04-24 05:05:15 +00:00
Zibi Braniecki 0890bbe4c2 Bug 1503657 - Implement Fluent DOMOverlays in C++. r=smaug,Pike
Differential Revision: https://phabricator.services.mozilla.com/D27200

--HG--
extra : moz-landing-system : lando
2019-04-24 05:05:11 +00:00
Zibi Braniecki d6b38f2162 Bug 1503657 - Land DOMOverlays tests prior to switch to C++. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D27199

--HG--
extra : moz-landing-system : lando
2019-04-24 05:03:28 +00:00
violet 510981c8fe Bug 1073207 - getScreenCTM should account for padding and border for outer svg r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D28488

--HG--
extra : moz-landing-system : lando
2019-04-23 18:15:57 +00:00
Emilio Cobos Álvarez 1b45496357 Bug 1546467 - Preserve reflectors of custom elements when they already have one. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D28542

--HG--
extra : moz-landing-system : lando
2019-04-23 21:01:39 +00:00
Razvan Maries 98d200e4b4 Backed out changeset 7b326aa4930c (bug 1545416) for causing multiple perma failures. CLOSED TREE 2019-04-23 22:29:36 +03:00
Alastor Wu c58212fe27 Bug 1544023 - let AudioNode keep the reference of all AudioParams which belong to itself. r=padenot
When we suspend or resume the `AudioContext`, it should affect ALL media streams which belong to or are related to the `AudioNode` that are created by this `AudioContext`.

As `AudioNode::OutputParams()` can only return the connected AudioParams, it doesn't return the AudioParams which are belong to itself. That means we would miss to apply the suspend/resume operation for those streams, and it would cause imbalancing suspended count.

Therefore, we let `AudioNode` to keep the reference of all its AudioParam, and return them to `AudioContext` in order to do the operation for all streams.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 17:50:54 +00:00
Alex Chronopoulos aabdaf534f Bug 1545416 - Make the remote decoder shutdown async. r=mjf
Create a new IPDL message `ShutdownComplete`, direction from parent (RDD) to child (content), to inform the child when the decoder shutdown has been completed. The remote decoder child uses that message to resolve the shutdown promise.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 17:23:33 +00:00
Nika Layzell 1f9c0e088f Bug 1544936 - Part 2: Add a test for the new sendQuery method, r=jdai
Differential Revision: https://phabricator.services.mozilla.com/D27810

--HG--
extra : moz-landing-system : lando
2019-04-17 18:18:28 +00:00
Nika Layzell 6114a5f7ab Bug 1544936 - Part 1: Add a sendQuery method to send an async message with a response to JSWindowActor, r=mconley,jdai
This adds a single new method, which acts like sendAsyncMessage, but
also returns a promise. This promise is fulfilled when the promise
returned from the receiveMessage callback is resolved.

```
partial interface JSWindowActor {
  [Throws]
  Promise<any> sendQuery(DOMString messageName,
                         optional any obj,
                         optional any transfers);
}
```

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

--HG--
extra : moz-landing-system : lando
2019-04-18 19:37:15 +00:00
Christoph Kerschbaumer 42672fde72 Bug 1544863: Explicitly pass csp to createContentWindow(). r=Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D27871

--HG--
extra : moz-landing-system : lando
2019-04-23 14:37:40 +00:00
Dorel Luca facaf244e4 Backed out changeset 7d3f2f4c53be (bug 1544863) for eslint failure 2019-04-23 17:16:13 +03:00
Tom Tung b3aba7b188 Bug 1528690 - P3 - Change more assertions to diagnostic assertion to get more information on Nightly; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D28455

--HG--
extra : moz-landing-system : lando
2019-04-23 13:25:23 +00:00
Christoph Kerschbaumer 73a324ee2d Bug 1544863: Explicitly pass csp to createContentWindow(). r=Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D27871

--HG--
extra : moz-landing-system : lando
2019-04-23 13:02:40 +00:00
violet 60a266004c Bug 1342800 - ComputeSize should not treat iframe as object r=firefox-svg-reviewers,longsonr
We should not treat <iframe> as <object> for SVG, otherwise there will
be unexpected sizing and other webcompat problem (e.g. getScreenCTM).

It behaved correctly before, the change was introduced to solve a double
zooming problem (bug 843480) for <iframe>. Actually the zooming problem
can be solved by avoiding zooming when the window frame is an <iframe>.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 16:32:14 +00:00
Masayuki Nakano 3bd62fb08a Bug 1543315 - part 11: Mark nsIPresShell::ScrollContentIntoView() as MOZ_CAN_RUN_SCRIPT r=smaug
This patch marks `ScrollContentIntoView()` as `MOZ_CAN_RUN_SCRIPT` and changing
some callers of them to guarantee thar their parent callers are also safe.

Additionally, this patch moves it from `nsIPresShell` to `PresShell` because
all callers can refer `PresShell` directly.

Unfortunately, this patch changes a lot of methods in autocomplete and satchel
since this patch needs to mark some interface methods as `can_run_script` and
they are called each other.  This means that autocomplete module is really
sensitive like editor module.  Perhaps, autocomplete and satchel should do
scroll asynchronously and unmark some of them as `MOZ_CAN_RUN_SCRIPT` again.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 01:34:24 +00:00
Masayuki Nakano 65aa369673 Bug 1543315 - part 10: Mark nsIPresShell::GoToAnchor() and nsIPresShell::ScrollToAnchor() as MOZ_CAN_RUN_SCRIPT r=smaug
Next, we should mark `PresShell::ScrollContentIntoView()` as
`MOZ_CAN_RUN_SCRIPT` because it's used widely.

This patch marks its `PresShell` users, `GoToAnchor()` and `ScrollToAnchor()`,
as `MOZ_CAN_RUN_SCRIPT`.  Additionally, this patch moves them from
`nsIPresShell` to `PresShell` because all callers refers `PresShell` directly.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 01:27:47 +00:00
Bogdan Tara ec489aa170 Backed out changeset e85cb54e5944 (bug 1546046) complementary backout after 1470880 was backed out CLOSED TREE 2019-04-23 06:55:29 +03:00
Edwin Gao 9994405ece Bug 1544961 - comment on gtests that are disabled, disable ThreadUtils.IdleRunnableMethod and Timers.FindExpirationTime for windows10-aarch64 r=jmaher,gbrown,dmajor
Changes:
- added comments for tests being disabled
- disabled two additional tests in order to green the run

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

--HG--
extra : moz-landing-system : lando
2019-04-23 00:21:37 +00:00
Jeff Gilbert bfe578d84d Bug 1545890 - Depth textures are filterable like RED textures. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D28267

--HG--
extra : moz-landing-system : lando
2019-04-22 20:57:57 +00:00
Emilio Cobos Álvarez daef6a8b67 Bug 1546046 - Remove support for XBL resources. r=TYLin
So much unsound code going away :-)

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

--HG--
extra : moz-landing-system : lando
2019-04-22 21:57:22 +00:00
Oana Pop Rus bb64503da3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-23 01:15:48 +03:00
Oana Pop Rus cd403eabd2 Merge inbound to mozilla-central. a=merge 2019-04-23 00:48:20 +03:00
Miko Mynttinen f579c8f5c5 Bug 1540785 - Part 1: Introduce nsDisplayItemBase r=mattwoodrow
***

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

--HG--
extra : moz-landing-system : lando
2019-04-22 19:57:59 +00:00
Daosheng Mu 9e73a18233 Bug 1545806 - Correct the initializer list in Windows gamepad axis value constructor. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28242

--HG--
extra : moz-landing-system : lando
2019-04-22 18:37:11 +00:00
Emilio Cobos Álvarez 95d5d947ba Bug 874811 - Outer svg is a replaced box with CSS layout, and CSSOM should reflect that accordingly. r=dholbert,violet
Co-authored-by: violet <violet.bugreport@gmail.com>

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

--HG--
extra : moz-landing-system : lando
2019-04-22 17:01:10 +00:00
Jeff Gilbert 0042440c14 Bug 1520948 - Update test failures. 2019-04-22 09:42:11 -07:00
Sylvestre Ledru a1dce6440a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-22 16:35:03 +00:00