diff options
Diffstat (limited to 'webkit/data')
-rw-r--r-- | webkit/data/plugins/force_reload.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/data/plugins/force_reload.html b/webkit/data/plugins/force_reload.html new file mode 100644 index 0000000..cc7cf39 --- /dev/null +++ b/webkit/data/plugins/force_reload.html @@ -0,0 +1,13 @@ +<html>
+<body>
+<embed id='1' type='application/vnd.npapi-test' src='foo' name='reload1'></embed>
+<script language="JavaScript">
+// Remove the existing embed object to force unload.
+var e = document.getElementById('1');
+e.parentNode.removeChild(e);
+
+// Add a new embed object to force reload.
+document.write("<embed id='2' type='application/vnd.npapi-test' src='foo' name='reload2'></embed>");
+</script>
+</body>
+</html>
|