[Webkit-unassigned] [Bug 22356] New: background image doesn't show in a popup

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 19 09:14:57 PST 2008


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

           Summary: background image doesn't show in a popup
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Critical
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: t.chomiuk at googlemail.com


file1: dummy.html (empty file)
file2: image.png (any image)
file3: test.html
<html>
<head>
        <script type="text/javascript">
        var win;
        var image = 'image.png';

        function set_popup_background()
        {
                win.document.body.style.backgroundImage = "url(\'" + image +
"\')";

                return true;
        }

        function popup()
        {       
                win = window.open('dummy.html', 'test', 'width=250, height=200,
toolbar=no, resizable=no, scrollbars=no');

                var img = new Image();
                img.src = image;
                img.onload = set_popup_background;
        }
        </script>
</head>
<body>  
        <a href="#" onClick="javascript: popup();">popup</a>
</body>
</html>

---
To reproduce:
1) Put all the files in the same folder.
2) Open test.html with any webkit browser
3) Click on the 'popup' link (popup window opens with the background picture
set just fine)
4) Close the popup box
5) Click on the same link (popup window opens but no background set)

I've tested it on Opera(linux) and Safari(win XP). FF and IE browsers work
fine.


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



More information about the webkit-unassigned mailing list