iframe onLoad method not invoked when receiving pdf file as stream




13 years ago
9 years ago


(Reporter: polacofede, Unassigned)


1.5.0.x Branch
Windows XP

Firefox Tracking Flags

(Not tracked)




13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv: Gecko/20060508 Firefox/
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv: Gecko/20060508 Firefox/

the onload method of an iframe is not invoked when i change the href to address a url that returns me a dinamically generated pdf. The pdf plugin opens and shows the file correctly but the method onLoad is not invoqued.
That problem doesn´t happens if i recieve a text file as stream I mean the text is displayed and the onLoad methos is invoked.
There is some workaround to retrieve when the streamed pdf has finished loading?

Reproducible: Always

Steps to Reproduce:
1.change the iframe href with javascript: frames[ frameName ].location.href= anURL
2.the URL must return a dinamically generated pdf.
Actual Results:  
Firefox opened the acrobat plug in inside the iframe and showed the streamed pdf file correctly but didn´t invoked the onLoad method of the iframe

Expected Results:  
i expected that the onload method of the iframe was invoked too, as happens when recieving streamed normal textfiles.

Comment 1

13 years ago
i doubt there is a way to do that.

the behaviour you're experiencing can't be called a bug.

pdf's arent rendered by firefox but by a plugin (adobe reader for example but could be anything else). opposed to opening a plain textfile which is nothing else than a markupless html file rendered with some kind of default stylesheet.

to make FF aware of the finished pdf you would need to get that info from the corresponding plugin.
Severity: major → normal

Comment 2

13 years ago
What about when you don't have a PDF browser plugin?  Doesn't the browser then need to pass the cached PDF file to the external PDF viewer (official Adobe viewer, Foxit Reader, Xpdf, etc.)?

If the browser must cache it completely first, then maybe you've got an opening to invoke something, and then pass the cached file to the external viewer or then to a plugin.
Version: unspecified → 1.5.0.x Branch
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
No reply, INCOMPLETE. Please retest with Firefox 3.6.x or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Last Resolved: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.