Index: third_party/WebKit/LayoutTests/editing/selection/selection-plugin-clear-crash.html |
diff --git a/third_party/WebKit/LayoutTests/editing/selection/selection-plugin-clear-crash.html b/third_party/WebKit/LayoutTests/editing/selection/selection-plugin-clear-crash.html |
index fc66b5e2b98e57c923d7b66f03b44082b85bbaec..623e49d882ce8f91e6062ea1747e52bafe3ce78d 100644 |
--- a/third_party/WebKit/LayoutTests/editing/selection/selection-plugin-clear-crash.html |
+++ b/third_party/WebKit/LayoutTests/editing/selection/selection-plugin-clear-crash.html |
@@ -8,10 +8,7 @@ function runTest() |
{ |
var obj = document.getElementById("test"); |
var s = window.getSelection(); |
- // The cleardocumentduringnew attribute intends to clear document.body when the |
- // embed element is loaded and it is used for only tests. See: |
- // https://code.google.com/p/chromium/codesearch#chromium/src/content/shell/tools/plugin/main.cpp&q=cleardocumentduringnew&type=cs&sq=package:chromium&l=247 |
- // It causes a timing issue that |obj| exists on Linux but not on Windows. |
+ // The initscript attribute is run (synchronously) when the plugin is created. |
if (obj) |
s.collapse(obj, 0); |
else |
@@ -22,7 +19,7 @@ function runTest() |
<body onload="runTest()"> |
<div> |
<object id="test"></object> |
-<embed type="application/x-webkit-test-netscape" cleardocumentduringnew></embed> |
+<embed type="application/x-blink-deprecated-test-plugin" initscript="document.body.innerHTML = '';"></embed> |
</div> |
</body> |
</html> |