[Webkit-unassigned] [Bug 33180] [Qt] Support private browsing mode in plugins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 27 14:54:43 PST 2010


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





--- Comment #7 from Simon Hausmann <hausmann at webkit.org>  2010-01-27 14:54:40 PST ---
(In reply to comment #5)
> > 
> > > +Tests that NPNVprivateModeBool is supported by the WebKit plugin view. This test is for WebKit platforms that wish to support NPNVprivateModeBool but do not wish to implement the preference change listener required to support a cachedPrivateBrowsingEnabled property similar to the one provided by Safari and tested for in private-browsing-mode.html
> > 
> > I don't understand this part. It seems trivial to implement in
> > DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp. Why not do it
> > there instead of this extra test?
> > 
> > In fact, it seems like a bug right now that the cachedPrivateBrowsingEnabled
> > variable isn't initialized in that file, where as it is initialized in
> > TestNetscapePlugIn.subproj/main.cpp. Could that be why the test was failing for
> > you?
> 
> The mac port listens for changes to the users webkit preferences and halts any
> netscape plugins currently running if pluginsEnabled has changed to false.
> Setting the 'cachedPrivateBrowsingMode' value rides on the coat-tails of this
> feature - which Qt doesn't have, and possibly should. I don't think it's
> trivial to implement though. So will leave it out of this patch if that's ok?

I think I understand now, but I don't see that the mac port stops the plugin.
Instead looking at - (void)privateBrowsingModeDidChange in
WebNetscapePluginView.mm I can see that the private browsing mode value is
_propagated_ to the plugin (setvalue), and _that_ is what the other part of the
private-browsing-mode.html tests.

Your patch implements the part that allows the plugin to query the browser if
private browsing is enabled or not, and your added test verifies that.

The Mac port also implements _notifying_ the plugin if the private browsing
mode changes, which appears to be an important feature to have.

I agree with you that this is okay to implement in a second patch. I guess once
the setting in WebCore changes, the page should iterate through its plugins and
notify them via setvalue calls.

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