RESOLVED FIXED 33974
[chromium] Add allowPlugins callback to allow per-site enabling of plugins
https://bugs.webkit.org/show_bug.cgi?id=33974
Summary [chromium] Add allowPlugins callback to allow per-site enabling of plugins
Adam Barth
Reported 2010-01-21 15:05:26 PST
[chromium] Add allowPlugins callback to allow per-site enabling of plugins
Attachments
Patch (4.72 KB, patch)
2010-01-21 15:06 PST, Adam Barth
no flags
Adam Barth
Comment 1 2010-01-21 15:06:50 PST
Eric Seidel (no email)
Comment 2 2010-01-21 16:44:22 PST
Comment on attachment 47151 [details] Patch Looks sane. Sad we don't have testing for this sort of thing.
Adam Barth
Comment 3 2010-01-21 17:06:52 PST
Fishd, you might want to look at this patch because it touches the WebKit API.
Sam Weinig
Comment 4 2010-01-21 17:56:31 PST
Adam, why should this be exempt from the "don't change FrameLoader without a test" rule?
WebKit Commit Bot
Comment 5 2010-01-21 23:11:30 PST
Comment on attachment 47151 [details] Patch Clearing flags on attachment: 47151 Committed r53681: <http://trac.webkit.org/changeset/53681>
WebKit Commit Bot
Comment 6 2010-01-21 23:11:37 PST
All reviewed patches have been landed. Closing bug.
Darin Fisher (:fishd, Google)
Comment 7 2010-01-21 23:31:49 PST
(In reply to comment #3) > Fishd, you might want to look at this patch because it touches the WebKit API. LGTM
Darin Fisher (:fishd, Google)
Comment 8 2010-01-21 23:33:50 PST
Comment on attachment 47151 [details] Patch > +++ b/WebKit/chromium/public/WebFrameClient.h > @@ -80,6 +80,8 @@ public: > // This frame is about to be closed. > virtual void willClose(WebFrame*) { } > > + // Controls whether plugins are allowed for this frame. > + virtual bool allowPlugins(WebFrame*, bool enabledPerSettings) { return enabledPerSettings; } > > // Load commands ------------------------------------------------------- nit: it would have been nice to preserve the two new lines above the comment separator.
Adam Barth
Comment 9 2010-01-21 23:49:17 PST
> nit: it would have been nice to preserve the two new lines above the comment > separator. Fixenated. http://trac.webkit.org/changeset/53683
Adam Barth
Comment 10 2010-01-21 23:50:51 PST
> Adam, why should this be exempt from the "don't change FrameLoader without a > test" rule? Good question! It shouldn't be. Thanks for ruining my weekend. :)
Adam Barth
Comment 11 2010-01-21 23:53:55 PST
Note You need to log in before you can comment on or make changes to this bug.