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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/Cache.cpp

Issue 2141383002: [Fetch API] Remove HandleScope to protect local handles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/cachestorage/Cache.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/Cache.cpp b/third_party/WebKit/Source/modules/cachestorage/Cache.cpp
index 3a3787ef55281f46b6cbd44fc9f7f0b446d8a17c..1ec10966bd64c9cf798c662a3f088b047ea67c07 100644
--- a/third_party/WebKit/Source/modules/cachestorage/Cache.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/Cache.cpp
@@ -50,6 +50,7 @@ public:
{
if (!m_resolver->getExecutionContext() || m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
return;
+ ScriptState::Scope scope(m_resolver->getScriptState());
m_resolver->resolve(Response::create(m_resolver->getScriptState(), webResponse));
m_resolver.clear();
}
@@ -80,6 +81,7 @@ public:
{
if (!m_resolver->getExecutionContext() || m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
return;
+ ScriptState::Scope scope(m_resolver->getScriptState());
HeapVector<Member<Response>> responses;
for (size_t i = 0; i < webResponses.size(); ++i)
responses.append(Response::create(m_resolver->getScriptState(), webResponses[i]));
@@ -140,6 +142,7 @@ public:
{
if (!m_resolver->getExecutionContext() || m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
return;
+ ScriptState::Scope scope(m_resolver->getScriptState());
HeapVector<Member<Request>> requests;
for (size_t i = 0; i < webRequests.size(); ++i)
requests.append(Request::create(m_resolver->getScriptState(), webRequests[i]));
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698