DescriptionCall NodeFilter.acceptNode() with correct this value
Per WebIDL, a callback interface's operation should be called with
object that implements the interface as this, unless the provided object
itself is used as the function to call, in which case it should be called
with this=undefined (by default, allowing for overridden by the algorithm
that makes the call.)
The code calling NodeFilter.acceptNode() always used the context's global
object as this. Note that when this=undefined and the function called is
not compiled in strict mode, the actual this value seen by the function
will still be the global object.
BUG=419548
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190299
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|