зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1768264 [wpt PR 33973] - Improve 'idbfactory-open-opaque-origin' WPT, a=testonly
Automatic update from web-platform-tests Improve 'idbfactory-open-opaque-origin' WPT For the test to ensure that IDBFactory.open raises an exception in opaque origin contexts, the test should ignore any exceptions raised by the preceding IDBFactory.deleteDatabase call (which also raises an exception in opaque origin contexts). Bug: None Change-Id: Ibf086a21b2d242377a9833d04854de34ccaa3d15 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3629652 Quick-Run: Ari Chivukula <arichiv@chromium.org> Reviewed-by: Ari Chivukula <arichiv@chromium.org> Commit-Queue: Ari Chivukula <arichiv@chromium.org> Cr-Commit-Position: refs/heads/main@{#1000627} -- wpt-commits: 588bbb136711a7b08ba36680fda3038c7a972d3d wpt-pr: 33973
This commit is contained in:
Родитель
a329eede64
Коммит
17ffe3dcb5
|
@ -33,6 +33,8 @@ const script =
|
|||
' window.onmessage = () => {' +
|
||||
' try {' +
|
||||
' indexedDB.deleteDatabase("opaque-origin-test");' +
|
||||
' } catch {}' +
|
||||
' try {' +
|
||||
' const r = indexedDB.open("opaque-origin-test");' +
|
||||
' r.onupgradeneeded = () => { r.transaction.abort(); };' +
|
||||
' window.parent.postMessage({result: "no exception"}, "*");' +
|
||||
|
|
Загрузка…
Ссылка в новой задаче