Closed Bug 665398 Opened 13 years ago Closed 13 years ago

Invalid Global called in dangerous manner when submitting XPI

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 665046

People

(Reporter: mkaply, Unassigned)

Details

Attachments

(1 file)

When I uploaded my TrackerBlock add-on, I got this warning:

Global called in dangerous manner
Warning: Synchronous HTTP requests can cause serious UI performance problems, especially to users with slow network connections.
modules/AdNetworks.jsm

    request.overrideMimeType("application/json");
    request.open("GET", "chrome://privacychoice/content/adnetworks/networks.json");

XMLHTTPRequest default to async, not sync so if there is no false parameter, this warning is unnecessary:

See:

https://developer.mozilla.org/En/NsIXMLHttpRequest#open()
Attached patch proposed patchSplinter Review
Changing logic check in XHR test to only apply if there are > 2 arguments and the 3rd argument is false
Attachment #540562 - Flags: feedback?(mbasta)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Attachment #540562 - Flags: feedback?(mattbasta)
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: