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

Unified Diff: chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html

Issue 1422383003: [Extensions] Make handler_function a hidden property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Created 5 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: chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html
diff --git a/chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html b/chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html
new file mode 100644
index 0000000000000000000000000000000000000000..4d21d9f50eb02dd96afb6ed51750f050a0f9f429
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/bindings/handler_function_type_checking.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<body>
+<span id="status">success</span>
+<script>
+iframe = document.body.appendChild(document.createElement("iframe"));
+obj = iframe.contentWindow.Object;
+app = iframe.contentWindow.chrome.app;
+iframe.remove();
+obj.prototype.__defineGetter__("handler_function", function() {
+ document.getElementById('status').textContent = 'FAILED';
+ return 0xBADDEAD;
+});
+app.getDetails();
+</script>
+</body>
« no previous file with comments | « chrome/browser/extensions/extension_bindings_apitest.cc ('k') | extensions/renderer/object_backed_native_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698