Closed Bug 264102 Opened 21 years ago Closed 21 years ago

Chrome should use document.title instead of window.title

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: neil, Unassigned)

References

Details

(Keywords: helpwanted)

Attachments

(12 files, 4 obsolete files)

2.33 KB, patch
jst
: review+
peterv
: superreview+
Details | Diff | Splinter Review
4.18 KB, patch
neil
: review+
Details | Diff | Splinter Review
10.92 KB, patch
neil
: review+
Bienvenu
: superreview+
Details | Diff | Splinter Review
6.58 KB, patch
vlad
: review+
Details | Diff | Splinter Review
4.49 KB, patch
mscott
: review+
Details | Diff | Splinter Review
3.55 KB, patch
glazou
: review+
Details | Diff | Splinter Review
1.09 KB, patch
BenB
: review+
Details | Diff | Splinter Review
1.64 KB, patch
rginda
: review+
Details | Diff | Splinter Review
806 bytes, patch
neil
: review+
Details | Diff | Splinter Review
1.83 KB, patch
iannbugzilla
: review+
darin.moz
: superreview+
Details | Diff | Splinter Review
967 bytes, patch
neil
: review+
Details | Diff | Splinter Review
1.69 KB, patch
neil
: review+
Details | Diff | Splinter Review
<Neil> jst: so, why did we have a title attribute on all window objects? <jst> Neil: because someone screwed up and added it for no reason Note that window.title is only available on chrome windows, and it has its own implementation, while document.title is correctly loaded from the XUL.
Attachment #162334 - Flags: superreview?(peterv)
Attachment #162334 - Flags: review?(jst)
Attachment #162334 - Flags: superreview?(peterv) → superreview+
Comment on attachment 162334 [details] [diff] [review] Make deprecated window.title shadow document.title sr=jst
Attachment #162334 - Flags: review?(jst) → review+
Attached patch xpfe fixes v0.1Splinter Review
Attached patch mail fixes v0.1Splinter Review
Attached patch p3p fixes v0.1 (obsolete) — Splinter Review
Could not find any sites to test this patch against
Not tested as I do not use sroaming
Attachment #162893 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #162905 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #162926 - Flags: review?(rginda)
Attachment #162922 - Flags: review?(daniel)
Attachment #162924 - Flags: review?(mozilla)
Comment on attachment 162926 [details] [diff] [review] venkman fixes v0.1 r=rginda
Attachment #162926 - Flags: review?(rginda) → review+
Attachment #162923 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #162928 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #162924 - Flags: review?(mozilla) → review+
Attachment #162893 - Flags: superreview+
Attachment #162893 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #162893 - Flags: review+
Attachment #162928 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 162923 [details] [diff] [review] p3p fixes v0.1 It looks like you're setting the title of the wrong document.
Attachment #162923 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attachment #162909 - Flags: review?(vladimir)
Comment on attachment 162909 [details] [diff] [review] toolkit fixes v0.1 r=vladimir
Attachment #162909 - Flags: review?(vladimir) → review+
Comment on attachment 162905 [details] [diff] [review] mailnews fixes v0.1 Note that sendProgress.js is already covered by bug 260217.
Attachment #162905 - Flags: review?(neil.parkwaycc.co.uk) → review+
So the editor and mailnews patches in here will bit rot you?
Well, you could always forget to check those files in ;-)
Attachment #162905 - Flags: superreview?(bienvenu)
Attachment #162920 - Flags: review?(mscott)
Attached patch p3p fixes v0.2 (obsolete) — Splinter Review
Attachment #162923 - Attachment is obsolete: true
Attachment #163123 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 163123 [details] [diff] [review] p3p fixes v0.2 Sorry, but this.title and window.title are synonyms at this point in the code.
Attachment #163123 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attached patch p3p fixes v0.3 (obsolete) — Splinter Review
Attachment #163123 - Attachment is obsolete: true
Attachment #163173 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 163173 [details] [diff] [review] p3p fixes v0.3 I don't think you need the XUL change though, it seems to work fine without it.
Attachment #163173 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attached patch p3p fixes v0.3aSplinter Review
Attachment #163173 - Attachment is obsolete: true
Comment on attachment 163206 [details] [diff] [review] p3p fixes v0.3a Removed .xul changes, as not needed, carring forward r= and requesting sr=
Attachment #163206 - Flags: superreview?(mkaply)
Attachment #163206 - Flags: review+
Checking in venkman fixes: Checking in venkman-bpprops.js; /cvsroot/mozilla/extensions/venkman/resources/content/venkman-bpprops.js,v <-- venkman-bpprops.js new revision: 1.4; previous revision: 1.3 done
Checking in sroaming fixes: Checking in progressDialog.js; /cvsroot/mozilla/extensions/sroaming/resources/content/transfer/progressDialog.js,v <-- progressDialog.js new revision: 1.5; previous revision: 1.4 done
Checking in xpfe fixes: Checking in components/filepicker/res/content/filepicker.js; /cvsroot/mozilla/xpfe/components/filepicker/res/content/filepicker.js,v <-- filepicker.js new revision: 1.91; previous revision: 1.90 done Checking in global/resources/content/bindings/tabbrowser.xml; /cvsroot/mozilla/xpfe/global/resources/content/bindings/tabbrowser.xml,v <-- tabbrowser.xml new revision: 1.104; previous revision: 1.103 done Checking in global/resources/content/commonDialog.js; /cvsroot/mozilla/xpfe/global/resources/content/commonDialog.js,v <-- commonDialog.js new revision: 1.55; previous revision: 1.54 done Checking in global/resources/content/selectDialog.js; /cvsroot/mozilla/xpfe/global/resources/content/selectDialog.js,v <-- selectDialog.js new revision: 1.21; previous revision: 1.20 done
Attachment #162922 - Flags: superreview?(bzbarsky)
Attachment #162922 - Flags: superreview?(bzbarsky) → superreview?(neil.parkwaycc.co.uk)
Checking in xmlterm fixes: Checking in XMLTermChrome.js; /cvsroot/mozilla/extensions/xmlterm/ui/content/XMLTermChrome.js,v <-- XMLTermChrome.js new revision: 1.8; previous revision: 1.7 done
Checking in toolkit fixes: Checking in mozapps/downloads/content/downloads.js; /cvsroot/mozilla/toolkit/mozapps/downloads/content/downloads.js,v <-- downloads.js new revision: 1.31; previous revision: 1.30 done Checking in content/widgets/tabbrowser.xml; /cvsroot/mozilla/toolkit/content/widgets/tabbrowser.xml,v <-- tabbrowser.xml new revision: 1.50; previous revision: 1.49 done Checking in content/selectDialog.js; /cvsroot/mozilla/toolkit/content/selectDialog.js,v <-- selectDialog.js new revision: 1.2; previous revision: 1.1 done Checking in content/commonDialog.js; /cvsroot/mozilla/toolkit/content/commonDialog.js,v <-- commonDialog.js new revision: 1.3; previous revision: 1.2 done Checking in components/filepicker/content/filepicker.js; /cvsroot/mozilla/toolkit/components/filepicker/content/filepicker.js,v <-- filepicker.js new revision: 1.9; previous revision: 1.8 done
Attachment #162905 - Flags: superreview?(bienvenu) → superreview+
Checked in mailnews fixes (apart from sendProgress.js which will be in fix to bug 260217)
Checked in the patch to send window.title to document.title with a warning.
Comment on attachment 162922 [details] [diff] [review] editor fixes v0.1 sr=me with EdColorPicker.js caveat.
Attachment #162922 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Comment on attachment 162922 [details] [diff] [review] editor fixes v0.1 Checked in editor fixes without EdColorPicker.js changes as these will be fixed in the patch to bug 260217
Comment on attachment 163206 [details] [diff] [review] p3p fixes v0.3a I'm not an sr
Attachment #163206 - Flags: superreview?(mkaply) → superreview?(darin)
Attachment #163206 - Flags: superreview?(darin) → superreview+
Comment on attachment 163206 [details] [diff] [review] p3p fixes v0.3a Checking in p3pSummary.js; /cvsroot/mozilla/extensions/p3p/resources/content/p3pSummary.js,v <-- p3pSummary.js new revision: 1.7; previous revision: 1.6 done
Attachment #162920 - Flags: review?(mscott) → review+
Comment on attachment 162920 [details] [diff] [review] mail fixes v0.1 Checking in base/content/commandglue.js; /cvsroot/mozilla/mail/base/content/commandglue.js,v <-- commandglue.js new revision: 1.42; previous revision: 1.41 done Checking in components/addrbook/content/abAddressBookNameDialog.js; /cvsroot/mozilla/mail/components/addrbook/content/abAddressBookNameDialog.js,v <-- abAddressBookNameDialog.js new revision: 1.3; previous revision: 1.2 done Checking in components/addrbook/content/abCardOverlay.js; /cvsroot/mozilla/mail/components/addrbook/content/abCardOverlay.js,v <-- abCardOverlay.js new revision: 1.6; previous revision: 1.5 done Checking in components/compose/content/MsgComposeCommands.js; /cvsroot/mozilla/mail/components/compose/content/MsgComposeCommands.js,v <-- MsgComposeCommands.js new revision: 1.55; previous revision: 1.54 done
last 3 places fixed.
I think there is still one place where window.title is used and it's in the browser download progress window. Anybody would like to take care of that too? Neil's patch didn't address this (Seamonkey build ID: 2004111704).
Comment on attachment 164333 [details] [diff] [review] various (inspector,pki and calendar) Could you request reviews for this patch please.
Attachment #166437 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #166437 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #164333 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #164333 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 166437 [details] [diff] [review] progressDlg fix v0.1 That comment was misleading even before the patch and it's even more misleading now; it would be nice if you could fix it using a meaningful form of words.
Attachment #166437 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #166437 - Flags: superreview+
Attachment #166437 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #166437 - Flags: review+
Comment on attachment 164333 [details] [diff] [review] various (inspector,pki and calendar) >Index: ./extensions/inspector/resources/content/inspector.js ./ prefixes on your file names? Don't ask me to check this in for you. > var title = dialogParams.GetString(2); >- window.title = title; >+ document.title = title; Hardly worth a separate variable, might as well fold these two lines into one while you're here. >Index: ./calendar/resources/content/printDialog.js I'll give you a chance to get a calendar review for this.
Attachment #164333 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Comment on attachment 166437 [details] [diff] [review] progressDlg fix v0.1 Requesting a= for very simple, low risk fix Will change comment in patch to // Set dialog's title attribute.
Attachment #166437 - Flags: approval1.8a5?
per Comment 42. Also removed calendar part because it's commented out for the moment.
Attachment #164333 - Attachment is obsolete: true
Attachment #166636 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #166636 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #166636 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #166636 - Flags: superreview+
Attachment #166636 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #166636 - Flags: review+
Attachment #166437 - Flags: approval1.8a5?
Comment on attachment 166437 [details] [diff] [review] progressDlg fix v0.1 Checking in nsProgressDialog.js; /cvsroot/mozilla/embedding/components/ui/progressDlg/nsProgressDialog.js,v <-- nsProgressDialog.js new revision: 1.42; previous revision: 1.41 done
Comment on attachment 166636 [details] [diff] [review] various (inspector,pki) Checking in security/manager/pki/resources/content/serverCertExpired.js; /cvsroot/mozilla/security/manager/pki/resources/content/serverCertExpired.js,v <-- serverCertExpired.js new revision: 1.14; previous revision: 1.13 done Checking in extensions/inspector/resources/content/inspector.js; /cvsroot/mozilla/extensions/inspector/resources/content/inspector.js,v <-- inspector.js new revision: 1.21; previous revision: 1.20 done
*** Bug 272105 has been marked as a duplicate of this bug. ***
Certain parts will need to be relanded once aviary branch has landed on trunk
Whiteboard: reland-irsn
Attachment #164333 - Flags: review?(neil.parkwaycc.co.uk)
toolkit fixes rechecked in after aviary landing
Keywords: aviary-landing
*** Bug 272498 has been marked as a duplicate of this bug. ***
Fixed
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
It's fixed in cvs. lxr/seamonkey currently updates nightly.
Status: REOPENED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → FIXED
Keywords: aviary-landing
Whiteboard: reland-irsn
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: