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

50064 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book 40c39189ef Merge mozilla-central to fx-team 2016-05-09 11:20:26 +02:00
dimi 65b7131b71 Bug 1262406 - P1. Track element doesn't use the URL classifier. r=francois
MozReview-Commit-ID: 1YJgcRrrwqj

--HG--
extra : transplant_source : j%07U%CF%25%C7T%9D%85%FD%7B%99%DE%C7%D8%ADVm6%CB
2016-05-09 09:32:40 +08:00
L. David Baron 71a0554018 Bug 1270649 - Rename mExceptionHasBeenRisen to mExceptionWasRaised. r=smaug
risen is the past participle of rise; raised is the past participle of
raise, which is what is done to exceptions.

See:
https://en.wiktionary.org/wiki/rise#Verb
https://en.wiktionary.org/wiki/raise#Verb (definition 2, though not sure
  if the use for exceptions is from 2.3 or 2.5)

(I wonder if mExceptionRaised would be simpler, though.)

MozReview-Commit-ID: 8Ynup8aDcLT
2016-05-08 22:16:42 -07:00
L. David Baron 9ee89fe42f Bug 567283 patch 2 - Rename NS_HexToRGB to NS_HexToRGBA and add parameter saying whether 4 and 8 digit colors are allowed. r=xidorn
This patch tells all callers to use the existing behavior, so it is
intended not to change behavior.  Callers that will be modified in later
patches are marked with "FIXME" comments that will be removed in those
later patches (patches 3 and 4).

MozReview-Commit-ID: FaLryfxaeHv
2016-05-08 22:16:41 -07:00
Hiroyuki Ikezoe 8fd021fbd4 Bug 1235002 - Skip requesting a restyle when mProperties is empty. r=birtles
The test case here does not check whether requesting restyles for empty
properties are skipped or not.  It just checks that whether restyles happen or
not because there is no way to check each request for restyles yet.

MozReview-Commit-ID: I5XMYfCTYU8

--HG--
extra : rebase_source : 893aaaf2c47e05f37bce9913df4f14e3021f215a
2016-05-09 12:33:52 +09:00
Chris Pearce 817b6c705e Bug 1270689 - Null-check WidevineDecryptor::mCallback before use. r=gerald
We've observed some crashes derefing the callback pointer, which may be
occuring due to shutdown happening before init has setup the callback pointer.

MozReview-Commit-ID: JsOqfjejMVI

--HG--
extra : rebase_source : e175dd8556ad50316bc16232782e593eea3e2ec8
2016-05-09 14:21:26 +12:00
Gerald Squelart a147091776 Bug 1268434 - Mutex-protect and check GMP abstract thread before uses - c?cpearce r=cpearce
GeckoMediaPluginService::mAbstractThread was not reset as expected from
ShutdownGMPThread, meaning it would retain a reference to the GMP thread, and
it would allow dispatch attempts to the GMP thread after shutdown.

Also mAbstractThread was not protected by a mutex (as mGMPThread was), which is
definitely needed now that it can be reset at shutdown time.

As its prefix implies, GetAbstractThread could return a nullptr, so it should
be checked before every use.
Note that this GetAbstractThread call (and its check) has been moved closer to
the start of functions using it, to avoid unnecessary and potentially invariant-
breaking partial work to take place when we can know in advance that it won't
fully succeed because the GMP thread is not available.

MozReview-Commit-ID: B1drOeM65hr

--HG--
extra : rebase_source : 1d389c663e26a25035bf2aa22b2cca478ef954fe
2016-05-06 21:36:22 +10:00
Wes Kocher b17d7be7c1 Merge fx-team to central, a=merge 2016-05-06 15:57:08 -07:00
J. Ryan Stinnett 90571ef998 Bug 1270320 - Only add sessionHistory to browser element when missing. r=kanru
MozReview-Commit-ID: IeELb4vUoQD
2016-05-06 11:06:01 -05:00
JW Wang f13024a4fd Bug 1270698 - check if we need to enter buffering periodically to ensure we start buffering when running out of decoded audio/video data. r=cpearce. 2016-05-06 17:38:34 +10:00
Jean-Yves Avenard 51b6a30ded Bug 1244410: [ffmpeg] Ensure the last drained frame has the proper duration set. r=gerald
FFmpeg's AVFrame pkt_dts doesn't contain the dts of the frame used to decode the frame; but of the frame "that triggered returning this frame.". The last frame was returned when draining which is done by feeding the decoder with dummy frames ; all having a dts of 0.

Additionally, rename DurationMap argument name from aDts to aKey.

MozReview-Commit-ID: GWYT3sEJVQs
2016-05-06 17:29:48 +10:00
Jean-Yves Avenard 92553ea442 Bug 1258922: [MSE] P4. Set draining flag to true when skip to next keyframe failed. r=gerald
data promise is only resolved once the decoder has been drained. It was possible for a promise to never be resolved if skipping to the next key frame failed.

MozReview-Commit-ID: GimbQTImH9e
2016-05-06 17:29:41 +10:00
Jean-Yves Avenard b2b17692f7 Bug 1258922: [MSE] P3. Check that the data we are attempting to skip to is buffered. r=gerald
MozReview-Commit-ID: DCQkIimciEe
2016-05-06 17:29:34 +10:00
Jean-Yves Avenard 55e5e7da77 Bug 1258922: [MSE] P2. Do not go over gap when attempting to find the next key frame. r=gerald
MozReview-Commit-ID: EtK34PdzN4a
2016-05-06 17:29:27 +10:00
Jean-Yves Avenard 72763bcdf5 Bug 1258922: [MSE] P1. Initialise variable. r=gerald
It was possible for the variable to be used uninitialized.

MozReview-Commit-ID: EwzyJRPn7iV
2016-05-06 17:29:21 +10:00
Jean-Yves Avenard 10c2e4ded5 Bug 1269408: P9. Move handling logic of skip to next keyframe to its own function. r=gerald
MozReview-Commit-ID: EjCAFvdcdJ6
2016-05-06 17:29:14 +10:00
Jean-Yves Avenard 946c83d7c5 Bug 1269408: P8. Add debugging log. r=gerald
Almost everytime I had to debug the MFR, I had to print those details.

MozReview-Commit-ID: GR0vZuKiqyd
2016-05-06 17:29:07 +10:00
Jean-Yves Avenard 85dfb74665 Bug 1269408: P7. Start skip to next keyframe logic when resume point is behind current time. r=gerald
There is no point decoding up to the internal seek time if it's already behind the current playback time.

MozReview-Commit-ID: ErPrjEPFCOH
2016-05-06 17:29:01 +10:00
Jean-Yves Avenard ffcc71c256 Bug 1269408: P6. Add debugging information, useful when a mochitest timeout. r=gerald
Access to some members is not thread-safe; but the typical use of those informations is when a mochitest has timed out, and by that time the MFR will have been idled for over 5 minutes.

MozReview-Commit-ID: 21BxrSZXVVJ
2016-05-06 17:28:55 +10:00
Jean-Yves Avenard 420e17dd76 Bug 1269408: P5. Only drop the seek target if it's exactly the seek target. r=gerald
If the Skip To Next Keyframe logic was activated, the next frame demuxed would have been passed the internal seek target, causing it to be unnecessarily dropped.

MozReview-Commit-ID: DExwMPLXlZu
2016-05-06 17:28:48 +10:00
Jean-Yves Avenard 6da72a9485 Bug 1269408: P4. Ensure the decoders are flushed prior performing an internal seek. r=gerald
Some decoders (WMF) keep some internal counters on how many frames have been output and use this to calculate the time of the decoded audio frame. As such, when internally seeking, the next frame decoded would have always been past the seek target.

MozReview-Commit-ID: puzs6ecqbD
2016-05-06 17:28:41 +10:00
Jean-Yves Avenard 7d7e1ae0c4 Bug 1269408: P3. Ensure a new seek request will cancel the previous internal seek. r=gerald
MozReview-Commit-ID: 3dR8JWt4KSN
2016-05-06 17:28:35 +10:00
Jean-Yves Avenard fdcc4cb0d4 Bug 1269408: P2. Update mochitest. r=gerald
On Windows, it is possible for the WMF decoder to consume more than the amount of frames available before outputting the first frame. So just to produce the loadeddata event, we may have in fact already reached the end of the content. To guarantee that the "playing" event is fired, we must add more data than what was originally there.

MozReview-Commit-ID: 12eQnchNGLB
2016-05-06 17:28:28 +10:00
Jean-Yves Avenard 89278050c4 Bug 1269408: P1. Retry InternalSeek if previous attempt failed once more data is available. r=gerald
MozReview-Commit-ID: Jro2PRtGX7c
2016-05-06 17:28:21 +10:00
Jean-Yves Avenard 7945decc88 Backed out changeset ecb87e0e1cab ("Bug 1269178: P1. Retry InternalSeek if previous attempt failed once more data is available. r=gerald") 2016-05-06 17:27:34 +10:00
Jean-Yves Avenard aab4c4df00 Backed out changeset 31f6d645e9e5 ("Bug 1269178: P2. Ensure that no skip to next keyframe logic is activated while there's a pending seek. r=gerald") 2016-05-06 17:27:34 +10:00
Astley Chen 844639b0ad Bug 859301 : Part 3 - unprefix test cases. r=dbaron
MozReview-Commit-ID: 6KvILd31r9Y

--HG--
extra : rebase_source : 68c820453ca2d27fda63b645cdab65dddfa90c31
2016-05-04 13:31:24 +08:00
JW Wang facd846fd6 Bug 1270350 - per comment 0, use SyncRunnable to repalce the boilerplate code. r=jya.
MozReview-Commit-ID: 9hqmUnNC3Vm
2016-05-05 11:54:44 +08:00
Makoto Kato 833bf3893a Bug 1261012 - Check whether nsIObserverService is nullptr. r=smaug
During shutdown, mozilla::services::GetObserverServie will return nullptr.  So we should check it.  Add another nullptr check

MozReview-Commit-ID: 9xBbltRatJF

--HG--
extra : rebase_source : a859de09f30eeba344c317aec4cf4ed2cce8da2b
extra : histedit_source : 325aba902eff367d046807e9be3a73ad3100ee67
2016-04-27 19:10:11 +09:00
Chris Pearce d0c07d0732 Bug 1264497 - Call GMPSetNodeId in GMPLoader. r=gerald
MozReview-Commit-ID: I6BApLKpjPS

--HG--
extra : rebase_source : de79801f0a0e295725c6bc8b8a99fe7022323956
2016-05-06 14:49:12 +12:00
Bevis Tseng 287cf0140e Bug 1269813 - Don't run test_bug1264380.html on Windows. r=wchen 2016-05-04 13:12:59 +08:00
Edgar Chen ba0d0471ef Bug 1264467 - Force a reload only when crossOrigin's state is really changed. r=jdm
MozReview-Commit-ID: F0wvy4TkPiQ
2016-04-14 18:53:44 -04:00
Christoph Kerschbaumer 0b2788ba18 Bug 1269264 - Remove SEC_NORMAL from test_ril_code_quality.py (r=sicking) 2016-05-08 20:06:37 +02:00
Aryeh Gregor b607cb2e71 Bug 1269712 - <track kind=invalid> should behave like metadata, not subtitles; r=bz
This follows a spec change <https://github.com/whatwg/html/issues/293>,
which AFAIK no other browser has implemented, so it has some regression
potential.

The web-platform tests changed are out-of-date and match the old spec,
so I'm changing them here to match the new spec.
2016-05-08 14:46:20 +03:00
Robert Longson 957d0f6704 Bug 1267272 - NULL pointer mozilla::dom::SVGSVGElement::GetIntrinsicHeight. r=seth 2016-05-08 11:17:46 +01:00
Hiroyuki Ikezoe 74cc42f261 Bug 1258904 - Part 5: Remove redundant tests for animation performance warnings. r=birtles
There were two places run gAnimationsTests in
test_animation_performance_warning.html.

MozReview-Commit-ID: zrD5eMiDsy

--HG--
extra : rebase_source : 250f826daed4440725c0a28fdb1fcd84fd299402
2016-05-07 17:37:58 +09:00
Hiroyuki Ikezoe 4030f03992 Bug 1258904 - Part 4: Set performance warning for small content. r=birtles
MozReview-Commit-ID: 7GyGkPog1Bo

--HG--
extra : rebase_source : c296a35c433af547fe4dd800ec8c8abd3bdba339
2016-05-07 17:37:58 +09:00
Hiroyuki Ikezoe eee73ed64c Bug 1258904 - Part 3: Factor out ToLocalizedStringForKey. r=birtles
This function will be used for the warning of small content as well.
MozReview-Commit-ID: EiUF9CgWGDA

--HG--
extra : rebase_source : 3b6daa713d889f5c51507d4c1f6fd6c51f1e7fb9
2016-05-07 17:37:57 +09:00
Jon Coppeard 5c1f07c15a Bug 1240072 - Test code for loading JS module from chrome r=sicking 2016-05-07 12:46:39 +01:00
Jon Coppeard 8d7ea09706 Bug 1240072 - Implement <script type="module"> for chrome pages only r=sicking 2016-05-07 12:46:38 +01:00
Jon Coppeard 19bcb45545 Bug 1240072 - Add nsJSUtils methods for creating and instantiating modules r=sicking 2016-05-07 12:46:38 +01:00
Jean-Yves Avenard 9f2e0f2c87 Bug 1269408: P10. Reject promise early if in error state. r=me
Partial revertial of commit 3fa48191a0f (P9).

MozReview-Commit-ID: 2jAW7RLZ2xg
2016-05-07 19:16:34 +10:00
Andrea Marchesini 4570d46a36 Bug 1268303 - Better WorkerFeature management in Console API, r=smaug 2016-05-07 07:49:15 +02:00
Ryan VanderMeulen 1fa3a59f0a Bug 1270672 - Re-enable the webgl conformance suite on e10s. r=jgilbert 2016-05-07 00:52:00 -04:00
Nathan Froyd ea473279ae Backout 6d6749bb5c26 (bug 1269408) for being pushed too soon, Executus 2016-05-06 22:08:46 -04:00
Jean-Yves Avenard 969594ea8c Bug 1269408: P10. Reject promise early if in error state. r=me
MozReview-Commit-ID: 2jAW7RLZ2xg
2016-05-07 11:23:32 +10:00
Chris Pearce eddc1e9562 Bug 1270968 - Add mechanism to clear GMP storage when its version changes. r=gerald
In bug 1264497 we discovered that Netflix was broken because we'd made a change
to not send the Adobe GMP the device bound nodeId, which it stored in GMP
storage. When the GMP was comparing the nodeId it had stored against what it was
passed (nothing) the comparison was failing. Users could have worked around this
problem by clearing their GMP storage, whereupon the Adobe GMP will have stored
"nothing" as its nodeId.

When bug 1264497 was fixed, users who'd cleared their storage will see Netflix
fail again, as their stored nodeId of "nothing" will again not match what we
pass in. So to fix Netflix for these users, we need to clear GMP storage.

This is another instance of a more general problem that we have occasionally
encountered, namely that sometimes GMP storage becomes incompatible, and we
need to clear it. Having a general mechanism that we can use to clear storage
remotely will be helpful, so this patch adds one, and triggers it to fire.

This mechanism is pref controlled, so that we can issue a hotfix if necessary
to clear GMP storage.


MozReview-Commit-ID: GzSyBj0P2JG

--HG--
extra : rebase_source : b854860ee533b0742a664c862278ce54c9052596
2016-05-07 09:19:15 +12:00
Wes Kocher 419e80ad06 Merge m-c to inbound, a=merge 2016-05-06 15:58:32 -07:00
Sebastian Hengst faffe478f6 Backed out changeset f9d3ea58c195 (bug 1267186) for static bustage in WebIDLGlobalNameHash.cpp. r=backout 2016-05-06 18:11:03 +02:00
Peter Van der Beken 827ee394ba Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 5578057666186f58e434767af84fbfeac0cbdc3c
2016-03-09 15:48:12 +01:00