| Index: Source/core/frame/RemoteFrame.cpp
|
| diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp
|
| index 908c082b1955071847f9ee95fc52df6464ad6226..12f842cc01ce4176c34c05400045f80e6f548e78 100644
|
| --- a/Source/core/frame/RemoteFrame.cpp
|
| +++ b/Source/core/frame/RemoteFrame.cpp
|
| @@ -15,6 +15,7 @@
|
| #include "core/layout/LayoutPart.h"
|
| #include "core/loader/FrameLoadRequest.h"
|
| #include "core/paint/DeprecatedPaintLayer.h"
|
| +#include "platform/PluginScriptForbiddenScope.h"
|
| #include "platform/UserGestureIndicator.h"
|
| #include "platform/graphics/GraphicsLayer.h"
|
| #include "platform/weborigin/SecurityPolicy.h"
|
| @@ -84,6 +85,7 @@ void RemoteFrame::reload(FrameLoadType frameLoadType, ClientRedirectPolicy clien
|
|
|
| void RemoteFrame::detach()
|
| {
|
| + PluginScriptForbiddenScope forbidPluginDestructorScripting;
|
| // Frame::detach() requires the caller to keep a reference to this, since
|
| // otherwise it may clear the last reference to this, causing it to be
|
| // deleted, which can cause a use-after-free.
|
|
|