Community
Participate
Working Groups
Start a debug session using the Debug... new configuration... etc. Choose the URL radio button and enter in a URL which cannot be found, like file:///foo/bar.html The launcher will pop up a modal dialog telling you that the file was not found. Hit OK. At this point, you should be done, but the launcher continues by launching an empty browser and leaves you in the debug perspective with an empty, running debugtarget. I don't think you should ever see a browser. The debug target should either be terminated or never have been added to the debug model (probably the latter) Perhaps this is just some erroneous exception handling?
Don, wasn't sure if you were still active in this area
To clarify, the pop up is fired by embedded xulrunner browser. I'm checking whether this is something we can control via swt.browser API or do we need to xpcom to catch it. There are few different scenarios: 1. 404: - don't stop session http://www.eclipse.org/atf/notexisting 2. nonexistent host: - stop session http://www.somenonexistingurl.com However, it might happen that user works on an open session and accidentally enters an invalid URL - should it terminate the debugging session?
Not possible via swt.browser API. Also noticed that popup is fired only when using plain xulrunner. When using Firefox, there's no popup and instead firefox branded "Page not found" page is shown. Would be nice to have similar custom experiance as in Firefox.