Closed zcorpan closed 8 years ago
New things on window typically need to be annotated with [Replaceable]. The attributes CSSOM View defines on window are, https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface
[Replaceable]
Also you could add [SameObject] to require that the same object is returned every time.
[SameObject]
So
partial interface Window { [SameObject, Replaceable] readonly attribute VisualViewport visualViewport; };
Thanks, fixed now.
New things on window typically need to be annotated with
[Replaceable]
. The attributes CSSOM View defines on window are, https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interfaceAlso you could add
[SameObject]
to require that the same object is returned every time.So