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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/xss-getownproperty.html

Issue 2452073002: Freeze global prototype chain per WebIDL (Closed)
Patch Set: Test improvements Created 4 years, 1 month 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/LayoutTests/http/tests/security/xss-getownproperty.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/xss-getownproperty.html b/third_party/WebKit/LayoutTests/http/tests/security/xss-getownproperty.html
deleted file mode 100644
index 9e6645db800226e7c0ac04641d591fd9e4674b82..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/xss-getownproperty.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!doctype html>
-<body>
-Test should log two "PASS" messages to the console.
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-var frame = document.body.appendChild(document.createElement("iframe"));
-frame.src = "https://localhost:8443/security/resources/doc-with-iframe.html";
-frame.onload = function() {
- frame.onload = null;
- target = frame.contentWindow;
- target[0].location = "data:text/html,<script>name='eval'</scr" + "ipt>";
- setTimeout(function() {
- try {
- Object.getOwnPropertyDescriptor(target, "eval").value("console.log('FAIL: Access check bypassed.')");
- } catch (e) {
- console.log("PASS: Access check triggered");
- }
- target[0].location = "data:text/html,<script>name='myEval'</scr" + "ipt>";
- setTimeout(function() {
- try {
- target.myEval("console.log('FAIL: Access check bypassed.')");
- } catch (e) {
- console.log("PASS: Access check triggered");
- }
- if (window.testRunner)
- testRunner.notifyDone();
- }, 500);
- }, 500);
-}
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698