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 217096 - Unpredictable result of run html file
Summary: Unpredictable result of run html file
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-20 11:36 UTC by Jiri Skrivanek
Modified: 2012-09-03 13:04 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 Jiri Skrivanek 2012-08-20 11:36:31 UTC
Running html file in HTML5 project has some random issues. Autorefresh doesn't work and embedded browser not always accurate.

To reproduce:

- create HTML 5 project
- add new html file
- right-click html node in projects view and choose Run File
- provide JavaFX runtime
- right-click Web Browser tab and choose Float
- modify html in editor and save it
- broser is NOT refreshed
- create HTML 5 project
- add new html file
- sometimes is newly created html file opened in editor area, sometimes in floating Web Browser window
- right-click html node in projects view and choose Run File
- sometimes is new Web Browser panel opened in editor are, sometimes in floating Web Browser window
- sometimes is displayed content of newhtml.html from previous projects
- repeat "create project/create html/run/modify" several times

Product Version: NetBeans IDE Dev (Build EaselCSS-515-on-20120820)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 David Konecny 2012-08-21 00:21:57 UTC
There were two problems I fixed:

* multiple projects would get it own embedded browser tab. This is fixed now and there is always a single embedded browser tab used by all HTML5 projects. 3d2162d5b62c

* internal webserver got mixed up in cases like this: Project1 with web context root "/Project1" and Project11 with web context root "/Project11". In such case web server tried to server Project11 files from Project1. Fixed as 169c952c972f

If there are some remaining issues then please reopen. If window system is concerned (eg. "sometimes is new Web Browser panel opened in editor are, sometimes in floating Web Browser window") then assign issues directly to Standa Aubrecht from window system.
Comment 2 Jiri Skrivanek 2012-08-21 07:46:45 UTC
It is better now when Web Browser is singleton but it is still little bit tricky. I filed bugs 217125, 217126, 217129.
Comment 3 Quality Engineering 2012-09-03 13:04:38 UTC
Integrated into 'main-golden', will be available in build *201209031048* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/169c952c972f
User: David Konecny <dkonecny@netbeans.org>
Log: #217096 - Unpredictable result of run html file