Re: Intent to unship: cross-context @@hasInstance in IDL interfaces

2021-03-05 Thread Peter Van der Beken via dev-platform
Note that for now code running with system principals still has the hasInstance hook, so instanceof will still return true there if the platform object and its interface's prototype object are from different realms. We do plan to align to the behaviour from the spec everywhere in the near

Intent to unship: cross-context @@hasInstance in IDL interfaces

2021-03-04 Thread Kagami Rosylight
https://github.com/heycam/webidl/pull/356 removed custom hasInstance behavior in 2017, and the feature has only been shipped by Firefox. Dropping the support means that JavaScript `instanceof` operator will return false when the contexts of the object and the constructor don't match, e.g. the