Skip to content

Commit

Permalink
Moving popinContextType* APIs to Window (#8)
Browse files Browse the repository at this point in the history
* Moving popinContextType* APIs to Window

This change updates the spec to expose popinContextType*
methods through Window, instead of Navigator.

* Moving popinContextType* APIs to Window

This change updates the spec to expose popinContextType*
methods through Window, instead of Navigator.
  • Loading branch information
Airborn22 committed Sep 3, 2024
1 parent 2c5d0b7 commit f0a8c33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ enum PopinContextType { "partitioned" };

A draft API for feature detection by a prospective popin opener could look like:
```
interface Navigator {
partial interface Window {
// Returns an empty array if no popin context types are supported.
Array<PopinContextType> popinContextTypesSupported();
sequence<PopinContextType> popinContextTypesSupported();
};
```

A draft API for a popin to detect it is a popin could look like:
```
interface Navigator {
partial interface Window {
// Returns null if this isn't a popin context.
PopinContextType? popinContextType();
};
Expand Down

0 comments on commit f0a8c33

Please sign in to comment.