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

Unified Diff: third_party/WebKit/Source/core/page/CreateWindow.cpp

Issue 2785063002: Make browsing context keywords case-insensitive. (Closed)
Patch Set: Rebased Created 3 years, 9 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/page/CreateWindow.cpp
diff --git a/third_party/WebKit/Source/core/page/CreateWindow.cpp b/third_party/WebKit/Source/core/page/CreateWindow.cpp
index 755cb5ec5747f5e206c5eb700715f0f8f83adb8f..f404b43ec4965b8fffcf1e6ce94c5d3f7100828c 100644
--- a/third_party/WebKit/Source/core/page/CreateWindow.cpp
+++ b/third_party/WebKit/Source/core/page/CreateWindow.cpp
@@ -50,11 +50,11 @@ static Frame* reuseExistingWindow(LocalFrame& activeFrame,
LocalFrame& lookupFrame,
const AtomicString& frameName,
NavigationPolicy policy) {
- if (!frameName.isEmpty() && frameName != "_blank" &&
+ if (!frameName.isEmpty() && !equalIgnoringASCIICase(frameName, "_blank") &&
policy == NavigationPolicyIgnore) {
if (Frame* frame =
lookupFrame.findFrameForNavigation(frameName, activeFrame)) {
- if (frameName != "_self") {
+ if (!equalIgnoringASCIICase(frameName, "_self")) {
if (Page* page = frame->page()) {
if (page == activeFrame.page())
page->focusController().setFocusedFrame(frame);
@@ -85,7 +85,7 @@ static Frame* createNewWindow(LocalFrame& openerFrame,
ASSERT(page->mainFrame());
LocalFrame& frame = *toLocalFrame(page->mainFrame());
- if (request.frameName() != "_blank")
+ if (!equalIgnoringASCIICase(request.frameName(), "_blank"))
frame.tree().setName(request.frameName());
page->chromeClient().setWindowFeatures(features);
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/page/FrameTree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698