Closed Bug 157554 Opened 22 years ago Closed 12 years ago

Failure to instantiate plugin in nsPluginStreamListenerPeer::OnStartRequest does not cause us to layout alternate renderings

Categories

(Core Graveyard :: Plug-ins, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla17

People

(Reporter: peterlubczynski-bugs, Assigned: johns)

References

Details

(Whiteboard: [PL2:P2])

Sometimes plugin code needs to open the stream of an OBJECT (or EMBED) tag in order to find out the mime-type to use. We do not handle failure here gracefully. For example: <object data="missing.file" width=100 height=100> Alternate Rendering </object> This fails becuase layout never gets a call to CantRenderReplaceElement in OnStartRequest. Another similar case that fails is when we are only able to determine the mime-type from the HTTP header and it's not a handled by a plugin, we never give layout a chance to see if it can handle it. For example: <object data="http://www.mozilla.org/ width=100 height=100></object> This fails because a new child nsFrameFrame or nsImageFrame are not created in OnStartRequest. I'm investigating on ways to fix this. Calling back into layout for replacement probably isn't a problem. However, we need to ensure we do not make two requests when trafering control to the IFRAME or IMG tag code.
Blocks: 96579
Since this is sort of serious and I have sort of an idea of how to fix it now, lets try to get this done in the near-term....of course if plugins move to content in bug 90268, this bug would be a good learning experience :)
Priority: -- → P2
Whiteboard: [PL2:NA]
Target Milestone: --- → mozilla1.2beta
Severity: major → normal
Target Milestone: mozilla1.2beta → mozilla1.0.2
Blocks: 96976
*** Bug 156199 has been marked as a duplicate of this bug. ***
*** Bug 157150 has been marked as a duplicate of this bug. ***
Whiteboard: [PL2:NA] → [PL2:P2]
Target Milestone: mozilla1.0.2 → mozilla1.2alpha
Blocks: 108946
Blocks: 109082
Target Milestone: mozilla1.2alpha → mozilla1.3alpha
1.3 beta
Target Milestone: mozilla1.3alpha → mozilla1.3beta
Blocks: 185412
No longer blocks: 185412
*** Bug 175465 has been marked as a duplicate of this bug. ***
Blocks: 195030
Blocks: 230471
QA Contact: shrir → plugins
No longer blocks: 96976
bug 745030 should either fix this or make it a much simpler fix
Assignee: peterl-bugs → jschoenick
Status: NEW → ASSIGNED
Depends on: 745030
Target Milestone: mozilla1.3beta → ---
No longer blocks: 195030
This was fully fixed by 745030, although most cases of it had been fixed previously.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → INCOMPLETE
Target Milestone: --- → mozilla17
Resolution: INCOMPLETE → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.