Closed
Bug 802820
Opened 12 years ago
Closed 12 years ago
Restore charset title fallback
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: neil, Assigned: neil)
References
Details
Attachments
(3 files)
785 bytes,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
1.94 KB,
patch
|
Details | Diff | Splinter Review | |
26.60 KB,
patch
|
Ms2ger
:
feedback+
|
Details | Diff | Splinter Review |
Bug 777292 inadvertently made a missing charset title failure throw an exception and cause the relevant charset menu not to be built.
Assignee | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
Neil, I hope you don't mind, but I thought this function could use some more work than you gave it :)
Attachment #672525 -
Flags: review?(smontagu)
Assignee | ||
Comment 3•12 years ago
|
||
a) I specifically asked smontagu on IRC which approach he wanted b) the whole file needs a rewrite, nsMenuItem should be a struct with two non-auto strings that gets copied by value instead of passing around pointers and hoping that you didn't leak.
Assignee | ||
Comment 4•12 years ago
|
||
Compiles, but not tried to link or test ;-)
Attachment #672599 -
Flags: feedback?(Ms2ger)
Comment 5•12 years ago
|
||
Comment on attachment 672599 [details] [diff] [review] Alternative approach Review of attachment 672599 [details] [diff] [review]: ----------------------------------------------------------------- That was rather more than I expected ;) f=me as long as I can deny having ever seen this code. ::: toolkit/components/intl/nsCharsetMenu.cpp @@ +1063,3 @@ > > done: > + ; All the failure cases can just return, because they would only set mAutoDetectInitialized to false, which it already is. @@ -1110,5 @@ > res = AddMenuItemArrayToContainer(container, &moreMenu, NULL); > if (NS_FAILED(res)) goto done; > > done: > - // free the elements in the VoidArray Heh. @@ +1098,1 @@ > return res; Bonus points for getting rid of all the gotos here :)
Attachment #672599 -
Flags: feedback?(Ms2ger) → feedback+
Comment 6•12 years ago
|
||
Comment on attachment 672519 [details] [diff] [review] Possible patch Review of attachment 672519 [details] [diff] [review]: ----------------------------------------------------------------- r=me. The other patches are way out of scope for this bug but feel free to open new bugs for refactoring.
Attachment #672519 -
Flags: review?(smontagu) → review+
Updated•12 years ago
|
Attachment #672525 -
Flags: review?(smontagu)
Assignee | ||
Comment 7•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7af92c476876
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7af92c476876
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•