-
Notifications
You must be signed in to change notification settings - Fork 12.8k
2.0: window.opener declared as readonly #10379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0: window.opener declared as readonly #10379
Comments
It is doing this because the Microsoft Edge IDL has it as read only. Chromium as a special getter. The W3C IDL states that it is read/write and describes the behaviour of when setting it to |
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes. |
@mhegazy This happens again in TS 2.8.1 |
Fix microsoft/TypeScript#10379 (comment): Make `Window.opener` wirable
I imagine this will be in some upcoming 2.8.2 patch release? |
should be in 2.8.2 |
When you open a popup window of a page on a different domain, for security reasons you might want to set its window.opener to null. This is a type error in 2.0 because the
opener
property is incorrectly declared read-only:The text was updated successfully, but these errors were encountered: