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

100613 Коммитов

Автор SHA1 Сообщение Дата
Dorel Luca d7fb1f865f Backed out changeset 0672855335bc (bug 1702678) for Mochitest failures in toolkit/components/windowwatcher/nsWindowWatcher.cpp. CLOSED TREE 2021-05-05 02:01:05 +03:00
Karl Tomlinson 75943ec6c2 Bug 1709474 - rename nsIDOMNavigatorUserMedia.idl to nsIMediaDevice.idl r=jib
This is more appropriate since
https://hg.mozilla.org/mozilla-central/rev/db29f053e54ef83da3e313de6e85f3b850faa543#l5.12
and helps generated webidl bindings find the right header.

Differential Revision: https://phabricator.services.mozilla.com/D111564
2021-05-04 22:03:01 +00:00
Bryce Seager van Dyk a5f0265053 Bug 1692582 - Handle non-ok error codes + zero and negative values when getting duration for IMFSamples. r=alwu
This patch changes our handling of durations in the WMF video MFT manager.
Prior to this patch we had some handling for if VP9 samples were returned with
zero duration. However, this patch extends this to the general case so that we
will try and estimate the duration using Gecko data in the following cases
- If Windows returns an error code when getting the duration. This can be
  because the duration is unknown, but the API also specifies it can fail due to
  other, unstated reasons (we handle these too).
- If Windows returns a 0 duration. This is also used to indicate an unknown
  duration. We now handle this for arbitrary codecs, not just VP9.
- If Windows returns a negative duration. It's unclear if Windows will do this,
  and if it does, under what cases. However, since the API returns the duration
  as an signed int it's possible, so we cover this too.

In all cases above, we will use the duration we record from our last input
sample as the output sample duration.

Differential Revision: https://phabricator.services.mozilla.com/D114247
2021-05-04 21:56:48 +00:00
Kris Maglione 314594a5ea Bug 1702678: Handle corner case when opener window is closed from a nested event loop during open. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D111179
2021-05-04 21:19:22 +00:00
Sean Feng 4c04bd745b Bug 1709233 - Fix a null pointer crash in HTMLDialogElement::StorePreviouslyFocusedElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D114256
2021-05-04 18:39:04 +00:00
Niklas Goegge 1064d9dc06 Bug 1708704 - Check for null pointers when using GetWindowContext() r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D114226
2021-05-04 17:25:23 +00:00
Dorel Luca f8cffec171 Backed out 4 changesets (bug 1707590) for worker/checkouts/gecko/config/rules.mk. CLOSED TREE
Backed out changeset 4ccdb31e1c5a (bug 1707590)
Backed out changeset 4b69f99caf69 (bug 1707590)
Backed out changeset a3f23a20b532 (bug 1707590)
Backed out changeset f591c3da4311 (bug 1707590)
2021-05-04 20:29:51 +03:00
Kagami Sascha Rosylight 1c2fec0dc9 Bug 1707590 - Part 4: Add image/jxl to Accept header and DownloadsViewableInternally r=necko-reviewers,dragana
Depends on D113360

Differential Revision: https://phabricator.services.mozilla.com/D113688
2021-05-04 15:24:55 +00:00
Sandor Molnar f7b8c6b3d1 Backed out 2 changesets (bug 1708116) for causing build bustages. CLOSED TREE
Backed out changeset d1488e9d64a6 (bug 1708116)
Backed out changeset 44ed91f0b7b4 (bug 1708116)
2021-05-04 18:41:36 +03:00
Henri Sivonen cec8f0915a Bug 1702297 - Wait for iframe loading to stabilize before testing element blurring. r=edgar
History shows that the test being modified here tries to test crashiness of
what happens from the onblur handler. That the initial focus originally happened
from the HTML parser instead of from a stable state seems unimportant for the
purpose of the test but introduced an opportunity for timing differences between
runs.

Differential Revision: https://phabricator.services.mozilla.com/D114068
2021-05-04 14:50:53 +00:00
sanketh 6a3c22f574 Bug 1635603 - Create a nsContentUtils::ShouldResistFingerPrinting(nsIChannel* aChannel) r=tjr,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D95477
2021-05-04 14:34:23 +00:00
Sebastian Hengst 8958ae3c7c Bug 1705410 - disable test_drawWindow_widget_layers.html on Windows code coverage for permanent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113922
2021-05-04 14:33:00 +00:00
Sandor Molnar c5f7ff6b65 Backed out changeset fda42a745baf (bug 1708114) for causing Gtest failures in UnexpectedPrivilegedLoadsTelemetryTest. CLOSED TREE 2021-05-04 18:13:00 +03:00
Valentin Gosu 5ae9a468e0 Bug 1708116 - Use NetAddr::InitFromString instead of PR_StringToNetAddr r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D113752
2021-05-04 14:05:59 +00:00
Iulian Moraru 7e3d199323 Backed out 4 changesets (bug 1707590) for causing build bustages. CLOSED TREE
Backed out changeset f3f40c6fb8e2 (bug 1707590)
Backed out changeset 3e76ff83ebe2 (bug 1707590)
Backed out changeset 40a3f43a2306 (bug 1707590)
Backed out changeset 01bb0e75cb82 (bug 1707590)
2021-05-04 17:11:54 +03:00
Kagami Sascha Rosylight 16d0bd0051 Bug 1707590 - Part 4: Add image/jxl to Accept header and DownloadsViewableInternally r=necko-reviewers,dragana
Depends on D113360

Differential Revision: https://phabricator.services.mozilla.com/D113688
2021-05-04 13:29:10 +00:00
Frederik Braun 886cc45e9a Bug 1708114 - when doing unexpected systemprincipal loads, record redirected schemes - r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D113763
2021-05-04 13:04:18 +00:00
Iulian Moraru b21df91635 Backed out 3 changesets (bug 1680387) for causing browser chrome failures on browser_bug592641.js. CLOSED TREE
Backed out changeset 65616921e520 (bug 1680387)
Backed out changeset 51531850a9a2 (bug 1680387)
Backed out changeset 0c1c5e1f901b (bug 1680387)
2021-05-04 16:28:17 +03:00
Emilio Cobos Álvarez 27cc12171b Bug 1680387 - Fix interaction with src-set() / image-set(), and enable the feature by default. r=tnikkel
As discussed here: https://github.com/whatwg/html/pull/5574#issuecomment-826347560

This matches other browsers.

Depends on D113265

Differential Revision: https://phabricator.services.mozilla.com/D113267
2021-05-04 10:24:08 +00:00
Emilio Cobos Álvarez 11ad9c7bcd Bug 1680387 - Apply intrinsic image resolution as appropriate in layout/style/dom, and update test expectations. r=tnikkel
This should be mostly straight-forward, since we have code for this
anyways for image-set() and srcset.

The only thing is that we were using floats for resolution, but since
EXIF allows you to scale each axis separately, we now need to pass an
image::Resolution instead.

The main outstanding issue is the spec comment mentioned in the previous
patch, about what happens if you have srcset/image-set and the image
density specified together. For now I've implemented what the
image-set() spec says, but this is subject to change before shipping of
course.

Differential Revision: https://phabricator.services.mozilla.com/D113265
2021-05-04 10:24:07 +00:00
lyavor d8cb699cc0 Bug 1704454 - Copy and adapt test https-only/test_resource_upgrade.html for https-first. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D113314
2021-05-04 07:51:26 +00:00
Karl Tomlinson 1f6f4224c8 Bug 1708179 throw when PannerNode param value a not in the range of float r=padenot
This is similar to what WebIDL bindings would do for us when the AudioParam setters are called.

setPosition() "is equivalent to setting positionX.value, positionY.value, and positionZ.value
attribute directly with the x, y and z parameters, respectively."
https://webaudio.github.io/web-audio-api/#dom-pannernode-setposition

Differential Revision: https://phabricator.services.mozilla.com/D113943
2021-05-04 03:48:34 +00:00
Karl Tomlinson ccc0c7cae2 Bug 1708179 switch from PannerNode.setPosition() parameters close to DBL_MAX to FLT_MAX r=padenot
The large numbers were to test
https://hg.mozilla.org/integration/mozilla-inbound/rev/084b01d1b6b3
but were ignored after
https://hg.mozilla.org/integration/mozilla-inbound/rev/8799895ca858

Depends on D113941

Differential Revision: https://phabricator.services.mozilla.com/D113942
2021-05-04 03:48:33 +00:00
Karl Tomlinson a6be19d968 Bug 1708179 throw when attempting to set AudioParam value during setValueCurveAtTime() interval r=padenot,emilio
Depends on D113938

Differential Revision: https://phabricator.services.mozilla.com/D113939
2021-05-04 03:48:32 +00:00
Karl Tomlinson f2c39b5980 Bug 1708179 add AudioParam::SetInitialValue() for use in AudioNode creation r=padenot
when the setter should not throw because there are no events in the timeline
and the time is known valid.

This will allow us to make SetValue() throw when it conflicts with a
setValueCurveAtTime() curve.

Depends on D113937

Differential Revision: https://phabricator.services.mozilla.com/D113938
2021-05-04 03:48:32 +00:00
Karl Tomlinson 2b6889435f Bug 1708179 clarify that AudioEventTimeline::ValidateEvent() has no side effects r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D113937
2021-05-04 03:48:32 +00:00
Haik Aftandilian a651eec1e4 Bug 1709225 - Add more logging to test file_fullscreen-scrollbar.html r=mac-reviewers,tnikkel
Add more logging to test file_fullscreen-scrollbar.html (executed by dom/html/test/test_fullscreen-api.html) so it is easier to understand failures.

Differential Revision: https://phabricator.services.mozilla.com/D114187
2021-05-04 00:11:12 +00:00
Brendan Dahl 7b2ab557b8 Bug 1651317 - Handle race in script compiling in PrototypeDocumentContentSink. r=smaug
I have still yet to reproduce this. However, it looks like it could happen if
two documents load the same script and they both finish at the same time
and one clears the mCurrentScriptProto of the other.

Differential Revision: https://phabricator.services.mozilla.com/D113602
2021-05-04 00:01:22 +00:00
Boris Chiou 5272e5d351 Bug 1706157 - Avoid int overflow for steps() timing function. r=hiro
We increase |jumps| for steps(<integer>,jump-both), and the <integer>
could be a large number, so we have to avoid the int overflow. Now we use
CheckedInt32 for it.

Also, `aPortion * aStepFunc.mSteps` may be out of the range of int32_t,
so we clamp it first and use CheckedInt32 for currentStep, too.

The error handling is pretty simple. We don't care about the result of
this unexpected behavior, so we simply roll the value back to the
original one.

Differential Revision: https://phabricator.services.mozilla.com/D112684
2021-05-03 23:07:03 +00:00
alwu 49eb472b16 Bug 1707242 - part2 : add test. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D114006
2021-05-03 21:12:02 +00:00
alwu 46b9e4daeb Bug 1707242 - part1 : use empty image in null video data. r=bryce
Using a non-null image can prevent element from changing its ready state incorrectly to `HAVE_METADATA`. See more detailed analysis in [1].

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1707242#c9

Differential Revision: https://phabricator.services.mozilla.com/D114005
2021-05-03 21:12:01 +00:00
Ted Campbell 89afad4d44 Bug 1706937 - Cleanup JS source-element callback. r=jandem
Rename the JSGetElementCallback hook to JSSourceElementCallback to avoid
confusion with GetElement operations.

Differential Revision: https://phabricator.services.mozilla.com/D113985
2021-05-03 20:08:06 +00:00
Alexandru Michis 15bcc479cb Backed out changeset a2bf2c83f0bb (bug 1705484) for causing mochitest failures in test_ioutils_copy_move.html
CLOSED TREE
2021-05-03 22:58:49 +03:00
Jan Varga e9c1a62d68 Bug 1709067 - QM: Remove the ability to define module specific QM_TRY macros; r=dom-storage-reviewers,asuth
Depends on D114083

Differential Revision: https://phabricator.services.mozilla.com/D114084
2021-05-03 19:44:40 +00:00
Jan Varga 5facda493a Bug 1709067 - LS: Remove module specific QM_TRY macros; r=dom-storage-reviewers,jstutte
Depends on D114082

Differential Revision: https://phabricator.services.mozilla.com/D114083
2021-05-03 19:44:40 +00:00
Jan Varga 0402c4b6e0 Bug 1709067 - SDB: Remove module specific QM_TRY macros; r=dom-storage-reviewers,jstutte
Depends on D114081

Differential Revision: https://phabricator.services.mozilla.com/D114082
2021-05-03 19:44:39 +00:00
Jan Varga 09996cc685 Bug 1709067 - CACHE: Remove module specific QM_TRY macros; r=dom-storage-reviewers,jstutte
Depends on D114080

Differential Revision: https://phabricator.services.mozilla.com/D114081
2021-05-03 19:44:39 +00:00
Jan Varga 42a2a6727f Bug 1709067 - IDB: Remove module specific QM_TRY macros; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D114080
2021-05-03 19:44:38 +00:00
Barret Rennie 317c470704 Bug 1705484 - Remove OS.* from most IOUtils tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D113451
2021-05-03 19:21:00 +00:00
Byron Campen [:bwc] bc0f8757c0 Bug 1708813: Remember remote side's payload type on recv tracks when we were the offerer. r=mjf
Depends on D114039

Differential Revision: https://phabricator.services.mozilla.com/D114040
2021-05-03 18:53:17 +00:00
Randell Jesup 21e22f032c Bug 1708490: Create a PreallocInit method r=nika
Differential Revision: https://phabricator.services.mozilla.com/D113820
2021-05-03 18:18:29 +00:00
Kashav Madan dc647a1e8e Bug 1702055 - Move the "restore DocShell state" process out of ContentSessionStore, r=nika
This also makes it so that we will never fire SSTabRestored without first having
sent the associated SSTabRestoring event.

Differential Revision: https://phabricator.services.mozilla.com/D110335
2021-05-03 18:16:41 +00:00
Kashav Madan 976264b9af Bug 1702055 - Replace CallRestoreTabContentComplete with a Promise, r=nika
This should help avoid message ordering issues in the next patches. To ensure
that we're not firing events too early, we now do a "full" restore even if we
don't have form or scroll data, including for about:blank URIs.

This also moves all restore state on the CanonicalBrowsingContext into a
separate `mRestoreState` struct.

Differential Revision: https://phabricator.services.mozilla.com/D110333
2021-05-03 18:16:40 +00:00
Emilio Cobos Álvarez 06e3d1945d Bug 1709062 - Minor cleanups to nsDOMWindowUtils::CompareCanvases. r=dholbert
Warn when some of the pre-conditions fail and such, so that it's easy to
see what's going wrong without having to use a debugger.

Remove some useless null-checks (we were dealing with null arguments
anyways, and the return value is never null).

Depends on D114078

Differential Revision: https://phabricator.services.mozilla.com/D114079
2021-05-03 17:48:19 +00:00
alwu 35f3dc0dc8 Bug 1708700 - only access 'mData' when it's not null. r=padenot
Depends on D114015

Differential Revision: https://phabricator.services.mozilla.com/D114018
2021-05-03 16:30:45 +00:00
alwu acb23b0563 Bug 1708790 - add crash test for bug1708536. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D114015
2021-05-03 16:30:44 +00:00
Csoregi Natalia a5d0603d71 Merge mozilla-central to autoland. CLOSED TREE 2021-05-03 12:47:22 +03:00
Edgar Chen 175367a9cc Bug 1707870 - Stop generating empty namespace block; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D113502
2021-05-03 08:58:56 +00:00
Kagami Sascha Rosylight 69d0e90d28 Bug 1708702 - Add to radio group after handling type change r=edgar
The previous assumption was that mType would be updated before AfterSetAttr(), but that assumption is invalidated by bug 1347640. This patch moves the radio group addition part to the position after HandleTypeChange() is called.

Differential Revision: https://phabricator.services.mozilla.com/D114038
2021-05-03 08:53:02 +00:00
Butkovits Atila 37ebf0c298 Bug 1698698 - add comment spaces a=typo-fix 2021-05-03 01:08:26 +03:00