[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1222) Mozilla Browser starts regedit ... under vista this will open 2 security-check-dialogs per eclipse-start

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Wed Jan 16 16:33:19 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1222?page=comments#action_12395400 ] 
            
Snjezana Peco commented on JBIDE-1222:
--------------------------------------

There is a solution for this issue.

JBoss Tools initializes XULRunner in the following way :

- calls the Mozilla.getGREPathWithProperties() method to initialize XULRunner path (this method calls getGREPathFromRegKey and "regedit" on Windows)

If  GRE_PATH property exists or XULRunner is initialized (using xulrunner --register-user/register-global) JBoss Tools would use this version of XULRunner
If GRE_PATH doesn't exist or XULRunner isn't initialized, JBoss Tools would use its own version of  XULRunner placed in the org.mozilla.xulrunner.* plugin.

Why does JBoss Tools try to use an external XULRunner ?
If JBoss Tools would use only its own XULRunner version, that would be good for two reasons :

1) this bug would be fixed
2) using different versions of XULRunner makes maintenance harder because the user can set an incompatible version.
For instance, the user has XULRunner 1.9 which isn't compatible with JBoss XULRunner and can cause problems that are difficult to track.

It is possible to add a preference like "Use system XULRunner" if it is necessary to allow the user to change the version of XULRunner.

Attached is a patch that fixes the issue (skips calling the Mozilla.getGREPathWithProperties() method).

JBoss 2.0.0 users can solve this issue by adding the following VM argument: -DGRE_PATH=<JBoss_homedir>/eclipse/plugins/org.mozilla.xulrunner.win32.win32.x86_1.8.1.3-20070904



> Mozilla Browser starts regedit ... under vista this will open 2 security-check-dialogs per eclipse-start
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-1222
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1222
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 2.0.0.Beta4, 2.0.0.CR1
>         Environment: vista 64 bit
> jdk 1.7
> eclipse 3.3.1
> jboss tools nightly build 12.10.2007
>            Reporter: Andreas Höhmann
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: patch.txt
>
>
> Every startup org.mozilla.xpcom.Mozilla  creates a temp. file and calls "regedit" .... have a look at "getGREPathFromRegKey".
> Under vista this action shows a "security warning dialog".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jbosstools-issues mailing list