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 217126 - Html file opened in floating web browser mode
Summary: Html file opened in floating web browser mode
Status: VERIFIED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-21 07:19 UTC by Jiri Skrivanek
Modified: 2012-10-31 09:59 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
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-21 07:19:28 UTC
Newly created html file is opened in web browser area if it is floating. To reproduce:

- create HTML 5 project
- 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 (bug 217125)
- click to browser window and it refreshes
- right-click Site Root and add new html file
- it is opened as a new tab next to Web Browser in floating window

Product Version: NetBeans IDE Dev (Build EaselCSS-520-on-20120821)
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 Stanislav Aubrecht 2012-08-21 11:15:32 UTC
I went through the code and this is actually the expected behavior. New document windows open in the same docking spot as the most recently active document (could be a floating window as well). Web browser is just document window so other documents will open next to it.
Changing this behavior for the browser would change it for other document windows (editors) as well. I don't think we want to do that...
Comment 2 Jiri Skrivanek 2012-08-21 13:54:52 UTC
OK, I didn't realize that Web Browser is just like any other document.
Comment 3 David Konecny 2012-08-22 21:02:56 UTC
Based on offline discussion:

John said: This is definitely *not* the expected behavior. Yes, the web browser should be able to live as a tab inside the Source Editor, but once I split it out, either split in the Source Editor or floated as a separate window from the IDE, then it should act as its own area (no longer an editor tab) and we should never open another source file in the same area as the web browser. 

Liza: Among the changes that we made to the new common window system for both JDeveloper and NetBeans, weadded the ability to mix and match editors and other windows.   So, for example, I can dock a Log window or a Navigator with my source, or dock my source file with the Navigator. The windows pick up the behavior of their location:  either the editor region or one of the other regions (there are differences in supported behavior based on what role the window has currently assumed).

I agree too that browser should be distinctive component from source editors.
Comment 4 Stanislav Aubrecht 2012-08-23 08:36:18 UTC
That's all very nice but it's not how our window system works:)
I need to find a way how to hack it...
Comment 5 Stanislav Aubrecht 2012-10-19 10:16:18 UTC
At the moment the embedded browser window (the one with developer toolbar) is docked as non-document window below the editor area. So when the browser is undocked no new document will open next to it.