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

Unified Diff: third_party/WebKit/Source/core/frame/History.cpp

Issue 2652213005: Surface pushState event (Closed)
Patch Set: addressed comments Created 3 years, 11 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 | « third_party/WebKit/Source/core/frame/History.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/History.cpp
diff --git a/third_party/WebKit/Source/core/frame/History.cpp b/third_party/WebKit/Source/core/frame/History.cpp
index a1dd7e7bf88eb08eb0807f1148009002701d23ea..05fb85a97b7b7fec8cc96cf0d568f7c41a2c00d5 100644
--- a/third_party/WebKit/Source/core/frame/History.cpp
+++ b/third_party/WebKit/Source/core/frame/History.cpp
@@ -36,6 +36,7 @@
#include "core/loader/NavigationScheduler.h"
#include "core/page/Page.h"
#include "platform/RuntimeEnabledFeatures.h"
+#include "platform/instrumentation/tracing/TraceEvent.h"
#include "platform/weborigin/KURL.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "wtf/text/StringView.h"
@@ -161,6 +162,15 @@ void History::go(ScriptState* scriptState, int delta) {
}
}
+void History::pushState(PassRefPtr<SerializedScriptValue> data,
+ const String& title,
+ const String& url,
+ ExceptionState& exceptionState) {
+ TRACE_EVENT0("blink", "History::pushState");
+ stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(),
+ FrameLoadTypeStandard, exceptionState);
+}
+
KURL History::urlForState(const String& urlString) {
Document* document = frame()->document();
« no previous file with comments | « third_party/WebKit/Source/core/frame/History.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698