WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
180781
Playing media elements which call "pause(); play()" will have the play promise rejected.
https://bugs.webkit.org/show_bug.cgi?id=180781
Summary
Playing media elements which call "pause(); play()" will have the play promis...
Jer Noble
Reported
2017-12-13 16:24:53 PST
Playing media elements which call "pause(); play()" will have the play promise rejected.
Attachments
Patch
(7.98 KB, patch)
2017-12-13 16:28 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews100 for mac-elcapitan
(2.30 MB, application/zip)
2017-12-13 17:13 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews104 for mac-elcapitan-wk2
(2.97 MB, application/zip)
2017-12-13 17:37 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews125 for ios-simulator-wk2
(2.51 MB, application/zip)
2017-12-13 17:42 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews116 for mac-elcapitan
(3.23 MB, application/zip)
2017-12-13 18:55 PST
,
EWS Watchlist
no flags
Details
Patch
(12.53 KB, patch)
2017-12-15 11:18 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-elcapitan
(2.19 MB, application/zip)
2017-12-15 12:18 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
(2.60 MB, application/zip)
2017-12-15 12:28 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews124 for ios-simulator-wk2
(2.15 MB, application/zip)
2017-12-15 12:43 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews113 for mac-elcapitan
(3.43 MB, application/zip)
2017-12-15 13:06 PST
,
EWS Watchlist
no flags
Details
Patch for landing
(14.54 KB, patch)
2017-12-15 17:58 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Follow-up patch
(4.05 KB, patch)
2017-12-19 08:51 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-elcapitan
(2.17 MB, application/zip)
2017-12-19 09:53 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
(2.76 MB, application/zip)
2017-12-19 10:13 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews115 for mac-elcapitan
(2.96 MB, application/zip)
2017-12-19 10:26 PST
,
EWS Watchlist
no flags
Details
Follow-up patch
(8.19 KB, patch)
2017-12-19 12:42 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews103 for mac-elcapitan
(2.50 MB, application/zip)
2017-12-19 13:31 PST
,
EWS Watchlist
no flags
Details
Follow-up patch
(9.62 KB, patch)
2017-12-19 13:55 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Follow-up patch
(9.62 KB, patch)
2017-12-19 13:58 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Show Obsolete
(17)
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2017-12-13 16:25:52 PST
<
rdar://problem/33191377
>
Jer Noble
Comment 2
2017-12-13 16:28:34 PST
Created
attachment 329280
[details]
Patch
EWS Watchlist
Comment 3
2017-12-13 17:13:42 PST
Comment hidden (obsolete)
Comment on
attachment 329280
[details]
Patch
Attachment 329280
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/5652000
New failing tests: media/video-interruption-with-resume-not-allowing-play.html media/video-multiple-concurrent-playback.html media/video-background-playback.html media/media-controls-drag-timeline-set-controls-property.html media/video-interruption-with-resume-allowing-play.html media/media-playback-page-visibility.html media/video-concurrent-playback.html
EWS Watchlist
Comment 4
2017-12-13 17:13:43 PST
Comment hidden (obsolete)
Created
attachment 329292
[details]
Archive of layout-test-results from ews100 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
EWS Watchlist
Comment 5
2017-12-13 17:37:13 PST
Comment hidden (obsolete)
Comment on
attachment 329280
[details]
Patch
Attachment 329280
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/5652367
New failing tests: media/video-interruption-with-resume-not-allowing-play.html media/video-multiple-concurrent-playback.html media/video-background-playback.html http/tests/media/hls/video-duration-accessibility.html media/media-controls-drag-timeline-set-controls-property.html media/video-concurrent-playback.html http/tests/media/hls/video-controls-live-stream.html fast/mediastream/MediaStream-video-element-displays-buffer.html media/video-interruption-with-resume-allowing-play.html compositing/visibility/visibility-simple-video-layer.html imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/event_playing_noautoplay.html
EWS Watchlist
Comment 6
2017-12-13 17:37:14 PST
Comment hidden (obsolete)
Created
attachment 329295
[details]
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
EWS Watchlist
Comment 7
2017-12-13 17:42:33 PST
Comment hidden (obsolete)
Comment on
attachment 329280
[details]
Patch
Attachment 329280
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/5652260
New failing tests: media/video-interruption-with-resume-not-allowing-play.html media/controls-without-preload.html media/video-interruption-with-resume-allowing-play.html media/video-background-playback.html
EWS Watchlist
Comment 8
2017-12-13 17:42:35 PST
Comment hidden (obsolete)
Created
attachment 329297
[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 9
2017-12-13 18:54:59 PST
Comment hidden (obsolete)
Comment on
attachment 329280
[details]
Patch
Attachment 329280
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/5653176
New failing tests: media/video-interruption-with-resume-not-allowing-play.html media/video-multiple-concurrent-playback.html media/video-background-playback.html media/media-controls-drag-timeline-set-controls-property.html compositing/visibility/visibility-simple-video-layer.html media/video-interruption-with-resume-allowing-play.html media/media-playback-page-visibility.html media/video-concurrent-playback.html imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/event_playing_noautoplay.html
EWS Watchlist
Comment 10
2017-12-13 18:55:00 PST
Comment hidden (obsolete)
Created
attachment 329308
[details]
Archive of layout-test-results from ews116 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Jer Noble
Comment 11
2017-12-15 11:18:20 PST
Created
attachment 329498
[details]
Patch
Eric Carlson
Comment 12
2017-12-15 11:25:12 PST
Comment on
attachment 329498
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=329498&action=review
> Source/WebCore/html/HTMLMediaElement.cpp:3501 > + if (m_readyState <= HAVE_CURRENT_DATA) > + scheduleEvent(eventNames().waitingEvent); > + else if (m_readyState >= HAVE_FUTURE_DATA) > + scheduleNotifyAboutPlaying();
Nit: you should mention this fix in the ChangeLog.
EWS Watchlist
Comment 13
2017-12-15 12:18:50 PST
Comment hidden (obsolete)
Comment on
attachment 329498
[details]
Patch
Attachment 329498
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/5675360
New failing tests: imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/cues.html http/tests/security/video-cross-origin-caching.html
EWS Watchlist
Comment 14
2017-12-15 12:18:52 PST
Comment hidden (obsolete)
Created
attachment 329506
[details]
Archive of layout-test-results from ews101 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-elcapitan Platform: Mac OS X 10.11.6
EWS Watchlist
Comment 15
2017-12-15 12:28:50 PST
Comment hidden (obsolete)
Comment on
attachment 329498
[details]
Patch
Attachment 329498
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/5675375
New failing tests: imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/cues.html http/tests/security/video-cross-origin-caching.html
EWS Watchlist
Comment 16
2017-12-15 12:28:51 PST
Comment hidden (obsolete)
Created
attachment 329507
[details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
EWS Watchlist
Comment 17
2017-12-15 12:43:36 PST
Comment hidden (obsolete)
Comment on
attachment 329498
[details]
Patch
Attachment 329498
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/5675409
New failing tests: http/tests/security/video-cross-origin-caching.html
EWS Watchlist
Comment 18
2017-12-15 12:43:37 PST
Comment hidden (obsolete)
Created
attachment 329508
[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 19
2017-12-15 13:06:39 PST
Comment hidden (obsolete)
Comment on
attachment 329498
[details]
Patch
Attachment 329498
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/5675523
New failing tests: imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/cues.html webgl/1.0.2/conformance/context/context-release-upon-reload.html http/tests/security/video-cross-origin-caching.html
EWS Watchlist
Comment 20
2017-12-15 13:06:40 PST
Comment hidden (obsolete)
Created
attachment 329511
[details]
Archive of layout-test-results from ews113 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Jer Noble
Comment 21
2017-12-15 17:58:06 PST
Created
attachment 329551
[details]
Patch for landing
WebKit Commit Bot
Comment 22
2017-12-18 09:43:55 PST
Comment on
attachment 329551
[details]
Patch for landing Clearing flags on attachment: 329551 Committed
r226059
: <
https://trac.webkit.org/changeset/226059
>
WebKit Commit Bot
Comment 23
2017-12-18 09:43:56 PST
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 24
2017-12-18 10:26:49 PST
Comment on
attachment 329551
[details]
Patch for landing View in context:
https://bugs.webkit.org/attachment.cgi?id=329551&action=review
> Source/WebCore/html/HTMLMediaElement.cpp:3454 > + return; // Treat as success because we will begin playback on cessation of the interruption.
This comment no longer makes much sense. Before it was explaining the reason this returned true instead of false. But what does "treat as success" mean now? I think we should just remove the comment unless we have something interesting to say here.
Matt Lewis
Comment 25
2017-12-18 16:12:29 PST
This patch caused 3 API test to start Timing out: RequiresUserActionForPlaybackTest.DeprecatedRequiresUserActionForVideoButNotAudioPlayback RequiresUserActionForPlaybackTest.RequiresUserActionForVideoButNotAudioPlayback WebKit.WebsitePoliciesAutoplayEnabled
https://build.webkit.org/builders/Apple%20iOS%2011%20Simulator%20Release%20WK2%20%28Tests%29/builds/2026
https://build.webkit.org/builders/Apple%20iOS%2011%20Simulator%20Release%20WK2%20%28Tests%29/builds/2026/steps/run-api-tests/logs/stdio
Jer Noble
Comment 26
2017-12-19 08:51:53 PST
Reopening to attach new patch.
Jer Noble
Comment 27
2017-12-19 08:51:56 PST
Created
attachment 329764
[details]
Follow-up patch
EWS Watchlist
Comment 28
2017-12-19 09:53:39 PST
Comment hidden (obsolete)
Comment on
attachment 329764
[details]
Follow-up patch
Attachment 329764
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/5753666
New failing tests: media/no-autoplay-with-user-gesture-requirement.html media/video-play-require-user-gesture.html media/video-source-before-src.html
EWS Watchlist
Comment 29
2017-12-19 09:53:40 PST
Comment hidden (obsolete)
Created
attachment 329767
[details]
Archive of layout-test-results from ews101 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-elcapitan Platform: Mac OS X 10.11.6
EWS Watchlist
Comment 30
2017-12-19 10:13:07 PST
Comment hidden (obsolete)
Comment on
attachment 329764
[details]
Follow-up patch
Attachment 329764
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/5753717
New failing tests: media/no-autoplay-with-user-gesture-requirement.html media/video-play-require-user-gesture.html media/video-source-before-src.html
EWS Watchlist
Comment 31
2017-12-19 10:13:09 PST
Comment hidden (obsolete)
Created
attachment 329770
[details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
EWS Watchlist
Comment 32
2017-12-19 10:26:45 PST
Comment hidden (obsolete)
Comment on
attachment 329764
[details]
Follow-up patch
Attachment 329764
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/5753746
New failing tests: media/no-autoplay-with-user-gesture-requirement.html media/video-play-require-user-gesture.html media/video-source-before-src.html
EWS Watchlist
Comment 33
2017-12-19 10:26:46 PST
Comment hidden (obsolete)
Created
attachment 329772
[details]
Archive of layout-test-results from ews115 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Jer Noble
Comment 34
2017-12-19 12:42:53 PST
Created
attachment 329796
[details]
Follow-up patch
EWS Watchlist
Comment 35
2017-12-19 13:31:21 PST
Comment on
attachment 329796
[details]
Follow-up patch
Attachment 329796
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/5757553
New failing tests: media/video-load-require-user-gesture.html
EWS Watchlist
Comment 36
2017-12-19 13:31:23 PST
Created
attachment 329805
[details]
Archive of layout-test-results from ews103 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Jer Noble
Comment 37
2017-12-19 13:55:40 PST
Created
attachment 329814
[details]
Follow-up patch
Jer Noble
Comment 38
2017-12-19 13:58:23 PST
Created
attachment 329816
[details]
Follow-up patch
WebKit Commit Bot
Comment 39
2017-12-19 15:16:13 PST
Comment on
attachment 329816
[details]
Follow-up patch Clearing flags on attachment: 329816 Committed
r226150
: <
https://trac.webkit.org/changeset/226150
>
WebKit Commit Bot
Comment 40
2017-12-19 15:16:15 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug