Closed Bug 738601 Opened 13 years ago Closed 13 years ago

JavaScript strict warnings in utilityOverlay.js

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.11

People

(Reporter: neil, Assigned: sgautherie)

References

Details

Attachments

(1 file)

Warning: function goClickThrobber does not always return a value Source File: chrome://communicator/content/utilityOverlay.js Line: 579 Nobody calling goClickThrobber wants a return value so we shouldn't return it. Warning: variable url redeclares argument Source File: chrome://communicator/content/utilityOverlay.js Line: 599, Column: 8 Source Code: var url = uriFixup.createFixupURI(url, nsIURIFixup.FIXUP_FLAG_NONE); This only works because var doesn't actually create a new variable, so both uses of url refer to the argument. The new variable should be renamed to uri.
Keywords: helpwanted
Whiteboard: [mentor=Neil][lang=js]
Assignee: nobody → sgautherie.bz
Status: NEW → ASSIGNED
Attachment #608945 - Flags: review?(neil)
Flags: in-testsuite-
Keywords: helpwanted
Whiteboard: [mentor=Neil][lang=js]
Target Milestone: --- → seamonkey2.11
Comment on attachment 608945 [details] [diff] [review] (Av1) utilityOverlay.js: Fix JavaScript strict warnings in goClickThrobber() and isRestricted() [Checked in: Comment 3] >- var url = >+ let uri = s/let/var/ please.
Attachment #608945 - Flags: review?(neil) → review+
Comment on attachment 608945 [details] [diff] [review] (Av1) utilityOverlay.js: Fix JavaScript strict warnings in goClickThrobber() and isRestricted() [Checked in: Comment 3] http://hg.mozilla.org/comm-central/rev/5f6f8317ac21
Attachment #608945 - Attachment description: (Av1) utilityOverlay.js: Fix JavaScript strict warnings in goClickThrobber() and isRestricted() → (Av1) utilityOverlay.js: Fix JavaScript strict warnings in goClickThrobber() and isRestricted() [Checked in: Comment 3]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: