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

Issue 258783004: Add a "forwarded" flag to usergesture tokens. (Closed)

Created:
6 years, 8 months ago by Marijn Kruisselbrink
Modified:
6 years, 7 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add a "forwarded" flag to usergesture tokens. Exposing this and using it in DOMTimer to check if a user gesture token should be forwarded allows for other ways of forwarding user gestures while still preventing a user gesture from being forwarded more than once. BUG=354217 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172810

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : tests #

Patch Set 4 : wasForwarded can't fully replace nestingLevel check #

Patch Set 5 : set forwarded flag in DOMWindow::postMessageTimerFired #

Patch Set 6 : fix unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -12 lines) Patch
A + LayoutTests/fast/events/popup-forwarded-postmessage-blocked.html View 1 2 2 chunks +13 lines, -10 lines 0 comments Download
A + LayoutTests/fast/events/popup-forwarded-postmessage-blocked-expected.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/frame/DOMTimer.cpp View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M Source/platform/UserGestureIndicator.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/UserGestureIndicator.cpp View 2 chunks +13 lines, -1 line 0 comments Download
M Source/web/WebUserGestureToken.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/web/tests/WebUserGestureTokenTest.cpp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M public/web/WebUserGestureToken.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Marijn Kruisselbrink
This implements what you suggested in https://codereview.chromium.org/239503008/ Instead of passing along the timeout this just ...
6 years, 8 months ago (2014-04-25 21:40:11 UTC) #1
jochen (gone - plz use gerrit)
should DOMWindow::postMessageTimerFired also mark the token as forwarded? lgtm, nice catch anyway
6 years, 7 months ago (2014-04-28 09:27:16 UTC) #2
Marijn Kruisselbrink
On 2014/04/28 09:27:16, jochen wrote: > should DOMWindow::postMessageTimerFired also mark the token as forwarded? Yes, ...
6 years, 7 months ago (2014-04-28 18:10:10 UTC) #3
Marijn Kruisselbrink
The CQ bit was checked by mek@chromium.org
6 years, 7 months ago (2014-04-28 19:47:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mek@chromium.org/258783004/100001
6 years, 7 months ago (2014-04-28 19:47:30 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 20:47:23 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 7 months ago (2014-04-28 20:47:23 UTC) #7
Marijn Kruisselbrink
The CQ bit was checked by mek@chromium.org
6 years, 7 months ago (2014-04-28 20:49:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mek@chromium.org/258783004/100001
6 years, 7 months ago (2014-04-28 20:50:10 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 22:20:09 UTC) #10
Message was sent while issue was closed.
Change committed as 172810

Powered by Google App Engine
This is Rietveld 408576698