Closed Bug 197209 Opened 22 years ago Closed 21 years ago

<folderProps.xul>: Convert <window class="dialog"> to <dialog>

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Sebastian, Assigned: Sebastian)

References

Details

Attachments

(1 file, 4 obsolete files)

OK, timeless pointed me to this: the mailnews folder properties dialog is still using <windows... instead of <dialog... This leads to some bad side effects, e.g. the ok and cancel buttons are reversed when you do the "sidebar on the right side" customization thing (http://mozilla.org/unix/customizing.html) Patch follows shortly... This will be my very first mozilla patch (indeed my very first patch at all) so bear with me
Attached patch patch (obsolete) — Splinter Review
OK, I would be glad if somebody could have a look at the patch and tell me if I forgot to take something out (unneccessary overlays, etc...). I compiled on Linux and made sure that ok and cancel buttons work.
Attachment #117090 - Flags: superreview?(sspitzer)
Attachment #117090 - Flags: review?(neil)
The original file is at http://lxr.mozilla.org/seamonkey/source/mailnews/base/resources/content/folderProps.xul The <dialog> does not have an id="...". Would that be needed? Thanks for reviewing
Assignee: sspitzer → Sebastian
OS: Linux → All
Hardware: PC → All
Comment on attachment 117090 [details] [diff] [review] patch <!DOCTYPE window SYSTEM "chrome://messenger/locale/folderProps.dtd"> this line needs a change as well
Attached patch v.02 (obsolete) — Splinter Review
Changed the doctype as well. Thanks for the hint biesi. Patch should be ready for review and checkin now...
Attachment #117090 - Attachment is obsolete: true
Attachment #117184 - Flags: superreview?(sspitzer)
Attachment #117184 - Flags: review?(neil)
Attachment #117090 - Flags: superreview?(sspitzer)
Attachment #117090 - Flags: review?(neil)
Comment on attachment 117184 [details] [diff] [review] v.02 You should remove dialogOverlay and fix any dependency issues. You don't need ondialogcancel for a start.
Attachment #117184 - Flags: review?(neil) → review-
OK, removed dialogOverlay dependency and oncanceldialog. Can provide a new patch... However, I noticed an uncaught exception which already ocurred in the old code. What is wrong with this? This line: var imapFolder = gMsgFolder.QueryInterface(Components.interfaces.nsIMsgImapMailFolder); leads to: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "JS frame :: chrome://messenger/content/folderProps.js :: hideShowControls :: line 229" data: no] I need halp on this one...
Attachment #117184 - Attachment is obsolete: true
Attachment #117184 - Flags: superreview?(sspitzer)
Comment on attachment 117311 [details] [diff] [review] New patch, resolving Neils issues. The uncaught exception still needs to be resolved I decided to spin the exception out to another bug, because that is really not part of the xul cleanup I'm doing. See bug 197660 for this. Neil, could I have a new review on the xul cleanup? Thanks
Attachment #117311 - Flags: review?(neil)
Blocks: 197315
Attachment #117311 - Attachment is obsolete: true
Attachment #117392 - Flags: review?(neil)
Comment on attachment 117392 [details] [diff] [review] Even more cleanup (removed unneccessary dialog keyset) Looks OK but I won't get to test it just yet.
Attachment #117392 - Flags: review?(neil) → review+
Attachment #117392 - Flags: superreview?(sspitzer)
Comment on attachment 117392 [details] [diff] [review] Even more cleanup (removed unneccessary dialog keyset) Bug 197660 bitrotted this patch slightly but I've retested it and it's fine.
Comment on attachment 117311 [details] [diff] [review] New patch, resolving Neils issues. The uncaught exception still needs to be resolved Cancelling review on obsolete patch.
Attachment #117311 - Flags: review?(neil)
Comment on attachment 117392 [details] [diff] [review] Even more cleanup (removed unneccessary dialog keyset) Obsoleting patch since it bitrotted again.
Attachment #117392 - Attachment is obsolete: true
Attachment #117392 - Flags: superreview?(sspitzer)
Attached patch Updated patchSplinter Review
Comment on attachment 131745 [details] [diff] [review] Updated patch Transferred Neil's r+ since only the line numbers have changed. I tested the patch with a current trunk build.
Attachment #131745 - Flags: superreview?(bienvenu)
Attachment #131745 - Flags: review+
Attachment #131745 - Flags: superreview?(bienvenu) → superreview+
Checking in mailnews/base/resources/content/folderProps.js; /cvsroot/mozilla/mailnews/base/resources/content/folderProps.js,v <-- folderPr ops.js new revision: 1.19; previous revision: 1.18 done Checking in mailnews/base/resources/content/folderProps.xul; /cvsroot/mozilla/mailnews/base/resources/content/folderProps.xul,v <-- folderP rops.xul new revision: 1.14; previous revision: 1.13 done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Summary: Folder properties should use <dialog> xul → folderProps.xul: Convert <window class="dialog"> to <dialog>
Summary: folderProps.xul: Convert <window class="dialog"> to <dialog> → <folderProps.xul>: Convert <window class="dialog"> to <dialog>
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: