Closed Bug 1094429 Opened 11 years ago Closed 11 years ago

JavaScript strict warning: chrome://browser/content/sanitize.js, line 74: SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function

Categories

(Firefox :: Toolbars and Customization, defect)

defect
Not set
normal
Points:
1

Tracking

()

RESOLVED FIXED
Firefox 36
Iteration:
36.2

People

(Reporter: dholbert, Assigned: Gijs)

References

Details

Attachments

(1 file)

STR: 1. Start a debug build. 2. Inspect the first few lines of output. ACTUAL RESULTS: This appears in the output: { JavaScript strict warning: chrome://browser/content/sanitize.js, line 74: SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function } This seems to be for the function "onWindowsCleaned": > 58 sanitize: function (aItemsToClear) > 59 { > 60 var deferred = Promise.defer(); [...] > 77 function onWindowsCleaned() { http://mxr.mozilla.org/mozilla-central/source/browser/base/content/sanitize.js?rev=7c582981a0b0#77 This function was just added last week in bug 1088137: https://hg.mozilla.org/mozilla-central/rev/61cbd994f800 dolske, can we refactor this such that it doesn't spam a startup JS warning?
Flags: needinfo?(dolske)
Blocks: 1088137
Attachment #8517786 - Flags: review?(dolske)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(dolske)
Attachment #8517786 - Flags: review?(dolske) → review+
Iteration: --- → 36.2
Points: --- → 1
Flags: qe-verify-
Flags: needinfo?(mmucci)
Flags: in-testsuite-
Flags: firefox-backlog+
Whiteboard: [fixed-in-fx-team]
Added to IT 36.2
Flags: needinfo?(mmucci)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: