Index: LayoutTests/http/tests/security/no-indexeddb-from-sandbox.html |
diff --git a/LayoutTests/http/tests/security/no-indexeddb-from-sandbox.html b/LayoutTests/http/tests/security/no-indexeddb-from-sandbox.html |
index dbf833bb30d7bed95e3a480720ad135ba03b14b9..734a415f4fe83854683558622f633bf089ffd2f1 100644 |
--- a/LayoutTests/http/tests/security/no-indexeddb-from-sandbox.html |
+++ b/LayoutTests/http/tests/security/no-indexeddb-from-sandbox.html |
@@ -5,15 +5,14 @@ if (window.testRunner) |
<iframe sandbox="allow-scripts" |
src="data:text/html, |
<script> |
- var db = window.webkitIndexedDB; |
try { |
- db.open('test'); |
- alert('FAIL: db.open() should throw a SECURITY_ERR in a sandbox.'); |
+ indexedDB.open('test'); |
+ alert('FAIL: indexedDB.open() should throw a SECURITY_ERR in a sandbox.'); |
} catch (e) { |
if (e.code === DOMException.SECURITY_ERR) |
- alert('PASS: db.open() threw a SECURITY_ERR!'); |
+ alert('PASS: indexedDB.open() threw a SECURITY_ERR!'); |
else |
- alert('FAIL: db.open() threw a ' + e.name); |
+ alert('FAIL: indexedDB.open() threw a ' + e.name); |
} |
</script>" |
></iframe> |