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.
1. Create a HTML5 application 2. Run it in Chrome with NetBeans integration 3. Switch the browser to e.g. Firefox in the IDE. The yellow infobar in Chrome disappears as a result, as the IDE terminates the connection to Chrome - this is expected. But: => Click on the NetBeans icon in the address bar. The Inspect in NetBeans Mode checkbox is still there, but is not functional and does nothing. Not sure what the correct behavior should be, possibly just hide the NetBeans icon in the address bar, like we do when the user closes the yellow infobar? Or keep the icon there, just remove this checkbox?
This issue will get even worse when the user turns off the yellow debugging infobar - see bug 230292 for background. Because when the yellow bar is shown initially, the user can figure out that the connection to the IDE was disconnected, by seeing it disappear. When the yellow infobar is hidden from the start, then there is nothing to disappear, and the user can't tell the difference this way. So it will be harder for her to figure out why the Inspect in NetBeans Mode stopped working.
Inspect mode checkbox should be shown (or enabled) only when Webkit Debugging session is established between IDE and browser tab.
I thought this was resolved by issue 227975.
Apparently not.
I have modified the corresponding code to hide the Inspect Mode checkbox and Inspect Mode context menu item when there is no debug session. Namely, they are hidden when * the yellow debugging infobar is closed * when the browser is switched * when the page is executed in Chrome without NetBeans integration Modified files: http://hg.netbeans.org/web-main/rev/ac578e76001c
Thanks a lot Honzo, I can verify that the following use cases now work well for me: > * when the browser is switched > * when the page is executed in Chrome without NetBeans integration However, I can not confirm/verify this use case: > * the yellow debugging infobar is closed Because in that case, the NetBeans icon disappears completely. Likewise, when I open Chrome Developer Tools, the NetBeans icon disappears completely - instead it should stay there with the Inspect checkbox (plus item in the popup menu) removed. See also bug 229317 for a discussion about this case. Thanks.