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 226480 - Navigator shows nothing for bootstrap-alert.js
Summary: Navigator shows nothing for bootstrap-alert.js
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-21 20:38 UTC by Petr Pisl
Modified: 2013-03-15 11:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2013-02-21 20:38:23 UTC
1. Open the "Responsive Rabbits" sample from the New Project wizard.

2. Double-click "bootstrap-alert.js".

Now you see the "null" text in the Navigator title bar and empty Navigator content.
Comment 1 Petr Pisl 2013-02-21 20:40:03 UTC
The "null" issue is know as issue #223899.
Comment 2 Petr Pisl 2013-02-21 22:52:33 UTC
Simple case to reproduce:

!function(test) {
    console.info("vstupni param: " + test);

    var bar = "bar promenna";

    var Alert = function () {

    };

    Alert.prototype.getInfo = function (param) {
        return "Info from Alert " + param + " and " + bar;
    };

    var alert = new Alert();
    console.info(alert.getInfo(22));
}("sranda");

The problem is in navigator only. It doesn't display nothing because the first
function is anonymous and navigator doesn't display content of anonymous
functions.
Comment 3 Petr Pisl 2013-02-21 23:54:27 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/efcc4f8b7087

Now it displays private functions, objects and variables of an anonymous
function in global space, when the anonymous function is declared in global
space.
Comment 4 Vladimir Riha 2013-02-22 14:20:21 UTC
Verified


Product Version: NetBeans IDE Dev (Build web-main-9957-on-20130222)
Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Quality Engineering 2013-02-23 04:13:58 UTC
Integrated into 'main-golden', will be available in build *201302222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/efcc4f8b7087
User: Petr Pisl <ppisl@netbeans.org>
Log: #226480 - Navigator shows nothing for bootstrap-alert.js
Comment 6 Petr Pisl 2013-03-11 15:42:38 UTC
Transplanted to the release73 branch:
http://hg.netbeans.org/releases/rev/e596df8fc7ec
Comment 7 Quality Engineering 2013-03-14 21:20:40 UTC
Integrated into 'releases', will be available in build *201303141828* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/e596df8fc7ec
User: Petr Pisl <ppisl@netbeans.org>
Log: #226480 - Navigator shows nothing for bootstrap-alert.js
(transplanted from efcc4f8b70874adf40c06a2fe96e4c9813a324d0)
Comment 8 Vladimir Riha 2013-03-15 11:50:33 UTC
verified in patch, sample from comment #2 shows the same if used outside of FE

Product Version: NetBeans IDE 7.3 (Build 201303141828)
Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.2.0-38-generic-pae running on i386; UTF-8; en_US (nb)