WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
27940
Build fix if Netscape plugin support is turned off
https://bugs.webkit.org/show_bug.cgi?id=27940
Summary
Build fix if Netscape plugin support is turned off
Laszlo Gombos
Reported
2009-08-03 07:11:36 PDT
After
r46649
and
r46697
turning off Netscape plugin support makes the build fail.
Attachments
proposed patch.
(1.67 KB, patch)
2009-08-03 07:27 PDT
,
Laszlo Gombos
eric
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Laszlo Gombos
Comment 1
2009-08-03 07:27:21 PDT
Created
attachment 33974
[details]
proposed patch. PluginView.cpp - Do not call NPN_MemFree if NPAPI is disabled PluginViewNone.cpp - Add empty stub for platformStart()
Eric Seidel (no email)
Comment 2
2009-08-03 09:30:34 PDT
Comment on
attachment 33974
[details]
proposed patch. LGTM.
Kenneth Rohde Christiansen
Comment 3
2009-08-03 09:58:11 PDT
The patch contains trailing spaces. I will fix it when I land it
Kenneth Rohde Christiansen
Comment 4
2009-08-03 10:01:26 PDT
Landed in 46719.
Darin Adler
Comment 5
2009-08-03 10:02:39 PDT
Why do the functions in PluginViewNone.cpp have notImplemented() in them? I'd think they could just be empty function. The notImplemented() function is intended to alert the person working on the port that a particular non-implemented stub was hit. But in the case of "none" we don't ever plan to implement these. They should either be empty, or have ASSERT_NOT_REACHED() in them, or not exist at all, depending on our needs.
Kenneth Rohde Christiansen
Comment 6
2009-08-03 10:14:20 PDT
I think the reasoning was that ports use PluginViewNone when they still have not added support for plugins and thus, will run into a not implemented. If that is not the purpose of PluginViewNone, this ofcourse should be fixed.
Darin Adler
Comment 7
2009-08-03 10:16:27 PDT
(In reply to
comment #6
)
> I think the reasoning was that ports use PluginViewNone when they still have > not added support for plugins and thus, will run into a not implemented. If > that is not the purpose of PluginViewNone, this of course should be fixed.
OK. That makes sense. On the other hand, I could imagine a port that doesn't want plug-in support at all.
Kenneth Rohde Christiansen
Comment 8
2009-08-03 10:19:09 PDT
In that case I believe they should be able to disable the plugin support via the settings API.
Laszlo Gombos
Comment 9
2009-08-03 10:21:54 PDT
(In reply to
comment #7
)
> (In reply to
comment #6
) > > I think the reasoning was that ports use PluginViewNone when they still have > > not added support for plugins and thus, will run into a not implemented. If > > that is not the purpose of PluginViewNone, this of course should be fixed. > > OK. That makes sense. On the other hand, I could imagine a port that doesn't > want plug-in support at all.
I think Darin has a valid point. i just used notImplemented() to stay consistent with the rest of the file. PluginViewNone.cpp was initially developed for the wx port only and I proposed a patch to promote it to all ports to enable turning off NPAPI support. I think notImplemented should go. I will create a patch.
Kenneth Rohde Christiansen
Comment 10
2009-08-03 10:32:51 PDT
If that is the case, I agree with you :-) I talked with Kevin Ollivier on irc and he agrees with you Laszlo
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