[Webkit-unassigned] [Bug 24030] Amalgamate suspendActiveDOMObjects/resumeActiveDOMObjects and documentWillBecomeInactive/documentDidBecomeActive?

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 28 14:23:49 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=24030





--- Comment #1 from Dmitry Titov <dimich at chromium.org>  2011-01-28 14:23:49 PST ---
Indeed. Perhaps it makes sense to split ActiveDOMObject into 2 parts - the more generic interface like ScriptExecutionContextObserver (name?) that would receive stop/start/canSuspend/suspend/resume/contextDestroyed, and a PendingActivity object that would have hasPendingActivity (with counter) and optionally register with the list on SEC to keep their wrappers alive.

By splitting observer-like functionality from ActiveDOMObject, we would be able to have observers that don't have JS wrappers or a notion of pending activity.

Old ActiveDOMObjects would derive from both, while things like HTMLInputElement could only be an observer.

What do you think?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list