Closed Bug 1187964 Opened 10 years ago Closed 10 years ago

View source from Thunderbird uses deprecated API

Categories

(Thunderbird :: General, defect)

defect
Not set
normal

Tracking

(thunderbird44 fixed)

RESOLVED FIXED
Thunderbird 44.0
Tracking Status
thunderbird44 --- fixed

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1187956 +++ Error: DEPRECATION WARNING: The arguments you're passing to viewSource.xul are using an out-of-date API. You may find more details about this deprecation at: https://developer.mozilla.org/en-US/Add-ons/Code_snippets/View_Source_for_XUL_Applications chrome://global/content/viewSource.js 316 _loadViewSourceDeprecated chrome://global/content/viewSource.js 302 onXULLoaded chrome://global/content/viewSource.js 175 handleEvent null 0 null
Attached patch Fix-up caller (obsolete) — Splinter Review
Simple fix-up of the one caller.
Attachment #8639351 - Flags: review?(mkmelin+mozilla)
Carried across from work in Bug 1187956, new API needs to have browser and outerWindowID arguments to even consider using a different characterset.
Attachment #8639351 - Attachment is obsolete: true
Attachment #8639351 - Flags: review?(mkmelin+mozilla)
Attachment #8641050 - Flags: review?(mkmelin+mozilla)
Comment on attachment 8641050 [details] [diff] [review] Fix-up caller v1.1 [Checked in: Comment 6] Review of attachment 8641050 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thx! r=mkmelin
Attachment #8641050 - Flags: review?(mkmelin+mozilla) → review+
(In reply to Ian Neal from comment #2) > Created attachment 8641050 [details] [diff] [review] > Fix-up caller v1.1 > > Carried across from work in Bug 1187956, new API needs to have browser and > outerWindowID arguments to even consider using a different characterset. But in the latest patch you removed setting characterset. Will it be somehow inferred automatically? Or is it no longer needed?
(In reply to :aceman from comment #4) > (In reply to Ian Neal from comment #2) > > Created attachment 8641050 [details] [diff] [review] > > Fix-up caller v1.1 > > > > Carried across from work in Bug 1187956, new API needs to have browser and > > outerWindowID arguments to even consider using a different characterset. > > But in the latest patch you removed setting characterset. Will it be somehow > inferred automatically? Or is it no longer needed? I believe the new API pulls the characterset from the browser object passed in the arguments. Either way the new API doesn't allow for a characterset to be passed as an argument.
Attachment #8641050 - Attachment description: Fix-up caller v1.1 → Fix-up caller v1.1 [Checked in: Comment 6]
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 44.0
Blocks: 1163707
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: