Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 2347763002: [Blink, RemotePlayback] Reject the prompt() with OperationError if there's a pending promise for th… (Closed)

Created:
4 years, 3 months ago by whywhat
Modified:
4 years, 2 months ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blink, RemotePlayback] Reject the prompt() with OperationError if there's a pending promise for this element. BUG=647441 TEST=avayvod.github.io/remote-playback/test.html + layout test Committed: https://crrev.com/0fc8b636799720b632a58b8ad0cbe2f3bef0c7ce Cr-Commit-Position: refs/heads/master@{#422810}

Patch Set 1 #

Patch Set 2 : Added UserGesture flag for tests, removed some checks in HTMLMediaElement, added layout test #

Total comments: 11

Patch Set 3 : Addressed Mounir's comments #

Total comments: 4

Patch Set 4 : Fixed the test #

Total comments: 1

Messages

Total messages: 30 (12 generated)
whywhat
PTaL
4 years, 3 months ago (2016-09-16 00:25:07 UTC) #2
haraken
Do you have a plan to import the tests on github to layout tests?
4 years, 3 months ago (2016-09-16 01:30:58 UTC) #3
whywhat
On 2016/09/16 at 01:30:58, haraken wrote: > Do you have a plan to import the ...
4 years, 3 months ago (2016-09-16 01:32:45 UTC) #4
whywhat
Added UserGesture flag for tests, removed some checks in HTMLMediaElement, added layout test
4 years, 3 months ago (2016-09-16 22:19:09 UTC) #5
mlamouri (slow - plz ping)
You might want to update the TEST= line too. https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html File third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html (right): https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html#newcode13 third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html:13: ...
4 years, 3 months ago (2016-09-22 09:22:43 UTC) #6
whywhat
https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode2205 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:2205: webMediaPlayer()->requestRemotePlayback(); On 2016/09/22 at 09:22:43, mlamouri (slow) wrote: > ...
4 years, 3 months ago (2016-09-22 13:18:28 UTC) #7
whywhat
Addressed Mounir's comments
4 years, 2 months ago (2016-09-30 19:07:19 UTC) #8
whywhat
https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html File third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html (right): https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html#newcode13 third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html:13: internals.settings.setRemotePlaybackRequiresUserGesture(false); On 2016/09/22 at 09:22:43, mlamouri wrote: > nstead, ...
4 years, 2 months ago (2016-09-30 19:11:34 UTC) #9
whywhat
PTAL
4 years, 2 months ago (2016-09-30 21:50:37 UTC) #15
mlamouri (slow - plz ping)
https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode2205 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:2205: webMediaPlayer()->requestRemotePlayback(); On 2016/09/30 at 19:11:33, whywhat wrote: > On ...
4 years, 2 months ago (2016-10-01 14:55:53 UTC) #16
whywhat
Fixed the test
4 years, 2 months ago (2016-10-03 20:37:47 UTC) #17
whywhat
PTAL https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2347763002/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode2205 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:2205: webMediaPlayer()->requestRemotePlayback(); On 2016/10/01 at 14:55:53, mlamouri wrote: > ...
4 years, 2 months ago (2016-10-03 20:39:01 UTC) #19
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2347763002/diff/60001/third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html File third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html (right): https://codereview.chromium.org/2347763002/diff/60001/third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html#newcode45 third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html:45: </body> This file is over-indented. LayoutTests are usually ...
4 years, 2 months ago (2016-10-04 10:48:47 UTC) #23
whywhat
On 2016/10/04 at 10:48:47, mlamouri wrote: > lgtm > > https://codereview.chromium.org/2347763002/diff/60001/third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html > File third_party/WebKit/LayoutTests/media/remoteplayback/prompt-twice-throws.html (right): ...
4 years, 2 months ago (2016-10-04 15:37:58 UTC) #24
whywhat
4 years, 2 months ago (2016-10-04 15:38:16 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2347763002/60001
4 years, 2 months ago (2016-10-04 15:38:48 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-04 15:44:34 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 15:46:30 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0fc8b636799720b632a58b8ad0cbe2f3bef0c7ce
Cr-Commit-Position: refs/heads/master@{#422810}

Powered by Google App Engine
This is Rietveld 408576698