Closed
Bug 758227
Opened 13 years ago
Closed 12 years ago
NPAPI plugin stream decomtamination: nsIPluginStreamInfo
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla16
People
(Reporter: jaas, Assigned: jaas)
References
Details
Attachments
(1 file, 1 obsolete file)
30.87 KB,
patch
|
Details | Diff | Splinter Review |
nsIPluginStreamInfo is unnecessary and its implementation contributes quite a bit to the complexity of our stream handling.
This patch depends on the fix in bug 758224 - without it this patch will cause a double-free crash.
Attachment #626814 -
Flags: review?(benjamin)
Comment 1•12 years ago
|
||
Comment on attachment 626814 [details] [diff] [review]
fix v1.0
>diff --git a/dom/plugins/base/nsNPAPIPlugin.cpp b/dom/plugins/base/nsNPAPIPlugin.cpp
>- nsPluginStreamListenerPeer* peer = listener->GetStreamListenerPeer();
>- if (!peer)
>+ nsIStreamListener* streamListener = static_cast<nsIStreamListener*>(listener->GetStreamListenerPeer());
>+ if (!streamListener) {
> return NPERR_GENERIC_ERROR;
Why is the static_cast necessary? It looks like it should be an automatic downcast and is a bit confusing. Please remove.
>-
>- *aRetainedPeer = (nsISupports*) peer;
>+ }
>+
>+ *aRetainedPeer = static_cast<nsISupports*>(streamListener);
Also unnecessary here.
Attachment #626814 -
Flags: review?(benjamin) → review+
Try server run:
https://tbpl.mozilla.org/?tree=Try&rev=1a64bb0c5665
Attachment #626814 -
Attachment is obsolete: true
Problems with Android try server runs, here is an Android-only retry:
https://tbpl.mozilla.org/?tree=Try&rev=49f978ba6959
pushed to mozilla-inbound:
http://hg.mozilla.org/integration/mozilla-inbound/rev/8dd2e853993e
Comment 5•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•