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

Unified Diff: Source/WebCore/inspector/InspectorPageAgent.cpp

Issue 13949006: DevTools: force state cookie update upon addScriptToEvaluateOnLoad. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/InspectorPageAgent.cpp
diff --git a/Source/WebCore/inspector/InspectorPageAgent.cpp b/Source/WebCore/inspector/InspectorPageAgent.cpp
index 960afa9ec3b41acb2e72884218bb37dc35a9c932..5e3ca385ed697be474415703a40e434c0d9a7d66 100644
--- a/Source/WebCore/inspector/InspectorPageAgent.cpp
+++ b/Source/WebCore/inspector/InspectorPageAgent.cpp
@@ -432,6 +432,9 @@ void InspectorPageAgent::addScriptToEvaluateOnLoad(ErrorString*, const String& s
*identifier = String::number(++m_lastScriptIdentifier);
} while (scripts->find(*identifier) != scripts->end());
scripts->setString(*identifier, source);
+
+ // Force cookie serialization.
+ m_state->setObject(PageAgentState::pageAgentScriptsToEvaluateOnLoad, scripts);
}
void InspectorPageAgent::removeScriptToEvaluateOnLoad(ErrorString* error, const String& identifier)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698