[Webkit-unassigned] [Bug 97324] [GTK] Add support for Page Visibility

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 19 05:52:32 PST 2013


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





--- Comment #20 from Carlos Garcia Campos <cgarcia at igalia.com>  2013-02-19 05:54:53 PST ---
(In reply to comment #19)
> >> Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp:2951
> >> + * see http://www.w3.org/TR/2011/WD-page-visibility-20110602/.
> > 
> > After reading this it's still not clear to me why and when a user of the API would call this method. Or is it only useful for testing? In such case it should be added to the C API which is what the tests use.
> 
> Well, when the view is in background or is not mapped and you want to update visibility to change web application behaviour (for example on a page with video JavaScript onVisibilityChange callback pauses the video when the page is hidden. To get video playback to continue in background (to hear video audio for example) you can update visibility to 'visible'. In general it should be good to have such API for special use cases.

Isn't this a workaround for pages using such javascript callback? Is there already any app needing this API? I would avoid adding new API that is not yet needed and even more at this point of the release cycle.

-- 
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