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

Unified Diff: LayoutTests/http/tests/security/cross-frame-access-static-operation-return-wrapper.html

Issue 1163893002: binding: Supports static operations/attrs returning non-primitive types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a comment. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-static-operation-return-wrapper-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/cross-frame-access-static-operation-return-wrapper.html
diff --git a/LayoutTests/http/tests/security/cross-frame-access-static-operation-return-wrapper.html b/LayoutTests/http/tests/security/cross-frame-access-static-operation-return-wrapper.html
new file mode 100644
index 0000000000000000000000000000000000000000..3b0782fcccdf365da3072da88cecc39eb1b3127c
--- /dev/null
+++ b/LayoutTests/http/tests/security/cross-frame-access-static-operation-return-wrapper.html
@@ -0,0 +1,19 @@
+<script>
+console.log("Tests that static operations return DOM wrappers which are associated with the caller's context, not associated with |this| which can be faked.");
+// See also http://crbug.com/494640
+
+var iframe = document.documentElement.appendChild(document.createElement('iframe'));
+iframe.src = 'data:text/plain,hello';
+iframe.onload = function() {
+ var uri = IDBKeyRange.only.call(frames[0], 0).constructor.constructor('return location.href')();
+ console.log(uri);
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+}
+
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-static-operation-return-wrapper-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698