Closed Bug 758227 Opened 13 years ago Closed 12 years ago

NPAPI plugin stream decomtamination: nsIPluginStreamInfo

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla16

People

(Reporter: jaas, Assigned: jaas)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch fix v1.0 (obsolete) — 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 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+
Attached patch fix v1.1Splinter Review
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
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: