[Webkit-unassigned] [Bug 27775] New: Hiding a <div> by using CSS display:None causes a plug-in within the div to be unloaded losing state.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 28 13:16:16 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27775

           Summary: Hiding a <div> by using CSS display:None causes a
                    plug-in within the div to be unloaded losing state.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Major
          Priority: P1
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: babt at us.ibm.com


Summary: 
Hiding a <div> by using CSS display:None causes a plug-in within the div to be
unloaded losing state.

Steps to Reproduce:
1.  Create an html page containing a <div> with a Quicktime plug-in <object>
tag inside pointing to a local movie that starts playing when the page is
loaded.
2.  Add two buttons, "Show" and "Hide".
3.  Add JS method for "Show" that shows the div by resetting the
div.style.display property to "".
4.  Add JS method for "Hide" that hides the div setting the div.style.display
property to "none".
5.  Save the html to an Apache WebServer.
6.  Load the page in Safari.
7.  Let movie run a few seconds and pause using the QT control.
8.  Click the "Hide" button.
9.  Click the "Show" button.

Expected Results:
At the end of step 9 above, expect to be able to resume the movie at the point
where it was paused before hiding the div.

Actual Results:
Movie starts from the beginning.

Regression:
Does not seem to be a regression.  Can reproduce on latest Safari 3 as well
Safari 4.

Notes:
It's not just the Quicktime plug-in that gets unloaded under these
circumstances, it's any plug-in.

Apple Bug:

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list