In <messengerdnd.js>, overlapping (= potentially "conflicting") |var RDF|

NEW
Unassigned

Status

defect
--
minor
11 years ago
2 years ago

People

(Reporter: sgautherie, Unassigned, NeedInfo)

Tracking

(Blocks 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

11 years ago
Steps:
1. Open Browser.
2. Open (Ctrl+2) MailNews.

I tried to s/var/const/ the RDF definition, and got
{{
Error: redeclaration of var RDF
Source File: chrome://messenger/content/messengerdnd.js
}}

As a test, I moved <messengerdnd.js> to be first in the JS list in <mailWindow.js>, and got
{{
Error: redeclaration of const RDF
Source File: chrome://messenger/content/mailWindow.js

Error: redeclaration of const RDF
Source File: chrome://communicator/content/bookmarks/bookmarks.js
}}

These 3 files eventually define the "same" |var RDF| value.
Even if it is working (fine) as it is,
I just hit a case where this becomes an issue :-/

This seems to be the same kind of problem as bug 446027 (-> bug 446281)...
What is the proper way to solve this (case) ?
Rename the constant/variable(s) ? Share a common definition ? ...
(Reporter)

Comment 1

11 years ago
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.2pre) Gecko/2008071502 SeaMonkey/2.0a1pre] (nightly) (W2Ksp4)

This is with SM;

[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.2pre) Gecko/2008071303 Thunderbird/3.0a2pre] (nightly) (W2Ksp4)

but TB has the same issue.
(Without the bookmarks file, obviously.)
(Assignee)

Updated

11 years ago
Product: Core → MailNews Core
(Reporter)

Updated

7 years ago
Target Milestone: mozilla1.9.1a1 → ---

Comment 2

2 years ago
The messengednd.js file seems to only exist in Seamonkey. But there does not seem to be any declaration of RDF these days.
Component: Backend → General
Flags: needinfo?(philip.chee)
Product: MailNews Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.