[Bug 23669] [Custom]: "leftView" type of callbacks should not be called on "this document has a browsing context"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23669

--- Comment #4 from Dimitri Glazkov <dglazkov@chromium.org> ---
(In reply to Tetsuharu OHZEKI from comment #3)
> (In reply to Dimitri Glazkov from comment #1)
> > This is intentional. "leftView" is only called when the element's document
> > changes, not when the document changes itself.
> > 
> > One motivation here is avoid slowing down destruction of the document by
> > invoking a bunch of callbacks on its elements.
> > 
> > If you have a specific use case that you feel needs to be address, please
> > reopen the bug and post it here :)
> 
> Ah, I have the one more question about it. Will "leftView" not be called
> when "unload" event is dispatched on the element's document? I feel that
> this spec avoids it intentionally from your comment.

Right. This callback is only called when the element is moved, not when the
document's state is changed. The spec is very clear on that.

Unload event is perfectly usable all by itself, there's no reason to duplicate
its functionality in a callback.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 11 November 2013 05:20:12 UTC