Closed Bug 85346 Opened 23 years ago Closed 23 years ago

Character display garbage in Page Source windows if use context menu

Categories

(Core :: Internationalization, defect, P2)

x86
All
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.2

People

(Reporter: sagiem, Assigned: ftang)

References

Details

(Keywords: intl, Whiteboard: need a= 6/19 13:11)

Attachments

(1 file)

Mozilla page source windows shows Hebrew text with wrong characters, instead of
the normal Hebrew letters.
I am going to confirm this bug because I believe there is a bug 
in our code which somhow corrupts source display when auto-detection
is on. It does not use the fotn for the determined encoding by a 
meta tag. 

I think there is a bug somewhere for which this one is a duplicate.
For example, I tried the following page:

http://www.masa.co.il/

with View | Character Coding | Auto-Detect | Off

The page source looked OK under this setting. 

It is possible that Sagie is seeing this problem. But to really see
the cause of the reported problem, we need an actual URL.
Sagie, please provide the URL of a page which has a problem.

CC'ing nhotta and ftang to see if there is a duplicate somewhere.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Win98 Build 2001060703

Auto-Detect is set to (off) here and still no hebrew characters in source window.
the url was http://www.masa.co.il
Sorry for tripple-messaging, but I just checked http://www.guides.co.il/ and the
Page Source looks good, with the proper Hebrew fonts.
I see this bug on www.masa.co.il if I use "View Frame Source" from the context
menu after right-clicking in the middle of the page (in the area with the
graphics of grapes, Sherlock Holmes, etc).

If I open that frame separately using "Open Frame in New Window" or "Show Only
This Frame" and then "View Page Source", the Hebrew is displayed correctly.

Auto-detection is off for me.
Looks like the context menu "View Frame Source" option does not inherit the
character set of the main document like the "View" menu "View Source" option
does.  Patch coming up.

I can't test it at the moment since Mozilla crashes when I try to bring up a
context menu on the pages in question.  But it should solve this problem...
OK, I hunted down and killed that crash (it was in another chunk of code in my
tree that I've modified) and tested this patch.  Works great for me.  The code
is modeled on the BrowserViewSource() function in navigator.js

Reviews?  Ccing blake, since this is context menu code.
Keywords: patch, review
OS: Windows 98 → All
This is really not Bidi specific issue and needs to be reviewed
by i18n component owner. Changed the component accordingly. 
Re-assigned to ftang. QA contact changed.
Assignee: mkaply → ftang
Component: BiDi Hebrew & Arabic → Internationalization
QA Contact: giladehven → andreasb
Adding keyword intl.

Switching QA contact to ylong@netscape.com.
Keywords: intl
QA Contact: andreasb → ylong
r=ftang
need sr.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.2
change summary to "Character display garbage in Page Source windows if use 
context menu"
Summary: No Hebrew in Page Source windows → Character display garbage in Page Source windows if use context menu
Whiteboard: r=ftang need sr= and a=
change status to "r=ftang , ask alecf to sr= (6/19 9:50) need a="
Whiteboard: r=ftang need sr= and a= → r=ftang , ask alecf to sr= (6/19 9:50) need a=
sr=blizzard
Whiteboard: r=ftang , ask alecf to sr= (6/19 9:50) need a= → need a= 6/19 13:11
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Blocks: 83989
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified on 08-24 trunk  build on Wind2k-zh and Linux RH6.2-Ja, the page source
looks OK now.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: