| Index: Source/core/inspector/InjectedScript.cpp
|
| diff --git a/Source/core/inspector/InjectedScript.cpp b/Source/core/inspector/InjectedScript.cpp
|
| index d3191984f52a56d211456af04daf61352165009c..c90a71155493e3e395e3b8eb0399f3a20cf3ad8e 100644
|
| --- a/Source/core/inspector/InjectedScript.cpp
|
| +++ b/Source/core/inspector/InjectedScript.cpp
|
| @@ -257,6 +257,13 @@ Node* InjectedScript::nodeForObjectId(const String& objectId)
|
| return InjectedScriptHost::scriptValueAsNode(scriptState(), resultValue);
|
| }
|
|
|
| +EventTarget* InjectedScript::eventTargetForObjectId(const String& objectId)
|
| +{
|
| + if (isEmpty() || !canAccessInspectedWindow())
|
| + return nullptr;
|
| + return InjectedScriptHost::scriptValueAsEventTarget(scriptState(), findObjectById(objectId));
|
| +}
|
| +
|
| void InjectedScript::releaseObject(const String& objectId)
|
| {
|
| RefPtr<JSONValue> parsedObjectId = parseJSON(objectId);
|
|
|