[spec] Merge WindowSharedStorage interface with SharedStorage
xyaoinum opened this issue · 1 comments
xyaoinum commented
Today, the Chrome code and the spec don't match:
- The code has a single
Exposed=(Window, SharedStorageWorklet) interface SharedStorage {...}
interface, and it adds[Exposed=SharedStorageWorklet]
to prevent individual methods from being exposed fromwindow.sharedStorage
when inside of aWindow
global specifically. - The spec puts the common methods into
Exposed=(Window, SharedStorageWorklet) interface SharedStorage
, and puts the Window-only methods into a[Exposed=(Window)] interface WindowSharedStorage : SharedStorage {}
.
To align with the existing code's functionality, WindowSharedStorage
should be merged into SharedStorage
within the spec.
domfarolino commented
(Made a very minor edit just FYI, let me know if it looks wrong).