angler-fishThe Vulnerability History Project

Add a scoping object to help block scripting during plugin destruction.

      This doesn't block all scripting in plugin destruction: apparently,
being able to script the DOM in an inconsistent state is a &quotfeature&quot of
Flash.

Instead, the blocks are scoped to instances where the Frame/Document
will be destroyed or replaced shortly afterwards: this is an extension
of the earlier efforts to block synchronous scripting by plugins in
frame detach. The eventual goal is to remove the need to run a nested
message loop in these circumstances, so that the frame navigation and
detach logic can be rewritten to be much easier to reason about.

BUG=498088

Review URL: https://codereview.chromium.org/1170413003

git-svn-id: svn://svn.chromium.org/blink/trunk@196832 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    
commit 213319fd94c5eeda89a9f4d0286a2e1e5cb0111c
-2
-2
-2
-2
-34
-49
-2
-17
-1
-20
expand_less