WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
62981
[X11] Do not call NPP_SetWindow with a null window handle on destroy
https://bugs.webkit.org/show_bug.cgi?id=62981
Summary
[X11] Do not call NPP_SetWindow with a null window handle on destroy
Carlos Garcia Campos
Reported
2011-06-20 06:10:41 PDT
Some plugins crash or hang on NPP_Destroy when NPP_SetWindow is called with a null window handle.
Attachments
Patch
(7.30 KB, patch)
2011-06-20 06:17 PDT
,
Carlos Garcia Campos
no flags
Details
Formatted Diff
Diff
New patch
(1.13 KB, patch)
2011-06-24 09:14 PDT
,
Carlos Garcia Campos
mrobinson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2011-06-20 06:17:48 PDT
Created
attachment 97791
[details]
Patch This patch depends on
bug #62899
, with current code it's not possible to call getPluginInfo() fom determineQuirks() because the wrong netspace browser funcs are used and it crashes.
Anders Carlsson
Comment 2
2011-06-20 11:11:00 PDT
Comment on
attachment 97791
[details]
Patch I think the Chrome X11 plug-in implementation never calls NPP_SetWindow with a null window handle on destroy, maybe we don't need to do that either?
Carlos Garcia Campos
Comment 3
2011-06-20 23:42:17 PDT
Sure, I added the quirk to match webkit1, but if we don't really need it, not calling NPP_SetWindow on destroy would be much easier.
Carlos Garcia Campos
Comment 4
2011-06-24 02:04:15 PDT
(In reply to
comment #2
)
> (From update of
attachment 97791
[details]
) > I think the Chrome X11 plug-in implementation never calls NPP_SetWindow with a null window handle on destroy, maybe we don't need to do that either?
The windows port uses it also in webkit1 for the VLC plugin, I'm not sure it's still needed, though.
Carlos Garcia Campos
Comment 5
2011-06-24 09:14:28 PDT
Created
attachment 98499
[details]
New patch
Carlos Garcia Campos
Comment 6
2011-06-24 09:27:16 PDT
Committed
r89678
: <
http://trac.webkit.org/changeset/89678
>
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