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

Unified Diff: LayoutTests/plugins/plugin-destroyed-enumerate.html

Issue 476663002: Gracefully handle property enumeration over deleted plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/plugins/plugin-destroyed-enumerate-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/plugins/plugin-destroyed-enumerate.html
diff --git a/LayoutTests/plugins/plugin-destroyed-enumerate.html b/LayoutTests/plugins/plugin-destroyed-enumerate.html
new file mode 100644
index 0000000000000000000000000000000000000000..97eee9ef1db20590b1eff52dd5f5cd5acb535d79
--- /dev/null
+++ b/LayoutTests/plugins/plugin-destroyed-enumerate.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../resources/js-test.js"></script>
+<embed type="application/x-webkit-test-netscape" id=plugin>
+<script>
+description("Verify that enumerating the properties of a detached plugin doesn't crash, but throws.");
+
+window.jsTestIsAsync = true;
+
+var testObject;
+function runTest() {
+ testObject = plugin.testObject;
+ plugin.parentNode.removeChild(plugin);
+ shouldThrow("Object.getOwnPropertyNames(testObject)");
+ finishJSTest();
+}
+window.onload = runTest;
+</script>
« no previous file with comments | « no previous file | LayoutTests/plugins/plugin-destroyed-enumerate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698