Chromium Code Reviews
DescriptionBind Window focus ability to the ExecutionContext instead of the process.
WindowFocusAllowedIndicator is using a static variable that allows
the entire process to focus a window. In addition, it is entirely
stack based which prevents asynchronous methods to use it properly.
By binding the window focus ability to the ExecutionContext,
we can allow asynchronous methods but also, reduces the chances
of unrelated scripts to focus windows when they should not be
able to. Those two concerns are slightly related because an
ExecutionContext will now be able to focus a window for a
long period of time, thus, we do not want other ExecutionContext
to be able to do that in the meantime.
This is part of a three-sided CL:
Part 1: <this>
Part 2: https://codereview.chromium.org/786403003
Part 3: https://codereview.chromium.org/722423004
BUG=440740
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186849
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187285
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Patch Set 3 : review comments #Patch Set 4 : rebase #Patch Set 5 : rebase #Patch Set 6 : rebase #Messages
Total messages: 35 (14 generated)
|