This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 177395 - [options]'default system browser' used instead of the selected one
Summary: [options]'default system browser' used instead of the selected one
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-23 02:04 UTC by matusdekanek
Modified: 2015-07-15 09:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matusdekanek 2009-11-23 02:04:29 UTC
Product Version: NetBeans IDE Dev (Build 200911220201)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

-I have Opera as my default browser. I have Firefox and IE on my system as well.
-open options dialog
-select 'Internet Explorer' as the browser used by IDE
-open some web project and run it 
-the web project page is open in the 'default system browser' (in my case the Opera) instead of the IE.
Comment 1 Jiri Skrivanek 2009-11-23 05:44:32 UTC
It works for me. Please, show me it on your computer if it happens regularly.

Product Version: NetBeans IDE Dev (Build 200911220201)
Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01
System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)
Comment 2 Jiri Skrivanek 2009-11-30 02:26:07 UTC
It is reproducible on reporter's computer. If Internet explorer is already opened, it works as expected.
I debugged it and I see the problem in NbDdeBrowserImpl. The case:

-select 'Internet Explorer' in Tools/Options
- check iexplore.exe is not running
- open an html page in IDE
- the call below returns byte array with values [26,0,0,0,-1] or [25,0,0,0,-1] but it should throw an exception. Then browser would be started. In our case browser is not started because not empty array means browser is already started (if I understand the code).

task.browser.reqDdeMessage(task.browser.realDDEServer(),WWW_ACTIVATE,"-1,0x0",task.browser.getActivateTimeout());
Comment 3 Jan Stola 2015-07-15 09:48:27 UTC
I am sorry, I am not able to reproduce this issue nor fix this issue without a reproducible test-case (despite very good evaluation done by jskrivanek many years ago).