Closed Bug 743839 Opened 12 years ago Closed 12 years ago

navigator.mozApps, assignment to undeclared variable

Categories

(Core Graveyard :: DOM: Apps, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: onecyrenus, Unassigned)

References

Details

inside browser/modules/webappsUI.jsm

I am seeing a warning being thrown that installDone is not initialized prior to assigning.  

 doInstall: function(aData, aBrowser, aWindow) {
    let bundle = aWindow.gNavigatorBundle;

    let mainAction = {
      label: bundle.getString("webapps.install"),
      accessKey: bundle.getString("webapps.install.accesskey"),
      callback: function(notification) {
        installDone = true;
        DOMApplicationRegistry.confirmInstall(aData);
      }
    };
I assume you mean undeclared, rather than uninitialized?
Whiteboard: [mozApps API 1.0]
Summary: navigator.mozApps, assignment to uninitialized variable → navigator.mozApps, assignment to undeclared variable
Blocks: 746465
Whiteboard: [mozApps API 1.0]
I think this was fixed by Felipe in http://hg.mozilla.org/mozilla-central/rev/762911344837
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: DOM: Mozilla Extensions → DOM: Apps
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.