Closed
Bug 136322
Opened 23 years ago
Closed 22 years ago
Character coding menu doesn't work in Source window (it becomes blank!)
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
VERIFIED
FIXED
mozilla1.2beta
People
(Reporter: scoda, Assigned: smontagu)
References
Details
(Keywords: intl, Whiteboard: [adt3])
Attachments
(1 file)
(deleted),
patch
|
shanjian
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Select View -> Page Source for any page
Select View -> Character Coding -> Unicode
The window becomes blank.
Javascript error: popup has no properties,
chrome://messenger/content/mailNavigatorOverlay.xul Line: 110
Reporter | ||
Comment 1•23 years ago
|
||
Forgot to say:
seen the first time in night build of 02 April 2002
Now using night build 2002040706
Comment 2•23 years ago
|
||
I see some changes on April 2nd by blakeross
"108099, 75338 - overhaul of main menu and context menus. r=ben sr=hewitt
a=asa/brendan"
cc blakeross and others
Comment 3•23 years ago
|
||
Confirm it reproduce on WinXP-SimpChinese and Mac 10.1.3 too, change OS to ALL.
It's not only existing when change charset to Unicode but also any charset other
than current document. -> nsbeta1
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: nsbeta1
OS: Linux → All
Hardware: PC → All
Comment 4•23 years ago
|
||
Change milestone for keeping it under my radar.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Comment 5•23 years ago
|
||
I saw the following on the JavaScript console
"Error: showMessage" is not defined", not sure where it came from. search
lxr.mozilla.org to find it.
Comment 7•23 years ago
|
||
Personally, we should remove the Char coding menu all together from
the Source window if we aren't going to fix this bug.
Moreover, if I recall correctly, the Char coding menu in the Source
window never worked before.
Comment 8•23 years ago
|
||
> if I recall correctly, the Char coding menu in the Source window never worked
before.
No, it worked before (auto-detect, manually force...), at least last month. It
is a recently regression, and it's better to fix it.
Renominate it as nsbeta1, cause we have a not functional menu item.
Comment 9•23 years ago
|
||
>No, it worked before (auto-detect, manually force...),
Did it really worked? You could see the text, but it really doesn't
do anything after changing the encoding.
I checked with NS6.1 and NS6.2. Neither worked.
Comment 10•23 years ago
|
||
Yes, on N6.2.1 time, change encoding didn't do anything is because we had a bug
93330 for not working with user forced charset, but auto-detect should works on
N6.2.1.
And we fixed the user manually force charset bug in trunk build after N6.2.1
released.
Comment 11•23 years ago
|
||
understood. thanks ylong.
Comment 12•23 years ago
|
||
nsbeta1- not many users uses this feature (charset menu in view source), the
user can go to browser and to change charset and then view source again
Comment 13•23 years ago
|
||
>nsbeta1- not many users uses this feature (charset menu in view source), the
>user can go to browser and to change charset and then view source again
Shouldn't we remove it all together then? There is no use for it.
One argument I can think of for keeping this menu is:
1) user want to check the encoding for the page while viewing the source
Well, I don't think the user _uses_ the Source Window to check the encoding.
He/she does it in the browser.
Comment 14•23 years ago
|
||
cc shanjian
Comment 15•23 years ago
|
||
This could be related to the changes done on Apr 1 (bug #40867)
cc rpotts
Comment 16•23 years ago
|
||
My patch in bug 122524 doesn't seem to have this bug (I have switched to an
overlay sharable between the view-source modes).
Comment 18•22 years ago
|
||
*** Bug 153238 has been marked as a duplicate of this bug. ***
Comment 19•22 years ago
|
||
simon, can you take a look at this one? yokoyama is too busy.
mark nsbeta1+ for m1.2final release and change tm=m1.2beta.
Assignee | ||
Comment 20•22 years ago
|
||
No errors appear in the JS console in up-to-date builds, but the window still
goes blank when changing encoding.
On the other hand, changing encoding works well in View Selection Source, where
it isn't useful because the view source window is in UTF-8, not the original
page encoding.
Comment 21•22 years ago
|
||
This problem not only happens when change the charset but also when change the
auto-detector option ( on 10-08 trunk build).
Comment 22•22 years ago
|
||
*** Bug 173792 has been marked as a duplicate of this bug. ***
Comment 23•22 years ago
|
||
*** Bug 176700 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 24•22 years ago
|
||
Does the fix for bug 102437 have any implications for this?
Comment 25•22 years ago
|
||
Nope. That code was simply never executed. If it affected this bug in any way,
please let me know immediately because that would mean something is deathly
wrong somewhere.
Comment 26•22 years ago
|
||
The BrowserSetForcedCharacterSet function in browser.js appears to be
incompatible with view-source because it calls BrowserReloadWithFlags
instead of PageLoader.LoadPage; redefining the function works for me;
comments, anyone?
Comment 27•22 years ago
|
||
Comment on attachment 105820 [details] [diff] [review]
Patch that works for me
r/sr=bzbarsky. Nice catch!
Attachment #105820 -
Flags: superreview+
Comment 28•22 years ago
|
||
Comment on attachment 105820 [details] [diff] [review]
Patch that works for me
r=shanjian, I remember the change in browser reload to use a flag is to address
some concern (speed? form content?). It should not affect source view or it
shouldn't matter much.
Attachment #105820 -
Flags: review+
Assignee | ||
Comment 29•22 years ago
|
||
Thank you for fixing this, Neil. Do you have CVS checkin rights? If not, I will
check this in.
Comment 30•22 years ago
|
||
The flag in browser is to make sure we get from cache, not from network. View
source should be doing this already no matter what.
Comment 31•22 years ago
|
||
It might be worth adding a code-level comment to the effect that the function is
overriding an existing function in browser.js to avoid this bug. This way,
people can learn from there and quickly track any similar troublesome issue in
the future.
Comment 32•22 years ago
|
||
So, could whoever checks in this patch for me also add that comment? Thanks.
Assignee | ||
Comment 33•22 years ago
|
||
I guess comment 32 implies a "Yes" to the question in comment 29 :-) I will take
care of this.
Assignee | ||
Comment 34•22 years ago
|
||
Checked in. Thanks again, Neil!
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•