Closed Bug 546012 Opened 14 years ago Closed 6 years ago

window.open() works on Windows XP tray icon menu but not on Mac OS X dock menu

Categories

(Mozilla Labs :: Prism, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mario.rasch, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; de-de) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Gecko/20100115 Firefox/3.6 Prism/1.0b3

Calling window.open() from the tray icon menu correctly opens a new window when using Prism 1.0b3 on Windows XP. Trying the same on Mac OS X 10.6.2 does not open a window. On both systems, clicking a button to open a new window works.

I use the a locally stored HTML file with following content:

<html>
    <head>
        <script language="javascript" type="text/javascript">
            function OnCommandNewWindowHandler(domEvent)
            {
                try
                {
                    window.open("http://prism.mozilla.com");
                }
                
                catch (e)
                {
                    alert(e);
                }
            }

            function OnWindowLoadHandler()
            {
                window.platform.icon().menu.addMenuItem("CommandNewWindow", "Open new window", OnCommandNewWindowHandler);
            }
        </script>
    </head>
    <body onload="javascript:OnWindowLoadHandler();">
        Prism Test
        <input type="button" value="Open window..." onclick="javascript:OnCommandNewWindowHandler();" />
    </body>
</html>

My webapp.ini looks like for Mac OS X (on Windows XP just the URI is different):

[Parameters]
id=prism.1.0b3.test@prism.app
name=Prism 1.0b3 Test
uri=file:///Users/mariorasch/Desktop/prismtest.htm
icon=webapp
status=false
location=false
sidebar=false
navigation=false
trayicon=true
include=prism.mozilla.com

Reproducible: Always

Steps to Reproduce:
Use the HTML file and webapp.ini from the details. Try clicking the button and the tray icon / dock menu item on Windows XP and Mac OS X.


Expected Results:  
Also on Mac OS X using the dock menu item should open a new window.
This worked on OS X 10.6 when I tried it. Do you see anything in the Error Console after it fails?
I tried again and observed the following:

when I use the Prism for Firefox 1.0b3 extension in a german Firefox (Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Gecko/20100115 Firefox/3.6) to create my web application, the behavior is as described.

But when I use the Prism 1.0b3 (with Mozilla 1.9.2) Mac standalone version, the window is opened correctly.
Prism isn't maintained anymore. Mass closing of the bugs.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.