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

Side by Side Diff: Source/core/page/PagePopupClientTest.cpp

Issue 1151153004: Can't open <select> popup with an <option> text including "</script>". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « Source/core/page/PagePopupClient.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "core/page/PagePopupClient.h"
7
8 #include <gtest/gtest.h>
9 #include <string>
10
11 namespace blink {
12
13 TEST(PagePopupClientTest, AddJavaScriptString)
14 {
15 RefPtr<SharedBuffer> buffer = SharedBuffer::create();
16 PagePopupClient::addJavaScriptString("abc\r\n'\"</script>", buffer.get());
17 EXPECT_EQ("\"abc\\r\\n'\\\"\\x3C/script>\"", std::string(buffer->data(), buf fer->size()));
18 }
19
20 } // namespace blink
21
OLDNEW
« no previous file with comments | « Source/core/page/PagePopupClient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698