Closed Bug 126231 Opened 23 years ago Closed 23 years ago

several font download dialogs appear upon entering the unicode page

Categories

(Core :: Internationalization, defect, P2)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: tracy, Assigned: tetsuroy)

References

()

Details

(Keywords: intl, regression, Whiteboard: Need /sr)

Attachments

(1 file, 1 obsolete file)

seen on windows commercial build 2002-02-18-06-trunk

-goto the above URL
the page loads fine, but four download dialogs appear suggesting that these 
languages need to be intstalled in order for the page to view correctly. But, 
the page is correctly rendering the various fonts named in the dialogs. (Korean, 
Japanese, Traditional Chinese and Simplified Chinese)
I can reproduce this with http://www.unicode.org/iuc/iuc10/x-ncr.html

If I go to the Japanese, Korean, Simplified Chinese and Traditional Chinese page
one by one, each font download dialog appears.  This is correct.
Keywords: nsbeta1
See bug 126083 for more detatil of regression date.
Keywords: regression
*** Bug 126083 has been marked as a duplicate of this bug. ***
Not sure why my check-in for 119927 causes this problem.
Oh well, I'll accept this and see what's going on.......
Status: NEW → ASSIGNED
Ok, i think I know what's going on
we used to pass 'ja' to 
rv = fontEnum->HaveFontFor(aFontPackID, &have);
but now we pass 'lang:ja' to it.

I will past a patch to trip out the 'lang:'.
This is because we didn't want to change
the contract between gfx and FontPackageProxy.
but we moved the call fontEnum->HaveFontFor(aFontPackID, &have);
from /gfx to /intl/locale

We need to strip the "lang:" from aFontPackID.
ftang: can you review?
ftang: can you veiw?

cc'ing ftnag
Comment on attachment 70157 [details] [diff] [review]
strip "lang:" and get the actual langID

r=ftang
Attachment #70157 - Flags: review+
brendan: can you /sr this small patch?
Whiteboard: Need /sr
Priority: -- → P2
Target Milestone: --- → mozilla0.9.9
Comment on attachment 70157 [details] [diff] [review]
strip "lang:" and get the actual langID

Sure -- we know there's always a lang: at the front, and that aFontPackID[5]
won't index beyond the end of a short string passed in by an errant caller?

/be
Attachment #70157 - Flags: superreview+
In other words, should we assert that (strncmp(aFontPackID, "lang:", 5) == 0)?

/be
Attached patch Adding AssertionSplinter Review
I think it's better to test for validity
Attachment #70157 - Attachment is obsolete: true
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 125971 has been marked as a duplicate of this bug. ***
verified fixed on commercial windows build 2002-02-20-06-trunk
Status: RESOLVED → VERIFIED
*** Bug 126130 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: