Commit Graph

4583 Commits

Author SHA1 Message Date
Ed Morley
05dcbf9506 Backed out changeset 00fa39c23b44 (bug 778077) for reftest failures 2014-03-28 12:31:29 +00:00
Chris Pearce
dac6ce38ba Bug 778077 - Implement HTMLMediaElement.fastSeek(time). r=cajbir
Implement HTMLMediaElement.fastSeek(), basically by changing all the
MediaDecoderReader::Seek() overrides to not call
MediaDecoderReader::DecodeToTarget(), and have MediaDecoderReader::DecodeSeek()
call DecodeToTarget() if we're doing an accurate (non-fast) seek.

Update gizmo.mp4 to have a keyframe every second, instead of only 1 keyframe at
the start of stream. This makes the unit test I added more useful for mp4...

I pushed most of the seek target clamping logic in MediaDecoder up into
HTMLMediaElement, so that we're clamping in fewer places. Note
MediaDecoderStateMachine::Seek() still sanity checks the seek target.

We have to update the currentTime/MediaDecoder playback position after a seek
completes now, rather than assuming the seek always got it exactly right.

Removed those pesky assertions about seek target lying in the first frame after
seek, since actually sometimes the media doesn't have samples for all streams
after a seek (either due to the media being encoded like that, or because of a
bug in the platform's decoder, not entirely sure).

Green: https://tbpl.mozilla.org/?tree=Try&rev=b028258565e2
2014-03-28 22:36:10 +13:00
Neil Rashbrook
041b6d4b17 Bug 514280 Consistently declare and define IID accessors r=bsmedberg 2014-03-28 08:45:02 +00:00
Phil Ringnalda
e21145ad4a Backed out 2 changesets (bug 778077, bug 631058)
CLOSED TREE

Backed out changeset dda301682977 (bug 631058)
Backed out changeset 25b633e7dcd5 (bug 778077)
2014-03-27 21:50:02 -07:00
Chris Pearce
fc3fc91d79 Bug 778077 - Implement HTMLMediaElement.fastSeek(time). r=cajbir
Implement HTMLMediaElement.fastSeek(), basically by changing all the
MediaDecoderReader::Seek() overrides to not call
MediaDecoderReader::DecodeToTarget(), and have MediaDecoderReader::DecodeSeek()
call DecodeToTarget() if we're doing an accurate (non-fast) seek.

Update gizmo.mp4 to have a keyframe every second, instead of only 1 keyframe at
the start of stream. This makes the unit test I added more useful for mp4...

I pushed most of the seek target clamping logic in MediaDecoder up into
HTMLMediaElement, so that we're clamping in fewer places. Note
MediaDecoderStateMachine::Seek() still sanity checks the seek target.

We have to update the currentTime/MediaDecoder playback position after a seek
completes now, rather than assuming the seek always got it exactly right.

Removed those pesky assertions about seek target lying in the first frame after
seek, since actually sometimes the media doesn't have samples for all streams
after a seek (either due to the media being encoded like that, or because of a
bug in the platform's decoder, not entirely sure).

Green: https://tbpl.mozilla.org/?tree=Try&rev=b028258565e2
2014-03-28 15:50:28 +13:00
Ms2ger
794257a824 Bug 984006 - Remove xpcom/ds from local includes; r=ehsan 2014-03-27 21:05:14 +01:00
Ryan VanderMeulen
4d6e8fe891 Backed out changeset fea9904b6dec (bug 987433) for leaks on a CLOSED TREE. 2014-03-26 19:44:54 -04:00
Olli Pettay
a89d5139a1 Bug 987433 - DOMTokenList should have a strong reference to its owner so that the API doesn't suddenly start returning empty string. r=khuey 2014-03-26 16:04:57 -04:00
Olli Pettay
47a4197f25 Bug 987140 - Return width/height from the most recent image request. r=bz 2014-03-26 14:43:27 -04:00
Wes Kocher
622986d217 Merge inbound to m-c 2014-03-25 19:54:55 -07:00
Star Cheng
250c97d39b Bug 975955 - Hold a cpu wakelock while playing video. r=roc 2014-03-18 16:44:41 +08:00
L. David Baron
7715383653 Bug 986409 - Skip fewer entire reftest directories on B2G. r=roc 2014-03-23 18:44:50 -07:00
Nathan Froyd
1fc206bc24 Bug 942411 - Set the src of the iframe after adding it to the document 2014-03-21 13:36:11 -04:00
Birunthan Mohanathas
cbaedea4c8 Bug 987320 - Remove unnecessary null checks for do_QueryFrame arguments. r=bz 2014-03-25 11:36:49 -04:00
Rick Eyre
e23612048e Bug 987076 - Construct HTMLMediaElement::mTextTrackManager lazily. r=roc
* Remove the TextTrackManager's initialization from the MediaElement's
ctor and add a getter that creates it if we don't have it yet. The public
functions exposed on the MediaElement's IDL now call this getter.
* Also remove the const qualifier from HTMLMediaElement::TextTracks()
as we don't really need it and this function now needs to call
GetOrCreateTextTrackManager() which is non-const.
2014-03-24 11:48:37 -04:00
Rick Eyre
69cce4574a Bug 977299 - Don't display subtitles if their mode is 'hidden'. r=rillian
I've renamed TextTrackList::GetAllActiveCues to
UpdateAndGetShowingCues to make it a bit more clear what
this function is doing.
2014-02-27 10:02:40 -05:00
Alessio Placitelli
651681f247 Bug 950076 - Use the return value of GetNodeTextContent for OOM checks. r=jst 2014-03-20 20:51:16 +01:00
Alessio Placitelli
8a61cca04b Bug 950076 - Propagate OOM errors to innerHTML getters. r=jst 2014-03-19 13:05:03 -04:00
Gorman Ho
9f11aa16d4 Bug 983285 - Add a generic destructor for property values allocated with new. r=kats, r=bz 2014-03-25 09:25:47 -04:00
Rick Eyre
3cd2684726 Bug 977302 - Perform automatic text track selection. r=rillian
This takes care of automatic track selection for tracks with
the default attribute specified. However, it does not take
into account any user preferences set through Firefox such
as default language.
2014-02-28 15:40:00 -05:00
Andrea Marchesini
e34a8dbb77 Bug 983984 - Default AudioChannel from a pref, r=ehsan, r=roc, r=mchen 2014-03-20 10:45:55 +00:00
Ryan VanderMeulen
c5975cfb88 Backed out changesets a17ee88f1fe7, 6e3aee4a9650, 07e5ed676919 (bug 950076) for Werror bustage. 2014-03-19 14:00:10 -04:00
Rick Eyre
1555f20871 Bug 983293 - Part 4: Pass ReadyState variables to AddTextTrack methods and TextTrack ctors. r=cpearce
This makes it more clear what part of the code is triggering the ReadyState
to be what it is. I.E. Tracks added through the HTMLMediaElement::AddTextTrack
method should have a ReadyState of "Loaded" and so it's more clear for
function to specify that. Vice versa for TrackElements which add TextTracks
with a default ReadyState of "None".
2014-03-13 14:41:21 -04:00
Rick Eyre
ddeb736006 Bug 983293 - Part 3: Rename the READY_STATE enum to TextTrackReadyState. r=cpearce
- This allows us to pass around ReadyState values. It also makes the type
explicit which will save us from potentially shooting ourselves in
the foot.
- I also renamed 'READY_STATE_NONE' and 'READY_STATE_ERROR' to
'NotLoaded' and 'FailedToLoad' respectively in the enum. This is to
avoid some name collision errors we were having. It also makes it more
clear where in the spec this is as these names are the spec's names
for the TextTrack enum.
2014-03-13 14:29:32 -04:00
Rick Eyre
560441d9f1 Bug 983293 - Part 2: Move the READY_STATE enum to Track instead of HTMLTrackElement. r=cpearce
This makes more sense as the READY_STATE values in the spec are always
referred to be 'text track readiness states' not HTMLTrackElement
readiness states.
2014-03-13 13:48:09 -04:00
Alessio Placitelli
f0971950d5 Bug 950076 - Use the return value of GetNodeTextContent for OOM checks. r=jst 2014-03-19 13:05:03 -04:00
Alessio Placitelli
edc654a317 Bug 950076 - Propagate OOM errors to innerHTML getters. r=jst 2014-03-19 13:05:03 -04:00
Bobby Holley
a2f6cad141 Bug 825392 - Generate anonymous content reflectors in the XBL scope. r=bz 2014-03-19 13:35:45 -03:00
Andrew McCreight
d0ee5b907e Bug 975746 - Remove GATHER_ELEMENT_USEAGE_STATISTICS. r=jst 2014-03-19 06:05:17 -07:00
Ryan VanderMeulen
9bb96ede35 Bug 940203 - Annotate test_bug622558.html as 0-1 assertions on Windows.
CLOSED TREE
2014-03-18 10:34:29 -04:00
Rick Eyre
e293689a8c Bug 983207 - Tracks created through a TrackElement should have a default mode of 'disabled'. r=cpearce
- I've refactored the way we set modes as well, making it a part
of the TextTrack ctors.
- I've also changed TextTracks in the track tests to have their
mode set to 'hidden' in order to be able to call TextTrack::Cues.
This is correct since TextTracks with a mode of 'disabled' do not
return null for their cue lists.
2014-03-13 13:18:06 -04:00
Masayuki Nakano
abfbab58dd Bug 983049 part.5 Rename nsEventDispatcher to mozilla::EventDispatcher r=smaug
--HG--
rename : dom/events/nsEventDispatcher.cpp => dom/events/EventDispatcher.cpp
rename : dom/events/nsEventDispatcher.h => dom/events/EventDispatcher.h
2014-03-18 13:48:21 +09:00
Masayuki Nakano
db6b33d414 Bug 983049 part.3 Rename nsEventChainPostVisitor to mozilla::EventChainPostVisitor r=smaug 2014-03-18 13:48:20 +09:00
Masayuki Nakano
ef5a7c0e92 Bug 983049 part.2 Rename nsEventChainPreVisitor to mozilla::EventChainPreVisitor r=smaug 2014-03-18 13:48:19 +09:00
Masayuki Nakano
a524a26c92 Bug 983049 part.1 Rename nsEventChainVisitor to mozilla::EventChainVisitor r=smaug 2014-03-18 13:48:18 +09:00
Masayuki Nakano
7add71c341 Bug 982602 Rename ns(LoadBlocking)AsyncDOMEvent to mozilla::(LoadBlocking)AsyncEventDispatcher r=smaug
--HG--
rename : dom/events/nsAsyncDOMEvent.cpp => dom/events/AsyncEventDispatcher.cpp
rename : dom/events/nsAsyncDOMEvent.h => dom/events/AsyncEventDispatcher.h
2014-03-17 15:56:54 +09:00
Masayuki Nakano
a7a5e56dd5 Bug 981261 part.5 Rename nsEventListenerManager to mozilla::EventListenerManager r=smaug
--HG--
rename : dom/events/nsEventListenerManager.cpp => dom/events/EventListenerManager.cpp
rename : dom/events/nsEventListenerManager.h => dom/events/EventListenerManager.h
2014-03-17 15:56:53 +09:00
Masayuki Nakano
1824709e52 Bug 981261 part.4 Move EventListenerFlags from mozilla::dom:: to mozilla:: r=smaug 2014-03-17 15:56:52 +09:00
Rik Cabanier
fc29621ea7 Bug 982480 - Add support + test case for context alpha attribute. r=roc 2014-03-16 15:34:14 -04:00
Ehsan Akhgari
2b961924e1 Bug 942411 - Request the full log in the test 2014-03-16 10:29:35 -04:00
Ryan VanderMeulen
04a55e8668 Backed out changeset 9a2aab98a8d0 (bug 982480) for reftest failures. 2014-03-15 19:18:13 -04:00
Rik Cabanier
72854581eb Bug 982480 - Add support + test case for context alpha attribute. r=roc 2014-03-15 17:29:24 -04:00
Ehsan Akhgari
4d96c367c5 Bug 942411 - Try to ensure that the test window has focus before running the test 2014-03-15 17:22:00 -04:00
Kyle Huey
df0e7828eb Bug 981150: Use nsTArrayForwardDeclare.h more. r=ehsan 2014-03-15 12:00:17 -07:00
Kyle Huey
84360900b0 Bug 967364: Pass already_AddRefed by reference instead of by value. r=bsmedberg 2014-03-15 12:00:17 -07:00
Kyle Huey
510a49016d Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg 2014-03-15 12:00:15 -07:00
Masayuki Nakano
f2734aa16b Bug 977959 part.3 Hide nsINativeKeyBindings with nsIWidget::ExecuteNativeKeyBinding() r=roc+karlt+smichaud 2014-03-14 22:13:31 +09:00
Masayuki Nakano
1f5d69ab81 Bug 977959 part.2 Remove nsINativeKeyBindings::KeyDown() and nsINativeKeyBindings::KeyUp() r=roc, sr=roc 2014-03-14 22:13:31 +09:00
Masayuki Nakano
fd06be64c3 Bug 977959 part.1 Define constants for each command which may be caused by native key bindings r=roc 2014-03-14 22:13:30 +09:00
Bill McCloskey
aa5f40a77e Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 21:38:19 -07:00