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.
Summary: | Running a simple knockout application crashes NetBeans when using the embedded browser | ||
---|---|---|---|
Product: | platform | Reporter: | markiewb |
Component: | Embedded Browser | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | NEW --- | ||
Severity: | normal | CC: | vriha |
Priority: | P2 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Example project |
It works, when the name matches exactly the variable name. userName vs username A simple typo should not crash the embedded browser/NB. Working: <p data-bind="visible: username()=='Admin'">You are an admin.</p> ... define(['knockout'], function (ko) { return function THISWASMISSING(defaultValue) { this.username = ko.observable(defaultValue); this.greeting = ko.pureComputed(function () { return 'Hello' + this.username().toUpperCase(); }, this); this.isAdmin = ko.pureComputed(function () { return this.username() === "Admin"; }, this); }; }); Non working (crashing): <p data-bind="visible: userName()=='Admin'">You are an admin.</p> ... define(['knockout'], function (ko) { return function THISWASMISSING(defaultValue) { this.username = ko.observable(defaultValue); this.greeting = ko.pureComputed(function () { return 'Hello' + this.username().toUpperCase(); }, this); this.isAdmin = ko.pureComputed(function () { return this.username() === "Admin"; }, this); }; }); |
Created attachment 161793 [details] Example project Run the attached application in the embedded browser. In index.html there is a data-binding with logic <p data-bind="visible: userName()=='Admin'">You are an admin.</p> When you run this application (see attachment) NB will shutdown without any log entry. It has to do something with the embedded browser. Other browsers work. Happens in 8.1 and Dev