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)
Firefox
Toolbars and Customization
Tracking
()
People
(Reporter: dholbert, Assigned: Gijs)
References
Details
Attachments
(1 file)
|
1.64 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
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?
| Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(dolske)
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8517786 -
Flags: review?(dolske)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
| Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(dolske)
Updated•11 years ago
|
Attachment #8517786 -
Flags: review?(dolske) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/347c76e80e6f
Marco, can you add this?
Iteration: --- → 36.2
Points: --- → 1
Flags: qe-verify-
Flags: needinfo?(mmucci)
Flags: in-testsuite-
Flags: firefox-backlog+
Whiteboard: [fixed-in-fx-team]
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.
Description
•