Skip to content

Commit fb87f29

Browse files
romandevjungkees
authored andcommitted
Make the promise settlement type of WindowClient.navigate() nullable (#1253)
The navigate() can be resolved as null if If browsingContext’s Window object’s environment settings object’s creation URL’s origin is not the same as the service worker's origin[1]. [1] https://w3c.github.io/ServiceWorker/#ref-for-dom-windowclient-navigate
1 parent aaeac03 commit fb87f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
981981
readonly attribute boolean focused;
982982
[SameObject] readonly attribute FrozenArray<USVString> ancestorOrigins;
983983
[NewObject] Promise<WindowClient> focus();
984-
[NewObject] Promise<WindowClient> navigate(USVString url);
984+
[NewObject] Promise<WindowClient?> navigate(USVString url);
985985
};
986986
</pre>
987987

0 commit comments

Comments
 (0)