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 267934

Summary: Running HTML file in embedded webkit browser crashes Netbeans if file referenced by object data attribute missing on file system.
Product: web Reporter: authentictech
Component: Live HTMLAssignee: David Konecny <dkonecny>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description authentictech 2016-09-07 20:19:09 UTC
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13

Steps to reproduce: 

1. Create an HTML5 project and a new HTML file.
2. Add the following code in the body:
  <object width="400" height="50" data="bookmark.swf"></object>

3. Set Netbeans to preview in the embedded webkit browser.
4. Run file.

Result: If the file referred to in the data attribute is missing on the file system, Netbeans crashes. This happens for any file or file type.

Alternatively, create an empty file with the name "bookmark.swf" in the working directory and Netbeans does not crash.
Comment 1 authentictech 2016-09-07 20:35:26 UTC
Also crashes for same reasons with an embed tag.

Does not crash if missing data is an image file.