Re: [w3c/IndexedDB] Add IDBFactory/databases() (#240)

brettz9 commented on this pull request.



> @@ -2344,6 +2363,42 @@ when invoked, must run these steps:
 
 </div>
 
+<div class=algorithm>
+
+The <dfn method for=IDBFactory>databases()</dfn> method,
+when invoked, must run these steps:
+
+1. Let |origin| be the [=/origin=] of the global scope used
+    to access this {{IDBFactory}}.
+
+1. If |origin| is an [=opaque origin=],
+    then return a new promise rejected with a "{{NotSupportedError}}" {{DOMException}}.
+

The other `IDBFactory` methods (`open` and `deleteDatabase`) throw a `SecurityError` DOMException upon an opaque origin. Is this deviation here deliberate?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/pull/240#pullrequestreview-176123399

Received on Monday, 19 November 2018 02:01:14 UTC