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.
latest dev build from 1,2 days ago -- click view on html file -- get to windows opening up in chrome -- never happened before.
Standa, any ideas?
what did you select in tools/options/web browser? which version of java do you have?
i imported from prev netbeans; think nb67 dir. i am using default system browser -- is chrome. did not set explicitly. worked fine with nbdev build a few days ago -- version 20091116, this version 20091122; never had this issue before same jdk for months -- jdk1.6.0_16 64bit default;
This happens on Windows 7 x32 too, with both Firefox and Internet Explorer. Right click on a HTML file, then click view, 2 windows (or 2 tabs) get opened. Still unfixed on 7.1.
*** Bug 207634 has been marked as a duplicate of this bug. ***
*** Bug 202393 has been marked as a duplicate of this bug. ***
*** Bug 221921 has been marked as a duplicate of this bug. ***
Standa, could you have a look in to this please - Jirka Skrivanek knows how to reproduce it. It looks like this has been happening for a while. I wonder whether it is extbrowser's problem or something in View action on HTML? Thanks.
I don't think this is a browser's issue since I have reproduced the behavior at on FF, IE and Chrome with same results. I have seen this issue since at least 7.0, with both Java 1.6 and 1.7.
The problem isn't reproducible with the embedded browser so it looks like an issue in external browser module.
It happens when you save the project where the folder is saved is different from the folder where the programs gets runned. Try with project in "Netbeans Projects" folder and run it in the local server "HTDOCS" folder.
I'm not so sure of that last symptom. My project folders are same as sources.
*** Bug 222382 has been marked as a duplicate of this bug. ***
This is a fairly old issue and there is multiple duplicates. We should finally fix it. I cannot reproduce it but Jirka can so perhaps somebody from Prague's office could work with Jirka to figure out what's wrong? Please.
I can reproduce this; my setup is FreeBSD 9.0-RELEASE, OpenJDK7, using Chrome.
Sorry, and NetBeans 7.2.
I am able to reproduce. The issue is that the view method itself on HtmlDataObject$ViewSupport is called twice by the infrastructure. And this is because org.openide.awt.ContextManager.actionPerformed method looks for instances of org.netbeans.api.actions.Viewable, and 2 instances are returned by the lookup. Passing to HTML - Marku can you please check if we are doing the cookie initialization magic correctly? Thanks.
(In reply to comment #17) > I am able to reproduce. The issue is that the view method itself on > HtmlDataObject$ViewSupport is called twice by the infrastructure. And this is > because org.openide.awt.ContextManager.actionPerformed method looks for > instances of org.netbeans.api.actions.Viewable, and 2 instances are returned by > the lookup. What's the class of the instances?
HtmlDataObject looks fine. It just adds the ViewSupport class to its CookieSet. (The ViewSupport implements ViewCookie which extends Viewable)
ContextManager.isEnabled(Class<T> type, ...) calls findResult(type) that returns Lookup.Result which always contains two instances of the given type, regardless what is the type or the node on which the context action is invoked. Same problem on java, css, html with Openable, Viewable, ... but apparently the Viewable is the only one which is not idempotent.
ergonomics#c481e5e7e0d9
Integrated into 'main-golden', will be available in build *201212120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c481e5e7e0d9 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #177471: when click view on html file from nbdev build get 2 windows in broswer, not 1 #177471: Remove duplicates when checking enablement status and invoking "cookies"