RESOLVED FIXED 35565
Google Analytics triggers "blocked plugin" UI
https://bugs.webkit.org/show_bug.cgi?id=35565
Summary Google Analytics triggers "blocked plugin" UI
Adam Barth
Reported 2010-03-01 23:44:33 PST
Google Analytics triggers "blocked plugin" UI
Attachments
Patch (9.57 KB, patch)
2010-03-01 23:47 PST, Adam Barth
no flags
Patch (9.90 KB, patch)
2010-03-02 09:31 PST, Adam Barth
no flags
Adam Barth
Comment 1 2010-03-01 23:47:00 PST
Darin Fisher (:fishd, Google)
Comment 3 2010-03-02 00:27:36 PST
Comment on attachment 49784 [details] Patch Thanks for working on this! Just some minor issues: > +++ b/WebCore/loader/FrameLoader.cpp > + const bool allowed = m_client->allowPlugins(settings && settings->arePluginsEnabled()); nit: gratuitous const :) > +++ b/WebCore/loader/FrameLoader.h > @@ -82,6 +82,11 @@ class Widget; > struct FrameLoadRequest; > struct WindowFeatures; > > +enum ReasonForCallingAllowPlugins { > + AboutToInstantiatePlugin, > + NotAboutToInstantiatePlugin > +}; ^^^ maybe this should go in FrameLoaderTypes.h? > +++ b/WebCore/loader/MainResourceLoader.cpp ... > + if (!m_frame->loader()->allowPlugins(NowAboutToInstantiatePlugin)) NowAboutToInstantiatePlugin -> AboutToInstantiatePlugin, right? > +++ b/WebKit/chromium/public/WebFrameClient.h > + // Notifies the client that the frame would have instanitated a plug-in if plug-ins were enabled. instanitated -> instantiated
Adam Barth
Comment 4 2010-03-02 09:31:07 PST
Adam Barth
Comment 5 2010-03-02 09:32:50 PST
> nit: gratuitous const :) Removed. > ^^^ maybe this should go in FrameLoaderTypes.h? Done. > > +++ b/WebCore/loader/MainResourceLoader.cpp > ... > > + if (!m_frame->loader()->allowPlugins(NowAboutToInstantiatePlugin)) > > NowAboutToInstantiatePlugin -> AboutToInstantiatePlugin, right? "Now" is a typo. I think it's supposed to be "Not". > instanitated -> instantiated Fixed.
WebKit Commit Bot
Comment 6 2010-03-02 19:16:57 PST
Comment on attachment 49809 [details] Patch Clearing flags on attachment: 49809 Committed r55449: <http://trac.webkit.org/changeset/55449>
WebKit Commit Bot
Comment 7 2010-03-02 19:17:02 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.