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

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

Issue 2393313002: reflow comments in core/frame (Closed)
Patch Set: tweak Created 4 years, 2 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
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 a3b323742d5683a1d2d3288ed5d4646a52af8bd6..ff278e4d8c74cc3ff2685cc5e9a663d3f5dd44c4 100644
--- a/third_party/WebKit/Source/core/frame/History.cpp
+++ b/third_party/WebKit/Source/core/frame/History.cpp
@@ -203,7 +203,9 @@ void History::stateObjectAdded(PassRefPtr<SerializedScriptValue> data,
KURL fullURL = urlForState(urlString);
if (!canChangeToUrl(fullURL, frame()->document()->getSecurityOrigin(),
frame()->document()->url())) {
- // We can safely expose the URL to JavaScript, as a) no redirection takes place: JavaScript already had this URL, b) JavaScript can only access a same-origin History object.
+ // We can safely expose the URL to JavaScript, as a) no redirection takes
+ // place: JavaScript already had this URL, b) JavaScript can only access a
+ // same-origin History object.
exceptionState.throwSecurityError(
"A history state object with URL '" + fullURL.elidedString() +
"' cannot be created in a document with origin '" +
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameViewAutoSizeInfo.cpp ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698