navigator.mozApps, assignment to undeclared variable

RESOLVED FIXED

Status

()

Core
DOM: Apps
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: onecyrenus, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
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);
      }
    };

Comment 1

5 years ago
I assume you mean undeclared, rather than uninitialized?
(Reporter)

Updated

5 years ago
Whiteboard: [mozApps API 1.0]
(Reporter)

Updated

5 years ago
Summary: navigator.mozApps, assignment to uninitialized variable → navigator.mozApps, assignment to undeclared variable

Updated

5 years ago
Blocks: 746465

Updated

5 years ago
Whiteboard: [mozApps API 1.0]

Comment 2

5 years ago
I think this was fixed by Felipe in http://hg.mozilla.org/mozilla-central/rev/762911344837
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED

Updated

5 years ago
Component: DOM: Mozilla Extensions → DOM: Apps
You need to log in before you can comment on or make changes to this bug.