Bug 181194 - object with object cause double kpart creation
Summary: object with object cause double kpart creation
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2009-01-18 17:30 UTC by Koos Vriezen
Modified: 2021-03-21 00:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Koos Vriezen 2009-01-18 17:30:33 UTC
Version:            (using Devel)
Installed from:    Compiled sources

On http://www.apple.com/trailers once can play a trailer by clicking one and then select a size preference. This shows a html popup with the following object:
       <OBJECT id="trailerMovie" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=7,3,0,0" width="320" height="152" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B">
            <PARAM value="http://movies.apple.com/movies/fox/wolverine/wolverine-tlra_h.320.mov?width=320&height=136" name="src">
            <OBJECT type="video/quicktime" data="http://movies.apple.com/movies/fox/wolverine/wolverine-tlra_h.320.mov?width=320&height=136" id="trailerMovieInner" name="trailerMovie" width="320" height="152">
                <PARAM value="true" name="controller">
                <PARAM value="false" name="showlogo">
                <PARAM value="true" name="cache">
                <PARAM value="#000000" name="bgcolor">
                <PARAM value="true" name="autostart">
                <PARAM value="true" name="saveembedtags">
                <PARAM value="true" name="postdomevents">
            </OBJECT>
            <PARAM value="true" name="controller">
            <PARAM value="false" name="showlogo">
            <PARAM value="true" name="cache">
            <PARAM value="#000000" name="bgcolor">
            <PARAM value="true" name="autostart">
            <PARAM value="true" name="saveembedtags">
            <PARAM value="true" name="postdomevents">
        </OBJECT>
which then causes two mediaplayer plugins on top of each other playing the same file (and hence causing echo effect and eating double bandwidth)
Comment 1 Maksim Orlovich 2009-01-18 18:15:28 UTC
Hi Koos. Are you sure it actually displays the second one, and not just creates the part? And as for loading, the question is when it shouldn't create both parts, because in this:

<object data="a.html" id="a">
    <object data="b.html" id="b">
    </object>
</object>
<script>
function test() {
    var a = document.getElementById("a");
    var b = document.getElementById("b");
    alert(a.contentDocument.documentElement.innerHTML);
    alert(b.contentDocument.documentElement.innerHTML);
}
</script>
<body onload="test()">

... Both documents are supposed to be loaded 
(woops, need to commit a fixed contentDocument for <object> though, as well as a parser bug with <head> needs tweaking, but that's besides the point)
Comment 2 Koos Vriezen 2009-01-18 20:30:01 UTC
I'm not sure about displaying the second, but w/ kmplayerpart I get two constructions and two openUrl calls. So it starts two mplayer processes.
Comment 3 Maksim Orlovich 2009-02-05 00:48:19 UTC
Well.. The point is if the objects were for html, we would have to create both parts, so I am not sure as to why that shouldn't be the case here.
Comment 4 Justin Zobel 2021-03-21 00:25:34 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.