Open Bug 286878 Opened 20 years ago Updated 2 years ago

In <extensions.js>, "Warning: redeclaration of var pref" and "Warning: redeclaration of var extensionsStrings"

Categories

(Toolkit :: Startup and Profile System, defect)

defect

Tracking

()

mozilla1.8beta2

People

(Reporter: sgautherie, Unassigned)

References

Details

Attachments

(3 obsolete files)

[Mozilla Thunderbird, version 1.0+ (20050319)] (nightly) (W98SE)

{{
Warning: redeclaration of var pref
Source File: chrome://mozapps/content/extensions/extensions.js
Line: 146, Column: 8
Source Code:
    var pref = Components.classes["@mozilla.org/preferences-service;1"]

Warning: redeclaration of var extensionsStrings
Source File: chrome://mozapps/content/extensions/extensions.js
Line: 217, Column: 8
Source Code:
    var extensionsStrings = document.getElementById("extensionsStrings");
}}

when starting TB.

Comming from
{{
1.39	ben%bengoodger.com	2004-11-30 14:54	 	Landing the Aviary Branch (Toolkit
sections excluding toolkit/content).
1.19	ben%bengoodger.com	2004-05-10 23:58	 	170006 - better theme manager graphics
}}
Target Milestone: --- → mozilla1.8beta2
|extensionsStrings| warning comes from
{{
1.30	ben%bengoodger.com	2004-07-13 01:17	 	246050 - text on mouseover tooltips
say extensions in the theme manager... also use consistent uppercase for Themes use
}}
Depends on: 246050
Attached patch (Av1) <extensions.js> (obsolete) — Splinter Review
[Mozilla Thunderbird, version 1.0+ (20050319)] (nightly) (W98SE)

Could you review/check in this patch ? Thanks.
Assignee: nobody → gautheri
Status: NEW → ASSIGNED
Attachment #177978 - Flags: first-review?(bugs)
Attachment #177978 - Flags: first-review?(bugs)
[Mozilla Thunderbird, version 1.0+ (20050319)] (nightly) (W98SE)

Av1, fixed/revised,
plus a 3rd redeclaration fix.
Attachment #177978 - Attachment is obsolete: true
Attachment #177990 - Flags: first-review?(bugs)
Comment on attachment 177990 [details] [diff] [review]
(Av2) <extensions.js> (for review only)

This patch no longer applies.
Attachment #177990 - Attachment is obsolete: true
Attachment #177990 - Flags: first-review?(bugs)
Av2-Bw, synchronised with Trunk.
Attachment #204182 - Flags: first-review?
Attachment #204182 - Flags: first-review? → first-review?(bugs)
Comment on attachment 204182 [details] [diff] [review]
(Av3-Bw) <extensions.js> (for review only)

Looking at revision 1.82, I don't see how a strict warning could have been triggered (the variables were in different scopes), but either way, this no longer applies.
Attachment #204182 - Attachment is obsolete: true
Attachment #204182 - Flags: first-review?(bugs)
Component: XRE Startup → Startup and Profile System
QA Contact: nobody → startup

The bug assignee didn't login in Bugzilla in the last 7 months.
:mossop, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: bugzillamozillaorg_serge_20140323 → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(dtownsend)
Flags: needinfo?(dtownsend)
Severity: trivial → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: