[Webkit-unassigned] [Bug 66746] Expose setFullscreen method on WebPluginContainer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 23 16:27:00 PDT 2011


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





--- Comment #8 from Darin Fisher (:fishd, Google) <fishd at chromium.org>  2011-08-23 16:27:00 PST ---
(In reply to comment #6)
> (In reply to comment #5)
> > (From update of attachment 104792 [details] [details])
> > I thought the new fullscreen goodness allowed you to make any element fullscreen?
> 
> They do. The reason I put the code in WebPluginContainer instead of WebElement is that WebPluginContainer has a direct reference to a WebCore::HTMLPlugInElement, and it seemed silly to wrap it in WebElement only to unwrap it and call a method on it immediately afterwards.
> 
> I think if I moved the function to WebElement, I would mirror the WebKit API, and have:
> 
> webelement->requestFullScreen(flags);
> 
> and
> 
> webelement->document()->cancelFullScreen();
> 
> which would necessitate adding 3 methods:
> - void WebElement::requestFullScreen(flags)
> - WebDocument WebElement::document()
> - void WebDocument::cancelFullScreen()
> 
> 
> If that seems cleaner/better to someone with a clearer understanding of the WebFoo wrapper APIs than me, I'm happy to reimplement it that way :)

Heh, sorry... I only looked at the patch before commenting.  I think it is better to add the more generic APIs.  We've found that to be the better way in the past.

I have to note though that if this is for Pepper, we may have a bit of an issue to worry about.  Assuming we want to require a user gesture before accepting a request to make an element fullscreen, we might have trouble here.  You see with pepper, events are dispatched asynchronously.  This means that when the plugin sees the event, webkit has already cleared its user gesture flag.

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