Closed
Bug 441707
Opened 16 years ago
Closed 12 years ago
Sourt out virtualfolderproperties include story
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: jminta, Unassigned)
Details
Attachments
(1 file)
11.57 KB,
patch
|
Bienvenu
:
review-
Bienvenu
:
superreview-
|
Details | Diff | Splinter Review |
Same story, different dialog. Don't ask me why people felt the need to include these functions in commandglue.js when they're only called from within the dialog. I've moved them over in a cleaned up form. Also, dialogOverlay.xul is obsolete, so we really shouldn't be using it, ever.
Attachment #326603 -
Flags: superreview?(bienvenu)
Attachment #326603 -
Flags: review?(bienvenu)
Reporter | ||
Comment 1•16 years ago
|
||
Oh, I should note that this patch is going to conflict with the other global cleanup patches (see Bug 440616), but those are blocked by the searchdialog patch, so I'm not holding my breath.
Comment 2•16 years ago
|
||
Comment on attachment 326603 [details] [diff] [review] patch v1 I tried editing a virtual folder's search terms and got this error: ************************************************************ * Call to xpconnect wrapped JSObject produced this error: * [Exception... "'[JavaScript Error: "getSearchTermString is not defined" {file: " chrome://messenger/content/virtualFolderProperties.js" line: 181}]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80570021 (NS_ERROR_XP C_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "<unknown>" data: yes] ************************************************************ this used to be in commandglue.js and isn't in virtualFolderProperties.js... My tree is pretty much clean at this point - perhaps there's an interaction with the other patch in your tree?
Attachment #326603 -
Flags: superreview?(bienvenu)
Attachment #326603 -
Flags: superreview-
Attachment #326603 -
Flags: review?(bienvenu)
Attachment #326603 -
Flags: review-
Comment 3•15 years ago
|
||
david, good time to revisit this? (In reply to comment #2) > (From update of attachment 326603 [details] [diff] [review]) > I tried editing a virtual folder's search terms and got this error: > > ************************************************************ > * Call to xpconnect wrapped JSObject produced this error: * > [Exception... "'[JavaScript Error: "getSearchTermString is not defined" {file: > " > chrome://messenger/content/virtualFolderProperties.js" line: 181}]' when > calling > method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80570021 > (NS_ERROR_XP > C_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "<unknown>" data: yes] > ************************************************************ > > this used to be in commandglue.js and isn't in virtualFolderProperties.js... > > My tree is pretty much clean at this point - perhaps there's an interaction > with the other patch in your tree?
Comment 4•15 years ago
|
||
I suspect asuth's refactoring makes this moot.
Comment 5•13 years ago
|
||
asuth, do you agree? (In reply to comment #4) > I suspect asuth's refactoring makes this moot.
Comment 6•13 years ago
|
||
nomis, alta, is this something you could pick up? (In reply to comment #4) > I suspect asuth's refactoring makes this moot. davida sez "not yet"
Whiteboard: [patchlove][has draft patch][needs new assignee?]
Comment 7•13 years ago
|
||
might this cause any real world problems for users? or our future development?
Status: ASSIGNED → NEW
It looks like the patch is outdated now. The functions CreateVirtualFolder and getSearchTermString to move are nowhere to be seen (in /mail or /mailnews). They are defined nowhere, just called from one test file. Should I still apply the rest of the changes in the patch? Some of them would be applicable, but I don't know if they make sense.
Comment 10•12 years ago
|
||
Wayne, aceman, my apologies on not responding to this bug when pinged a year ago-ish. My refactoring moved the logic in question to: http://mxr.mozilla.org/comm-central/source/mailnews/base/src/virtualFolderWrapper.js Presumably this sorted out the duplicate copies of the logic too. This seems to leave some minor dialog related changes, specifically the removal of some includes, the removal of doSetOKCancel(onOK, onCancel); and the offsetting addition of ondialogcancel="return onCancel();" This suggests that jminta was eliminating the redundancy of there also existing an ondialogaccept property. I do not think we can safely remove those includes given the amount of time that passed without re-evaluating them. Since virtualFolderProperties.xul is unlikely to ever be a performance bottleneck, I don't think it's worth it unless part of a greater cleanup effort that's done very carefully. I'm going to WFM this bug since its core goal was addressed, but if anyone disagrees, feel free to reopen.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Comment 11•12 years ago
|
||
Thanks for explanation.
Assignee: acelists → nobody
Whiteboard: [patchlove][has draft patch][needs new assignee?]
Version: Trunk → 3.0
You need to log in
before you can comment on or make changes to this bug.
Description
•