Closed
Bug 106253
Opened 24 years ago
Closed 23 years ago
Plugins aren't adding themselves to load groups
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.0.1
People
(Reporter: jud, Assigned: rpotts)
References
Details
(Keywords: topembed+, Whiteboard: [ADT3 RTM][PATCH ON TRUNK][PL RTM])
Attachments
(6 files, 2 obsolete files)
This causes nsIWebProgressListener "document done" notifications to fire before
a plugin is done (which is wrong; affects progress bar among other things).
Here's the offending code. I'm hoping Rick has the best ideas on how to get the
"right" load group in there :-)
http://lxr.mozilla.org/seamonkey/source/modules/plugin/base/src/nsPluginHostImpl.cpp#5246
| Assignee | ||
Comment 1•24 years ago
|
||
my suggestion is to get the loadgroup from the document.
so, right after getting the document URL, i'd get the load group so...
something like this:
doc->GetDocumentLoadGroup(getter_AddRefs(loadGroup));
and then pass 'loadgroup' into NS_OpenURI(...).
-- rick
| Assignee | ||
Comment 2•24 years ago
|
||
| Assignee | ||
Comment 3•24 years ago
|
||
| Assignee | ||
Updated•24 years ago
|
Attachment #54688 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•24 years ago
|
||
It is important to remember that this patch will defer the firing of the
javascript onLoad event until *after* the URL referenced in the plugin tag is
completely loaded.
if this URL is big (ie. a video stream) then the onLoad event will not fire for
a while :-)
I believe that this is the correct behavior... but we should verify that this
doesn't break backward compatability with NS4 and IE 5(-)
-- rick
| Reporter | ||
Comment 5•24 years ago
|
||
av, who can best verify this?
Probably me or peterl. Can you advise on how to see the initial problem best?
Comment 8•24 years ago
|
||
I tried this patch the other day as I thought it might fix bug 105780 which was
is a problem on http://www.the-xfiles.com where the status bar will continually
show the plugin loading.
Looks good, but there's one missing // XXX: Null LoadGroup? in
nsPluginStreamListenerPeer::SetUpCache(). I don't even recall what the purpose
of this method is or if it's just bit rotted away. Andrei, do you?
| Reporter | ||
Comment 9•24 years ago
|
||
we're close here. av, what about SetUpCache()?
Target Milestone: --- → mozilla0.9.9
| Reporter | ||
Updated•24 years ago
|
Comment 10•24 years ago
|
||
Since this was topembed+, I've nominated it nsbeta1+ because of interest in bug
106411 .
Keywords: nsbeta1+
Comment 12•24 years ago
|
||
*** Bug 115998 has been marked as a duplicate of this bug. ***
Comment 13•24 years ago
|
||
when will this patch included in the nightly build ????
| Assignee | ||
Comment 14•24 years ago
|
||
I guess my only question is whether this is the 'right thing to do' ??
In the case of a stream (or very large file) given to the plugin, the OnLoad
event will not fire until AFTER the plugin has consumed all of the data...
Is this the 4.x behavior? If so, then the patch does the 'right thing'...
-- rick
Comment 15•24 years ago
|
||
when i look at my java example and the handling with IExplorer (Sorry, i know,
it's not a reference but, but the platform intranets will be developed on :-(((
) then it's correct, that onInit will be fired when the applet is intialized....
there exist a lot of applications depend on onInit will be fired when the plugin
is initialized.
i don't know about shockwave and other plugins, but when a onInit handler
reference them and they arn't initialized, there are the same problems with
java... ( problems with javascript, that the method is not registered).
if a site has a plugin referenced on the page, they need it for working with the
site...
there exists a lot of live-connect bugs.. this will solve some of them....
Comment 16•24 years ago
|
||
Attachment #54734 -
Attachment is obsolete: true
Comment 17•24 years ago
|
||
Comment 18•24 years ago
|
||
This testcase uses the basic plugin in the previous attachment. It points to a
src that will take a long time to download (lxr of nsCSSFrameConstructor.cpp)
and fires an alert in the body's onload handler.
The good news is that it looks like 4.x has the same behavior of firing the
onLoad handler after the initial stream is done. I have not tested the other
ways to create streams.
However, I'm still getting the "Starting plugin..." message stuck in the status
bar. Is this supposed to fix that too?
Comment 19•24 years ago
|
||
Comment 20•24 years ago
|
||
in this textfile you find 3 files, 2 html and 1 java... you get javascript
errors when fireing onLoad before intializing.
Comment 21•24 years ago
|
||
adding adt1 to status whiteboard as per discussion with beppe.
Whiteboard: [ADT1]
Comment 22•24 years ago
|
||
Changing to ADT3 per ADT triage. This sounds more like an annoyance, than any
real damage to the user. Can someone pls explain why this is important?
Summary: Plugins aren't adding themselves to load groups. → Plugins aren't adding themselves to load groups
Whiteboard: [ADT1] → [ADT3]
Comment 23•24 years ago
|
||
because a lot of web sites with plugins need the proper handling of the
onLoad tag with for example java....
perhabs not in the internet zone, but in the intranet zone you will find
a lot of examples, working with ie and java, but not with mozilla and java...
because onLoad will not wait until java is intialized...
so i think, its an important thing...
Comment 24•24 years ago
|
||
I'm still not sure if this bug is related to 108601 (we experience
java/javascript-onload-problems, too). However severity of "our" onload-problem
is set to critical. Thus I agree with Oliver that this is not an annoyance but
a bug which has to be fixed.
| Assignee | ||
Comment 25•24 years ago
|
||
personally, i think this is an important bug to fix...
i beleive that another benifit of this patch is to allow plugin requests to be
cancelled when a page transition occurs... Currently (in Nav 6.21) if a plugin
is in the process of downloading a LARGE document, i believe the download
continues even *after* the page load has been cancelled :-(
-- rick
Comment 26•24 years ago
|
||
You've got my r=peterl on this approach. I think attachment 74092 [details] [diff] [review] does the right
thing. This patch does not appear to fix bug 106411.
Comment 27•24 years ago
|
||
will this patch included to version 1 ??? target milestone is release 1...
Comment 28•24 years ago
|
||
Comment on attachment 74092 [details] [diff] [review]
same patch updated to the trunk tip
sr=jst
Attachment #74092 -
Flags: superreview+
| Reporter | ||
Comment 29•24 years ago
|
||
Comment on attachment 74092 [details] [diff] [review]
same patch updated to the trunk tip
carrying over peter's r=, and approving for 1.0 checkin.
Attachment #74092 -
Flags: review+
Attachment #74092 -
Flags: approval+
Comment 30•24 years ago
|
||
Since this fix delays the call to the onLoad handler until the plugin stream is
complete, is this going to effect the results of the page-load performance tests?
Comment 32•24 years ago
|
||
to comment 30...
>Since this fix delays the call to the onLoad handler until the plugin stream is
>complete, is this going to effect the results of the page-load performance tests?
perhabs it will have longer to give the control back to the user.. but for the
end-user, the correct display of the page is more important i think...
Comment 33•24 years ago
|
||
Pls land this on the trunk to bake for a few days, have QA look, and make sure
there are no regressions introduced, then come back to us for approval - ADT
Comment 34•24 years ago
|
||
Removing adt1.0.0. Pls renominate once it has been on the trunk a couple days,
and been tested.
Keywords: adt1.0.0
| Assignee | ||
Comment 35•24 years ago
|
||
the patch is checked into the trunk.
Comment 36•24 years ago
|
||
short question...
why you don't add also java plugins to the load groups ???
Comment 37•24 years ago
|
||
Shrir, can you test this fix and update the bug with your results. Thx.
Comment 38•24 years ago
|
||
bug 106411 hinders me from verifying this bug 'visually' if I understand this
bug correctly. If there is any other way that I can check this, or someone can
help in verifying this, I will appreciate it. Thanks !
Comment 39•24 years ago
|
||
Shrir, you can see this fix by having an event fired in your page's onLoad
handler. Before this fix, onLoad would fire BEFORE the URL pointed to in the
EMBED's SRC attrribute (or OBJECT's DATA) was completely downloaded. Now, with
the fix, onLoad won't be fired until AFTER the plugin's "data" is done. We
should do like 4.x now.
Comment 40•24 years ago
|
||
Confirmed that this works now. onLoad now only fires only after the plugin has
loaded. verified fixed on trunk builds 0416. Attached two tescases work like
Peter mentioned.
Comment 41•24 years ago
|
||
adt1.0.0+ (on ADTs behalf) approval for checkin to 1.0 branch. Pls check this
into the 1.0 branch and trunk today. After, this has landed on the branch, pls
add the fixed1.0.0 keyword.
| Assignee | ||
Comment 42•24 years ago
|
||
patch checked into the MOZILLA_1_0_0_BRANCH.
marking fixed.
Comment 43•24 years ago
|
||
Re-opening this bug and backing out the patch from Mozilla 1.0 branch.
This was causing a crash in RealPlugin when playing Real videos as described below:
1. Page has links to several Real videos and an embedded real plugin to display
the videos.
2. Click on a link to play a video - as the content begins to load, click on
another link to play a different video.
4. Crash.
Requesting driver approval to back this out of mozilla 1.0 branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
a=dbaron to back out of 1.0 branch
Comment 45•24 years ago
|
||
Patch at http://bugzilla.mozilla.org/attachment.cgi?id=74092&action=view has
been backed out from the Mozilla 1.0 branch.
This bug is now reopened
Comment 46•24 years ago
|
||
Note: This was backed out of the 1.0 branch because of this Bugscape crasher:
http://bugscape.mcom.com/show_bug.cgi?id=14295
Now the trunk is different than the 1.0 branch w.r.t when the document's onLoad
handler fires with plugins on a page.
Comment 47•24 years ago
|
||
removing 'fixed 1.0.0' keyword since this was backed out of the branch.
Keywords: fixed1.0.0
Comment 48•24 years ago
|
||
Removing adt1.0.0+, becasue this has been reopened, and backed-out of 1.0.
Updated•24 years ago
|
Whiteboard: [ADT3] → [ADT3 RTM]
Target Milestone: mozilla1.0 → mozilla1.0.1
Comment 49•24 years ago
|
||
*** Bug 121641 has been marked as a duplicate of this bug. ***
Comment 50•23 years ago
|
||
-->bringing bug status into sync with reality, the patch is already on the
trunk. See the bugscape bug for the problem of Real crashing when the load group
request is canceled.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•