The cross-desktop API is documented here: http://people.freedesktop.org/~hadess/idle-inhibition-spec/index.html
Created attachment 254860 [details] Patch Of course this doesn't work in crappy sites that still use flash for videos and don't implement the fullscreen API.
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment on attachment 254860 [details] Patch LGTM!
Committed r185642: <http://trac.webkit.org/changeset/185642>