window.opener should not be readonly #23032
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.8.1 (not present in 2.7.2)
Search Terms:
opener
(found #10379, but this was back in 2.0 / 2016),window readonly
,set window opener to null typescript 2.8
Code
Expected behavior:
window.opener
should be assignable tonull
for security reasons (e.g. microsoft/monaco-editor#601). Setting thenoopener
window feature only works in modern browsers.Actual behavior:
window.opener
is declared asreadonly
. This appears to be a 2.8 regression of #10379Playground Link: here
Related Issues:
#10379
The text was updated successfully, but these errors were encountered: