Closed Bug 234844 Opened 22 years ago Closed 16 years ago

NS_HTMLEDITOR_COMMANDTABLE_CID and NS_HTMLEDITOR_DOCSTATE_COMMANDTABLE_CID have malformed CIDs

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 224678

People

(Reporter: timeless, Assigned: sgautherie)

References

()

Details

Attachments

(1 file)

nsComposerRegistration.cpp r:/mozilla\editor\composer\src\nsComposerRegistration.cpp(59) : warning C4305: 'initializing' : truncation from 'int' to 'PRUint8' r:/mozilla\editor\composer\src\nsComposerRegistration.cpp(59) : warning C4309: 'initializing' : truncation of constant value r:/mozilla\editor\composer\src\nsComposerRegistration.cpp(60) : warning C4305: 'initializing' : truncation from 'int' to 'PRUint8' r:/mozilla\editor\composer\src\nsComposerRegistration.cpp(60) : warning C4309: 'initializing' : truncation of constant value r:/mozilla\editor\composer\src\nsComposerRegistration.cpp(229) : warning C4305: 'initializing' : truncation from 'int' to 'PRUint8' r:/mozilla\editor\composer\src\nsComposerRegistration.cpp(229) : warning C4309: 'initializing' : truncation of constant value r:/mozilla\editor\composer\src\nsComposerRegistration.cpp(233) : warning C4305: 'initializing' : truncation from 'int' to 'PRUint8' r:/mozilla\editor\composer\src\nsComposerRegistration.cpp(233) : warning C4309: 'initializing' : truncation of constant value { 0x7a727843, 0x6ae1, 0x11d7, { 0xa5eb, 0x00, 0x03, 0x93, 0x63, 0x65, 0x92 } } ^^^^ ^^ { 0x800e07bc, 0x6ae1, 0x11d7, { 0x959b, 0x00, 0x03, 0x93, 0x63, 0x65, 0x92 } } ^^^^ ^^ I suppose the 'correct' fix is to just reissue cid's for them.
I don't think that I compile the file that you have fingered, but I do have this patch for the composer source which you may want to consider. RCS file: /cvsroot/mozilla/editor/composer/src/nsEditingSession.cpp,v retrieving revision 1.24 diff -u -r1.24 nsEditingSession.cpp --- src/nsEditingSession.cpp 11 Feb 2004 15:40:34 -0000 1.24 +++ src/nsEditingSession.cpp 19 Feb 2004 06:03:05 -0000 @@ -672,7 +672,7 @@ } } // - // A network or document Request as finished... + // A network or document Request has finished... // else if (aStateFlags & nsIWebProgressListener::STATE_STOP) { @@ -703,6 +703,7 @@ nsCOMPtr<nsIChannel> channel = do_QueryInterface(aRequest); nsresult rv = EndDocumentLoad(aWebProgress, channel, aStatus, IsProgressForTargetDocument(aWebProgress)); + NS_WARN_IF_FALSE( !rv, "nsEditingSession::OnStateChange EndDocumentLoad returned with error" ); #ifdef NOISY_DOC_LOADING printf("STATE_STOP & STATE_IS_DOCUMENT flags=%x\n", aStateFlags); #endif @@ -930,6 +931,7 @@ if (domWindow) { nsresult rv = TearDownEditorOnWindow(domWindow); + NS_WARN_IF_FALSE( !rv, "nsEditingSession::StartDocumentLoad TearDownEditorOnWindow returned with error" ); } if (aIsToBeMadeEditable)
Ben, that patch is unrelated to this bug and very very wrong. Nonzero rv does NOT indicate failure. Please feel free to mail me if you have any questions.
Sorry for submitting duff info, but I suspect that there an 'unused variable' warning there. Would you like me to try again?
Product: Browser → Seamonkey
Status: NEW → RESOLVED
Closed: 16 years ago
OS: Windows XP → All
QA Contact: composer
Hardware: x86 → All
Resolution: --- → DUPLICATE
Depends on: 209020
(In reply to comment #1) > - // A network or document Request as finished... > + // A network or document Request has finished... Let it be done. > @@ -703,6 +703,7 @@ > nsresult rv = EndDocumentLoad(aWebProgress, channel, aStatus, > @@ -930,6 +931,7 @@ > nsresult rv = TearDownEditorOnWindow(domWindow); These unused |nsresult rv| were removed by bug 209020.
Attachment #379335 - Flags: superreview?(bzbarsky)
Attachment #379335 - Flags: review?(bzbarsky)
Attachment #379335 - Flags: superreview?(bzbarsky)
Attachment #379335 - Flags: superreview+
Attachment #379335 - Flags: review?(bzbarsky)
Attachment #379335 - Flags: review+
Keywords: checkin-needed
Whiteboard: [c-n: Av1 to m-c after m-1.9.1 freeze]
Assignee: timeless → sgautherie.bz
Flags: in-testsuite-
Comment on attachment 379335 [details] [diff] [review] (Av1) nsEditingSession.cpp: (unrelated) s/as/has/ [Checkin: Comment 6] http://hg.mozilla.org/mozilla-central/rev/ba70e64391d9
Attachment #379335 - Attachment description: (Av1) nsEditingSession.cpp: (unrelated) s/as/has/ → (Av1) nsEditingSession.cpp: (unrelated) s/as/has/ [Checkin: Comment 6]
Keywords: checkin-needed
Whiteboard: [c-n: Av1 to m-c after m-1.9.1 freeze]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: