Closed
Bug 79608
Opened 24 years ago
Closed 24 years ago
Embedding API: get/set charset
Categories
(Core :: Internationalization, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9.2
People
(Reporter: bstell, Assigned: bstell)
References
Details
Attachments
(3 files)
11.07 KB,
patch
|
Details | Diff | Splinter Review | |
11.13 KB,
patch
|
Details | Diff | Splinter Review | |
11.13 KB,
patch
|
Details | Diff | Splinter Review |
embedded gecko needs an API to get/set the charset
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
ftang: I checked this with vidur. Would you review this?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
Assignee | ||
Comment 4•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Whiteboard: patch waiting on platform buddy review
Comment 5•24 years ago
|
||
do we also need to change
/xpfe/browser/resources/content/fastnav.js, line 792 --
getBrowser().documentCharsetInfo.forcedCharset = characterSet;
?
Comment 6•24 years ago
|
||
please ask vidur to review.
Assignee | ||
Comment 7•24 years ago
|
||
Comment 8•24 years ago
|
||
1. the following should be changed
RCS file: /cvsroot/mozilla/intl/chardet/public/MANIFEST_IDL,v
+nsIDOcCharset.idl
should be
+nsIDocCharset.idl
2. we need to add nsIDocCharset.idl into mozilla/intl/chardet/macbuild/
chardetIDL.mcp after we check in nsIDOcCharset.idl and before we land other
stuff.
I verify on both mac and window, it build and run without problem.
Comment 9•24 years ago
|
||
r=ftang
Assignee | ||
Comment 10•24 years ago
|
||
a couple of notes:
the diff of Makefile.in and makefile.win have a line continuator '\'
which makes patch cranky.
the DomWindow GI function may collide with the DomWindow GI patch
in http://bugzilla.mozilla.org/show_bug.cgi?id=75538 . I will merge
as necessary.
Assignee | ||
Updated•24 years ago
|
Whiteboard: patch waiting on platform buddy review → patch waiting on super review 05/16/ 17:06
Comment 11•24 years ago
|
||
TM to 0.9.2 per PDT triage (it's OK to check it in by Friday or after 0.9.2 branch).
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Comment 12•24 years ago
|
||
sr=vidur for the patch.
We need to create an inventory of interfaces that should be GIable from
nsIDOMWindow. I'm almost tempted to have nsGlobalWindow::GI called
nsDocShell::GI...or would that be too evil?
Assignee | ||
Comment 13•24 years ago
|
||
what about adding nsGlobalWindowto BoxObject?
Assignee | ||
Comment 14•24 years ago
|
||
code checkin in last night
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: patch waiting on super review 05/16/ 17:06
Comment 15•24 years ago
|
||
Brian, please put more information QA can verify this.
Comment 17•23 years ago
|
||
http://lxr.mozilla.org/mozilla/source/xpfe/global/resources/content/charsetOverl
ay.js#18
BrowserSetDefaultCharacterSet() is currently do nothing.
why MultiplexHandler still call SetDefaultCharacterSet()?
Assignee | ||
Comment 18•23 years ago
|
||
> BrowserSetDefaultCharacterSet() is currently do nothing.
As I understand it that call is no longer used.
> why MultiplexHandler still call SetDefaultCharacterSet()?
To set the fallback character set.
Comment 19•23 years ago
|
||
brian, you can see that:
58 function SetDefaultCharacterSet(charset)
59 {
60 dump("Charset Overlay menu item pressed: " + charset + "\n");
61 BrowserSetDefaultCharacterSet(charset);
62 }
since BrowserSetDefaultCharacterSet(charset) do nothing,
SetDefaultCharacterSet do nothing meanful.
So I think MultiplexHandler can remove SetDefaultCharacterSet .
Assignee | ||
Comment 20•23 years ago
|
||
yes, it looks like the javascript one does not do anything but the C++ one
does:
http://lxr.mozilla.org/seamonkey/source/content/base/src/nsDocumentViewer.cpp#68
64
If you would like to remove this might I suggest you open a new bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•