diff --git a/files/en-us/web/api/clients/openwindow/index.md b/files/en-us/web/api/clients/openwindow/index.md index 2a08e39267c667a..65baf7e53958bf7 100644 --- a/files/en-us/web/api/clients/openwindow/index.md +++ b/files/en-us/web/api/clients/openwindow/index.md @@ -39,6 +39,15 @@ A {{jsxref("Promise")}} that resolves to a {{domxref("WindowClient")}} object if URL is from the same origin as the service worker or a {{Glossary("null", "null value")}} otherwise. +### Exceptions + +- `InvalidAccessError` {{domxref("DOMException")}} + - : The promise is rejected with this exception if none of the windows in the app's origin have [transient activation](/en-US/docs/Web/Security/User_activation). + +## Security requirements + +- At least one window in the app's origin must have [transient activation](/en-US/docs/Web/Security/User_activation). + ## Examples ```js diff --git a/files/en-us/web/api/windowclient/focus/index.md b/files/en-us/web/api/windowclient/focus/index.md index 01fbd91d8549fb4..57948d5b429d02c 100644 --- a/files/en-us/web/api/windowclient/focus/index.md +++ b/files/en-us/web/api/windowclient/focus/index.md @@ -27,6 +27,15 @@ None. A {{jsxref("Promise")}} that resolves to the existing {{domxref("WindowClient")}}. +### Exceptions + +- `InvalidAccessError` {{domxref("DOMException")}} + - : The promise is rejected with this exception if none of the windows in the app's origin have [transient activation](/en-US/docs/Web/Security/User_activation). + +## Security requirements + +- At least one window in the app's origin must have [transient activation](/en-US/docs/Web/Security/User_activation). + ## Examples ```js