Closed Bug 491143 Opened 15 years ago Closed 15 years ago

View - Feed Message Body As - Default doesn't work

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.0b1

People

(Reporter: neil, Assigned: iannbugzilla)

References

Details

Attachments

(1 file)

newsblog's utils.js defines const RDF_NS but suite's bookmarks.js (as used by the Bookmark This Link context menu option) already declares it as a var. This means that an exception is thrown when the view as default code tries to dynamically import utils.js and therefore nothing gets shown at all.
As it is only used in one line in utils.js could just do remove:

const RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
const RDF_TYPE = rdf.GetResource(RDF_NS + "type");

and instead have:

const RDF_TYPE = rdf.GetResource("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
Yeah, that works, thanks.
Depends on: 438429
This patch:
* Removes duplicate declaration from newsblog's utils.js so it does not break View -> Feed Message Body As -> Default in SeaMonkey.
Assignee: nobody → iann_bugzilla
Status: NEW → ASSIGNED
Attachment #375596 - Flags: review?(bugzilla)
Attachment #375596 - Flags: review?(bugzilla) → review+
Attachment #375596 - Flags: superreview?(bienvenu)
Attachment #375596 - Flags: superreview?(bienvenu) → superreview+
Comment on attachment 375596 [details] [diff] [review]
Fix duplicate declaration v0.1 (Pushed: Comment 4)

http://hg.mozilla.org/comm-central/rev/2580d4920e20
Attachment #375596 - Attachment description: Fix duplicate declaration v0.1 → Fix duplicate declaration v0.1 (Pushed: Comment 4)
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: