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

65898 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru d938e24c4c Bug 1387002 - Replace .size() by .empty() when applicable in webrtc & mtransport r=jesup
MozReview-Commit-ID: 4DyftBRDEcU

--HG--
extra : rebase_source : 92b00b313060c0631e087216c6a30b421b58199d
2017-08-04 09:36:19 +02:00
btian 1acd604a98 Bug 1384030 - Enable setting <input type=file>.files. r=smaug 2017-08-08 17:49:48 +08:00
Tim Huang 5e4b2337bc Bug 1369309 - Part 4: Modify the test case 'test_video_stats_resistfingerprinting.html'. r=cpearce, r=arthuredelstein
This patch modifies the test case 'test_video_stats_resistfingerprinting.html'
to check media statistics report spoofed values when fingerprinting resistance
is enabled.

This test will play a video and test the media statistics when the video is finished.
It will make sure all media statistics report correct spoofed values corresponding
to the play time of the video.

MozReview-Commit-ID: GpYewu7cIbY

--HG--
extra : rebase_source : 0eb771c4a9472436f990d53a042656a60bab22f6
2017-07-17 17:30:08 +08:00
Tim Huang 7af48eb06f Bug 1369309 - Part 3: Making the media statistics reports a spoofed value when fingerprinting resistance is enabled. r=cpearce, r=arthuredelstein
This patch makes the media statistics report values with a fixed frames per second
and a dynamic dropped ratio when resistance fingerprinting is enabled. The dropped
rate is decided by the video resolution that it will report a fixed dropped rate
when the video resolution is greater than 480p. And It will report a zero dropped
rate if the video is below or equal to 480p. In addition, it adds three new prefs
that allow us to change the value of frames per second, the dropped ratio and the
threshold of target video resolution. The three prefs are
'privacy.resistFingerprinting.video_frames_per_sec', 'privacy.resistFingerprinting.video_dropped_ratio'
and 'privacy.resistFingerprinting.target_video_res'. The default values of them
are 30, 5 and 480, which means 30 frames per second, 5 percent dropped ratio and
480p.

This also adds a new helper function 'nsContentUtils::ShouldResistFingerprinting(nsIDocument* aDoc)'
for checking whether fingerprinting resistance is enabled for a given docuemnt.
If it is a chrome document, this function will indicate that fingerprinting
resistance is not enabled regardless of the pref 'privacy.resistFingerprinting'.
If it is a content document, the result will depend on the pref.

MozReview-Commit-ID: FbSuRq6Zdnn

--HG--
extra : rebase_source : a62a1be19d9b38520f9eed7164fb258e3354d228
2017-07-17 15:13:55 +08:00
Tim Huang f80792ee67 Bug 1369309 - Part 2: Add a test case to check whether media statistics has been spoofed correctly when 'privacy.resistFingerprinting' is true. r=jwwang, r=arthuredelstein
MozReview-Commit-ID: F6jNk58z7bH

--HG--
extra : rebase_source : 749d952286b12db14353b03b254fb74561174e40
2017-06-19 14:43:27 +08:00
Tim Huang a6420be85e Bug 1369309 - Part 1: Spoofing media statistics to 0 when 'privacy.resistFingerprinting' is true. r=jwwang, r=arthuredelstein
MozReview-Commit-ID: FNALpUGFDTQ

--HG--
extra : rebase_source : 3ba5bfca6178ffdf15ceeeb66cb17e902e82b15a
2017-06-19 14:43:26 +08:00
J.C. Jones b491193ac3 Bug 1383799 - Cancel WebAuthn operations on tab-switch r=ttaubert
WebAuthn operations that are in-flight with authenticators must be cancelled
when switching tabs.

There's an Issue [1] opened with the WebAuthn spec for this already, but the
language is _not_ in spec. Still, it's necessary for security, spec or not.

This also matches how Chromium handles U2F operations during a tab switch.

[1] https://github.com/w3c/webauthn/issues/316

MozReview-Commit-ID: 6Qh9oC4pqys

--HG--
extra : rebase_source : ad1665b8140f74b1291f17994285e6146c4ec468
2017-08-04 12:34:18 -07:00
Mantaroh Yoshinaga fc6de5f2b5 Bug 1383512 - Skip test_user_select.html on windows of opt and pgo. r=gbrown
This patch skip the test_user_select.html test since windows build of
pgo/opt will fail this test sometimes on try.
This is temporaly solution until clarifying the reason of it.
(We track it on same bug).

MozReview-Commit-ID: BlwdoYxNTxP

--HG--
extra : rebase_source : 7201de141da43a3fd395a7f8ba4fdfb9fad1e6bf
2017-08-09 12:55:58 +09:00
bechen@mozilla.com 264c2a6732 Bug 1385092 - Null check for the sParserWrapper. r=alwu
From the crash report and code logic, it is possible that the KillClearOnShutdown comes and the NS_XPCOM_SHUTDOWN_OBSERVER_ID never comes when getting obsercerService fail.
So add null check for the sParserWrapper and combine mShutdown to a new function.

MozReview-Commit-ID: Cj5ph2JrO7v

--HG--
extra : rebase_source : 4f9982a3e44e6f1a4db48739af92dc04cb0112d6
2017-08-09 17:30:52 +08:00
J.C. Jones 28cc1969ee Bug 1265472 - Add Telemetry to Web Authentication r=francois,keeler datareview=francois
This patch intends to obtain a 1) rough sense of the percentage of telemetry
population using Web Authentication over time, and 2) whether or not the
Authentication request was successful or errored out as a scalar. It also tracks
3) how long it takes for requests to complete as a histogram.

It counts Register (enrollment) and Sign (login) separately as we would
anticipate there being far, far more Sign uses than Register.

MozReview-Commit-ID: 8DFyKAG8XJw

--HG--
extra : rebase_source : 0c168b32b995ffffda804538d2b92009d4dc38c5
2017-08-09 12:22:48 -07:00
Aryeh Gregor ee2971cce8 Bug 1388775 - extractContents should copy nodes in tree order, not backwards; r=smaug
Per spec, Range.prototype.extractNodes() should copy the nodes in tree
order:

https://dom.spec.whatwg.org/#dom-range-extractcontents

Gecko instead copies them in reverse order.  This causes us to fail a
wpt MutationObserver test.

MozReview-Commit-ID: 8MYXGhDsJCd

--HG--
extra : rebase_source : 94fb2e96370e575906ba9927d904561744a1d7bb
2017-08-09 18:40:21 +03:00
Masayuki Nakano 71cc15557e Bug 1387406 - part5: nsXBLWindowKeyHandler should treat editor as HTMLEditor r=smaug
Editor treated in nsXBLWindowKeyHandler is always HTMLEditor.  So, it should treat the editor as is.

MozReview-Commit-ID: 7uE2p8t5cNW

--HG--
extra : rebase_source : 66b2f42d9d0281f4a244f9cd1ceb077e32ac3515
2017-08-07 15:08:02 +09:00
Masayuki Nakano 9bd3a7d128 Bug 1387406 - part4: nsFrameLoader should treat editor as HTMLEditor r=smaug
Editor treated in nsFrameLoader is always HTMLEditor.  So, it should treat the editor as is.

MozReview-Commit-ID: 7bZMbLGKsED

--HG--
extra : rebase_source : 47c22423062cd724551ad3b4fde168e03891b4c7
2017-08-07 15:02:16 +09:00
Masayuki Nakano bc9b8f0f01 Bug 1387406 - part3: nsFocusManager should treat editor as HTMLEditor r=smaug
Editor treated by nsFocusManager is always HTMLEditor.  So, it should treat the editor as is.

MozReview-Commit-ID: Di1k2dlLodV

--HG--
extra : rebase_source : 49abc56f0a271cdf559adde468d8460ab1ba7aac
2017-08-07 14:55:58 +09:00
Aryeh Gregor be9bccc716 Bug 1388746 - Do not split start/end text nodes in deleteContents/extractContents; r=smaug
If a range endpoint is in the middle of a text node, and you call
deleteContents() or extractContents(), the spec says to delete the data
from the node.  In the case of extractContents(), the new text node
that's inserted into the DocumentFragment is a clone with its data set
to the bit that was deleted.
<https://dom.spec.whatwg.org/#dom-range-deletecontents>
<https://dom.spec.whatwg.org/#dom-range-extractcontents>

We don't do this.  Instead, we split the text node.  Then the bit to
delete is deleted naturally at a later stage together with all the other
nodes.

The result is the same, but on the way there we do a bunch more node
mutations.  This causes extra mutation records, which cause us to fail a
WPT test.  Chrome passes.  Changing to match the spec actually reduces
our lines of code anyway.

MozReview-Commit-ID: FTTV5yNSj71

--HG--
extra : rebase_source : 8d5f36c68c71db0700f0b86d1a73462759f922e8
2017-08-09 17:39:06 +03:00
James Cheng ad74bc6fbc Bug 1388633 - Relax the duration constrain due to the duration may be changed in runtime. r=alwu
The original duration I wrote is calculated from the m3u8 file this is too accurate without error tolerant.
The state machine will update playback position periodically(UpdatePlaybackPositionPeriodically)
according to the clockTime or max end time from A/Vsink.
So the duration will be variant that I should consider to set the value to a more relaxed value.
MozReview-Commit-ID: GGwkhvzz8sI

--HG--
extra : rebase_source : c0465f7aef7a41e999e8c4c3429957fa56336239
2017-08-10 14:59:25 +08:00
Sebastian Hengst b0dd142237 Backed out changeset be8e60de5c0c (bug 1388656) for heap buffer overflow at AudioNodeEngine.cpp:375:12 in mozilla::AudioBufferSumOfSquares. r=backout 2017-08-10 11:18:36 +02:00
Sebastian Hengst 290327d0fb Backed out changeset 1eb9ee70ccf1 (bug 1388656) 2017-08-10 11:17:18 +02:00
Sebastian Hengst 69e0a8b3f7 Backed out changeset ece4f9694407 (bug 1388656) 2017-08-10 11:17:13 +02:00
Sebastian Hengst 64aa1882b5 Backed out changeset af73f36f7469 (bug 1388656) 2017-08-10 11:17:07 +02:00
Sebastian Hengst b461ae5e9b Backed out changeset f03833f24817 (bug 1024182) for heap buffer overflow at AudioNodeEngine.cpp:375:12 in mozilla::AudioBufferSumOfSquares. r=backout 2017-08-10 11:16:27 +02:00
Sebastian Hengst 6a474244a8 Backed out changeset 78d87b59f5a7 (bug 1370508) for unexpected pass of wpt-reftest /css/css-namespaces-3/syntax-013.xml. r=backout on a CLOSED TREE 2017-08-10 10:23:22 +02:00
Makoto Kato 4418d7d986 Bug 1381710 - Selection.addRange will be failure with dynamic table insertion. r=tnikkel
When range is selected table element, Selection.addRange uses nsFrameSelection.  If frame isn't constructed yet, addRange throws NS_ERROR_FAILURE even if table element isn't editable element.

When getting nsITableCellLayout, we should flush frame to construct cell frame.

MozReview-Commit-ID: 9qWwW46RYNL

--HG--
extra : rebase_source : 708e78af457a28bc273b83015f78950a5bee232e
2017-07-18 16:54:31 +09:00
Karl Tomlinson 614fee5117 bug 1024182 remove unnecessary buffer copy for short impulse responses r=padenot
Despite the comment, this was necessary only for a direct convolver stage,
which has been removed:
https://hg.mozilla.org/mozilla-central/rev/e66105937eef190dec073f1b9859e07a0272706b#l4.29

FFT convolver stages pad the buffer to the necessary length in
FFTBlock::PadAndMakeScaledDFT().

MozReview-Commit-ID: LqP1x1hmLOM

--HG--
extra : rebase_source : 622e16140b62ca748a31cbd318f881c617baf17a
2017-08-09 16:52:01 +12:00
Karl Tomlinson 46ad6041ff bug 1388656 keep response buffer on graph thread only long enough to initialize the Reverb r=padenot
MozReview-Commit-ID: 6DvpXeWPGHp

--HG--
extra : rebase_source : 50a2f7e4df207d971894189d9de8844fab0a7954
2017-08-08 16:08:21 +12:00
Karl Tomlinson 0b158fb300 bug 1388656 re-initialize the Reverb only once when the ConvolverNode buffer changes r=padenot
MozReview-Commit-ID: IKMK5GYVRBB

--HG--
extra : rebase_source : 03c234254e2eafe6899ed1b51634810db1b38f90
2017-08-08 16:01:57 +12:00
Karl Tomlinson 35b76397c6 bug 1388656 remove unused SAMPLE_RATE SetInt32Parameter case r=padenot
Sample rate is passed as a double.

MozReview-Commit-ID: DBCvrCWPlgf

--HG--
extra : rebase_source : 58812c4a69c5b8dacd2fbee81405f5d97132ed1d
2017-08-08 15:56:09 +12:00
Karl Tomlinson 59eb07a88f bug 1388656 size to actual used length in nsTArray::SetCapacity() optimization r=padenot
MozReview-Commit-ID: BGFliZTx4QL

--HG--
extra : rebase_source : b0e8767bc0beb7fb87559d9135c93937ff4b5470
2017-08-08 15:47:24 +12:00
Xidorn Quan a0b8a2c68d Bug 1370508 - Enable stylo on generic XML documents. r=heycam
MozReview-Commit-ID: 4XQ9RPQ7oa1

--HG--
extra : rebase_source : f5ffeaa615076035215f5ac1b9b39aa5cb15d618
2017-08-09 19:57:33 +10:00
JW Wang c1f09cc606 Bug 1388665 - remove BufferingState::DispatchDecodeTasksIfNeeded(). r=kaku
We will dispatch decoding tasks in Handle{Audio,Video}Decoded() instead.
See comment 0 for the rationale.

MozReview-Commit-ID: 9trJYoMfzJH

--HG--
extra : rebase_source : 0fae6eda31571d34268f2dba58a8e5f6cf0dadc9
extra : source : 275964a63b741e4ac0258e714f54f43d5cc6ae0b
2017-08-09 16:56:41 +08:00
JW Wang ab74a61674 Bug 1388612. P2 - remove the call to NotifySuspendedStatusChanged() in MediaDecoder::FirstFrameLoaded(). r=gerald
Following P1, cache suspend status changes will be notified when necessary.
If not, it would be a bug that should be fixed. We shouldn't wallpaper the
issue by calling NotifySuspendedStatusChanged() manually.

MozReview-Commit-ID: 9EbybTiOOIO

--HG--
extra : rebase_source : 299e22c6813f4eeb152c4d8140dc295ff856dc1e
extra : source : 2b18fe0368c6332d0b5c1e044218a26c75314124
2017-08-09 16:13:51 +08:00
JW Wang af3ce851d6 Bug 1388612. P1 - remove MediaResource::EnsureCacheUpToDate(). r=gerald
This is a workaround to fix bug 687972. It should be OK now to remove
it since we have fix bug 1108960  where MediaCache failed to run the
update loop to update the suspend status of the stream.

MozReview-Commit-ID: MbInehhScs

--HG--
extra : rebase_source : 94345a00af31834db8b9858cdf5a9e889044156a
extra : source : 70f626894c3a15c8077f70425a97004478caa9e1
2017-08-09 16:07:53 +08:00
JW Wang 32951f4824 Bug 1388604 - move SetReadMode() from MediaResource to BaseMediaResource. r=gerald
It would be less accurate to call SetReadMode(MediaCacheStream::MODE_PLAYBACK)
in ChannelMediaDecoder::MetadataLoaded() instead of DecodeMetadataState::OnMetadataRead()
because MDSM might have started decoding by the time 'metadata loaded' event arrives
in the main thread. However this little inaccuracy should be fine since it only
affects a small amount of data concerning the eviction algorithm.

MozReview-Commit-ID: JoQMGr5Fvge

--HG--
extra : rebase_source : 3663a028522cc8b973964f62e59d7568a5eba10a
extra : source : 359b4454633432d3334a106aedb267a2451afb45
2017-08-09 11:06:29 +08:00
Xidorn Quan 58e5987209 Bug 1383992 part 1 - Disable failing mochitests. r=heycam
MozReview-Commit-ID: J9LoovJJJgM

--HG--
extra : rebase_source : a5ed4b2a11c293c50d642c3a0da6831ce5a885a1
extra : source : 8d97565b7dedaef3b46e65b92b1ca1e0598d2a76
extra : histedit_source : 72834d0bc485e78cb8c1de357e4b545d7e6408f5
2017-08-09 08:31:26 +10:00
James Cheng edcb5a7dd9 Bug 1388822 - Skip test_playback_hls.html lower than API level 20. r=alwu
MozReview-Commit-ID: 3wzzNr5xNjB

--HG--
extra : rebase_source : 30037d1aabd157d8606976b56c769d91e20b4a3f
2017-08-10 01:39:49 +08:00
Haik Aftandilian f73b286d2a Bug 1386832 - Part 1 - Move non-sandbox-specific routines out of SandboxSettings. r=jimm
Moves IsDevelopmentBuild(), GetRepoDir(), and GetObjectDir() out of
SandboxSettings because they also need to be used by ExtensionProtocolHandler
to do security checks on developer builds as a result of how developer builds
rely on symlinks to the repo dir from system extension directories.

Remove the Linux-implementation of GetRepoDir() and GetObjectDir()
because the Linux content sandbox implementation and the
ExtensionProtocolHandler checks don't need them.

MozReview-Commit-ID: KwBFUnh6Cml

--HG--
extra : rebase_source : 3529a18ea802699ff968b798a7c560613469809b
2017-08-09 16:09:55 -07:00
Daosheng Mu ef8460e296 Bug 1388274 - Adjust WebVR telemetry histogram's high bound for user time spent; r=francois,kip
MozReview-Commit-ID: JcQZTgVmxr3

--HG--
extra : rebase_source : e00eab62c6d661a410d46d165843d7985054b145
2017-08-08 18:23:43 +08:00
Ryan VanderMeulen 6eb7aef00e Merge m-c to autoland. a=merge 2017-08-09 18:51:26 -04:00
Ryan VanderMeulen 2e6670c78e Merge autoland to m-c. a=merge 2017-08-09 18:47:59 -04:00
Masatoshi Kimura 706ca23396 Bug 1387788 - Remove [deprecated] methods from nsIJSON. r=Ehsan
MozReview-Commit-ID: 9OsQacbPsFo

--HG--
extra : rebase_source : 8c905a48306e957026af9dd8fcbf83eae41b8a38
2017-08-06 10:25:15 +09:00
Kartikaya Gupta 1912af35f9 Bug 1388726 - Force-enable acceleration in the regular linux reftest suite. r=jmaher,jrmuizel
MozReview-Commit-ID: FNU7hEN3Jkf

--HG--
extra : rebase_source : d8f21f99a3d98904a9b3d4b402226c0c58519b63
2017-08-09 12:48:08 -04: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 bb29fe249d Merge mozilla-central to autoland 2017-08-09 12:31:56 +02:00
Carsten "Tomcat" Book c329d562fb merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
Henry Chang d9fddc6423 Bug 1388606 - Test case for ensuring data:font is treated same-origin. r=ckerschb
We try to load a data:font and apply to some text in the test case. In case
data:font is treated different origin, the font will not load and the
test would fail.

MozReview-Commit-ID: LWYWJOoWL71

--HG--
extra : rebase_source : e4e133c16c75ecee80293c17703a03c7ce1ef18b
2017-08-09 16:39:44 +08:00
Phil Ringnalda 858a553b02 Backed out 2 changesets (bug 1386103) for Android x86 build bustage
Backed out changeset eec506d87d03 (bug 1386103)
Backed out changeset 3f9ec011c9bd (bug 1386103)

MozReview-Commit-ID: 8ak71R7vUOC
2017-08-08 22:08:54 -07:00
Chris Pearce e869956526 Bug 1388288 - Make TrackBuffersManager compile in non-Unified mode. r=jya
TrackBuffersManager::SegmentParserLoop() fails to compile in non-Unified mode
because some uses of SourceBufferAttributes::AppendState don't have the
SourceBufferAttributes:: prefix. So just add a typedef to make that
unnecessary.

MozReview-Commit-ID: 1H3SIeUxNu7

--HG--
extra : rebase_source : 06215eec4f19a46dc5e7243f1be02a1bfb974ddf
2017-08-08 15:02:20 +08:00
Chris Pearce 1c7befff21 Bug 1388288 - Make EME/GMP related code build non-Unified. r=gerald
MozReview-Commit-ID: 5q0Wwr2BNA0

--HG--
extra : rebase_source : e32e90c06ac933b3a387e26dbbfdcfac93ef3faf
2017-08-08 16:36:01 +08:00
Chris Pearce f59d29e3f3 Bug 1388288 - Make OpusTrackEncoder build in non-Unified mode. r=SingingTree
MozReview-Commit-ID: 9Y6rkxYwVhw

--HG--
extra : rebase_source : 5d5f61b9cd83ac13c2c328a22bf033b9ad3ab4c4
2017-08-08 16:42:57 +08:00
Chris Pearce 2317493000 Bug 1388288 - Make Flac and Ogg decoders build in non-Unified mode. r=jya
FLAC_MAX_CHANNELS is used in FlacDemuxer and in FrameParser, so move it,
and all the other FLAC_{MIN,MAX}* #defines to FrameParser.h. The other
defines don't technically need to be there, but it's nicer to have them
all defined together.

MozReview-Commit-ID: LVZzXvBSvMq

--HG--
extra : rebase_source : 1c8e5c111232856ef5589f214c00d510ece9af00
2017-08-08 15:46:37 +08:00