WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
69063
[Chromium] Forward fullscreenchanged event to plugins
https://bugs.webkit.org/show_bug.cgi?id=69063
Summary
[Chromium] Forward fullscreenchanged event to plugins
James Kozianski
Reported
2011-09-28 23:41:50 PDT
Forward fullscreenchanged event to plugins
Attachments
Patch
(1.54 KB, patch)
2011-09-28 23:42 PDT
,
James Kozianski
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Patch
(2.91 KB, patch)
2011-10-05 20:55 PDT
,
polina
no flags
Details
Formatted Diff
Diff
Patch
(3.23 KB, patch)
2011-10-06 14:36 PDT
,
polina
fishd
: review-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
James Kozianski
Comment 1
2011-09-28 23:42:19 PDT
Created
attachment 109125
[details]
Patch
WebKit Review Bot
Comment 2
2011-09-29 02:53:02 PDT
Comment on
attachment 109125
[details]
Patch
Attachment 109125
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/9880864
James Kozianski
Comment 3
2011-09-29 13:48:06 PDT
Please note, this patch depends on the Chromium-side patch here:
http://codereview.chromium.org/8065026
.
polina
Comment 4
2011-10-05 20:55:16 PDT
Created
attachment 109910
[details]
Patch
WebKit Review Bot
Comment 5
2011-10-05 20:57:35 PDT
Please wait for approval from
fishd@chromium.org
before submitting because this patch contains changes to the Chromium public API.
WebKit Review Bot
Comment 6
2011-10-05 21:01:58 PDT
Comment on
attachment 109910
[details]
Patch
Attachment 109910
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/9969123
Darin Fisher (:fishd, Google)
Comment 7
2011-10-05 21:07:54 PDT
Comment on
attachment 109910
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=109910&action=review
> Source/WebKit/chromium/public/WebPlugin.h:86 > + virtual void onFullscreenChange() { }
nit: we normally use the convention of didSomeEvent or willDoSomeEvent instead of onEvent. that way the before/after relation is made clear. we already have WebViewClient::{enter,exit}FullscreenForNode. that is driven from ChromeClient::{enter,exit}FullscreenForNode. had you considered using that?
polina
Comment 8
2011-10-06 14:36:46 PDT
Created
attachment 110026
[details]
Patch
polina
Comment 9
2011-10-06 14:39:25 PDT
Comment on
attachment 110026
[details]
Patch Renamed onFullscreenChange to handleFullscreenChangeEvent. There are already did and willDo versions of fullscreen functions and their purpose is different - performing an action as opposed to notifying about it. Please let me know if the new name is appropriate.
polina
Comment 10
2011-10-06 14:43:24 PDT
Comment on
attachment 110026
[details]
Patch The existing implementation for entering/exiting fullscreen mode uses WebKit::ChromeClientImpl::{enter,exit}FullscreenForElement. WebKit::ChromeClientImpl::{enter,exit}FullscreenForNode is unused and calls UNIMPLEMENTED code in RenderView.
Darin Fisher (:fishd, Google)
Comment 11
2011-10-06 23:54:01 PDT
Comment on
attachment 110026
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=110026&action=review
> Source/WebKit/chromium/ChangeLog:63 > +>>>>>>> .
r96838
oops
> Source/WebKit/chromium/public/WebPlugin.h:86 > + virtual void handleFullscreenChangeEvent() { }
nit: didChangeFullscreenState would probably be more consistent with the way we name other notifications of state changes.
> Source/WebKit/chromium/src/WebPluginContainerImpl.cpp:194 > + m_webPlugin->handleFullscreenChangeEvent();
i'm still not sure that this is the best solution. can the page intercept this event and prevent its delivery to the WebPluginContainerImpl? if it did that, then perhaps we might miss a notification that we switched into fullscreen mode? could a page construct a fullscreenchange event and dispatch it manually to the plugin to confuse the plugin? this is why i was thinking that we should use the ChromeClient methods as a signal since those cannot be intercepted or faked.
Stephen Chenney
Comment 12
2013-04-12 07:00:25 PDT
https://code.google.com/p/chromium/issues/detail?id=230802
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug