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

Issue 209363002: Keep the user gesture when postMessage() across frames. (Closed)

Created:
6 years, 9 months ago by wjywbs
Modified:
6 years, 9 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Keep the user gesture when postMessage() across frames. R=adamk@chromium.org BUG=355658, 178319, 161068 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170243

Patch Set 1 #

Total comments: 1

Patch Set 2 : pass token #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -2 lines) Patch
A LayoutTests/fast/dom/Window/resources/window-postmessage-user-gesture-frame.html View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Window/window-postmessage-user-gesture.html View 1 2 1 chunk +118 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Window/window-postmessage-user-gesture-expected.txt View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 2 3 6 chunks +7 lines, -2 lines 1 comment Download

Messages

Total messages: 22 (0 generated)
wjywbs
This is my first time changing blink, and I'm not sure whether I need to ...
6 years, 9 months ago (2014-03-22 02:19:25 UTC) #1
not at google - send to devlin
I think Adam is going to need a bit more context for this (and possibly ...
6 years, 9 months ago (2014-03-24 10:59:20 UTC) #2
not at google - send to devlin
This probably needs to go through the blink launch process or whatever anyway.
6 years, 9 months ago (2014-03-24 10:59:43 UTC) #3
adamk
On 2014/03/24 10:59:43, kalman wrote: > This probably needs to go through the blink launch ...
6 years, 9 months ago (2014-03-24 17:17:42 UTC) #4
abarth-chromium
https://codereview.chromium.org/209363002/diff/1/Source/core/frame/DOMWindow.cpp File Source/core/frame/DOMWindow.cpp (right): https://codereview.chromium.org/209363002/diff/1/Source/core/frame/DOMWindow.cpp#newcode880 Source/core/frame/DOMWindow.cpp:880: gesture.reset(new UserGestureIndicator(DefinitelyProcessingNewUserGesture)); As written, this CL is incorrect because ...
6 years, 9 months ago (2014-03-24 17:39:47 UTC) #5
wjywbs
On 2014/03/24 17:39:47, abarth wrote: > https://codereview.chromium.org/209363002/diff/1/Source/core/frame/DOMWindow.cpp > File Source/core/frame/DOMWindow.cpp (right): > > https://codereview.chromium.org/209363002/diff/1/Source/core/frame/DOMWindow.cpp#newcode880 > ...
6 years, 9 months ago (2014-03-24 18:53:55 UTC) #6
not at google - send to devlin
quick aside: there is a known issue with the extensions code for extending the lifetime ...
6 years, 9 months ago (2014-03-25 14:35:01 UTC) #7
wjywbs
Now it pass the user gesture token so that the user gesture can only be ...
6 years, 9 months ago (2014-03-26 03:37:03 UTC) #8
abarth-chromium
This should be testable with a LayoutTest. Maybe look at how other changes that involve ...
6 years, 9 months ago (2014-03-26 05:32:47 UTC) #9
wjywbs
I updated the UserGestureIndicator handling same as https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/frame/DOMTimer.cpp&sq=package:chromium&type=cs&l=117&rcl=1395798862 And I added tests. PTAL. Thanks.
6 years, 9 months ago (2014-03-27 05:23:37 UTC) #10
abarth-chromium
lgtm
6 years, 9 months ago (2014-03-27 20:39:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/209363002/110001
6 years, 9 months ago (2014-03-27 20:39:32 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 22:32:55 UTC) #13
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-27 22:32:56 UTC) #14
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 9 months ago (2014-03-27 23:22:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/209363002/110001
6 years, 9 months ago (2014-03-27 23:22:40 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 00:31:33 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-28 00:31:34 UTC) #18
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 9 months ago (2014-03-28 00:49:45 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/209363002/110001
6 years, 9 months ago (2014-03-28 00:49:57 UTC) #20
commit-bot: I haz the power
Change committed as 170243
6 years, 9 months ago (2014-03-28 01:53:14 UTC) #21
Charlie Reis
6 years, 9 months ago (2014-03-28 16:22:38 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/209363002/diff/110001/Source/core/frame/DOMWi...
File Source/core/frame/DOMWindow.cpp (right):

https://codereview.chromium.org/209363002/diff/110001/Source/core/frame/DOMWi...
Source/core/frame/DOMWindow.cpp:874: if
(m_frame->loader().client()->willCheckAndDispatchMessageEvent(timer->targetOrigin(),
event.get()))
What about cross-process postMessage?  Seems like we might need to pass the
token to the new process.  This is where it would be handed off to the embedder.

Powered by Google App Engine
This is Rietveld 408576698