Closed Bug 49728 Opened 24 years ago Closed 24 years ago

bullet character gets lost

Categories

(Core :: DOM: Editor, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 46554

People

(Reporter: warrensomebody, Assigned: mozeditor)

Details

I've noticed that if you cut a list of bullets out of an html page and then 
paste them into another bulleted list, the last bullet character is lost. E.g. 
cut this:

  o first
  o second
  o third

and get this

  o first
  o second
    third

It seems to be related to not grabbing the CR at the end of the third line.
I also noticed that if you first select some other bullets, and paste the 
bulleted list on top of that such as to replace the original set, you get the 
following assertion:

NTDLL! 77f7629c()
nsDebug::Assertion(const char * 0x035dfd20, const char * 0x035dfd08, const char 
* 0x035dfcd0, int 0x0000036e) line 253 + 13 bytes
nsTextEditRules::DidDeleteSelection(nsIDOMSelection * 0x060055f0, 
nsIEditor::EDirection eNone, unsigned int 0x00000000) line 878 + 32 bytes
nsTextEditRules::DidDoAction(nsTextEditRules * const 0x060a8144, 
nsIDOMSelection * 0x060055f0, nsRulesInfo * 0x0012c244, unsigned int 
0x00000000) line 296 + 23 bytes
nsHTMLEditRules::DidDoAction(nsHTMLEditRules * const 0x060a8144, 
nsIDOMSelection * 0x060055f0, nsRulesInfo * 0x0012c244, unsigned int 
0x00000000) line 369
nsHTMLEditor::DeleteSelection(nsHTMLEditor * const 0x060a8af0, 
nsIEditor::EDirection eNone) line 2360 + 55 bytes
nsHTMLEditorLog::DeleteSelection(nsHTMLEditorLog * const 0x060a8af0, 
nsIEditor::EDirection eNone) line 159 + 13 bytes
nsHTMLEditor::DeleteSelectionAndPrepareToCreateNode(nsHTMLEditor * const 
0x060a8af0, nsCOMPtr<nsIDOMNode> & {...}, int & 0x0012c764) line 6295 + 14 
bytes
nsHTMLEditor::InsertHTMLWithCharset(nsHTMLEditor * const 0x060a8b78, const 
nsString & {"
        bug <a 
href="http://bugzilla.mozilla.org/show_bug.cgi?id=48464">#48464</a>:
          
<a href="http://bugzilla.mozill"}, const nsString & {""}) line 2443 + 32 bytes
nsHTMLEditor::InsertHTML(nsHTMLEditor * const 0x060a8b78, const nsString & {"
        
bug <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=48464">#48464</a>:
          
<a href="http://bugzilla.mozill"}) line 2409 + 23 bytes
nsHTMLEditor::InsertFromTransferable(nsHTMLEditor * const 0x060a8af0, 
nsITransferable * 0x06027780) line 4674 + 29 bytes
nsHTMLEditor::Paste(nsHTMLEditor * const 0x060a8af0, int 0x00000001) line 5003 
+ 24 bytes
nsHTMLEditorLog::Paste(nsHTMLEditorLog * const 0x060a8af0, int 0x00000001) line 
357 + 13 bytes
nsPasteCommand::DoCommand(nsPasteCommand * const 0x03443c10, const unsigned 
short * 0x02c73400, nsISupports * 0x060a8af0) line 166 + 40 bytes
nsControllerCommandManager::DoCommand(nsControllerCommandManager * const 
0x034422d0, const unsigned short * 0x02c73400, nsISupports * 0x060a8af0) line 
189 + 31 bytes
nsEditorController::DoCommand(nsEditorController * const 0x05f08ad0, const 
unsigned short * 0x02c73400) line 201
XPTC_InvokeByIndex(nsISupports * 0x05f08ad0, unsigned int 0x00000005, unsigned 
int 0x00000001, nsXPTCVariant * 0x0012cd48) line 139
nsXPCWrappedNativeClass::CallWrappedMethod(JSContext * 0x06468950, 
nsXPCWrappedNative * 0x06156460, const XPCNativeMemberDescriptor * 0x04b4d4ac, 
nsXPCWrappedNativeClass::CallMode CALL_METHOD, unsigned int 0x00000001, long * 
0x05108d2c, long * 0x0012cef8) line 915 + 43 bytes
WrappedNative_CallMethod(JSContext * 0x06468950, JSObject * 0x05095f18, 
unsigned int 0x00000001, long * 0x05108d2c, long * 0x0012cef8) line 226 + 34 
bytes
js_Invoke(JSContext * 0x06468950, unsigned int 0x00000001, unsigned int 
0x00000000) line 716 + 23 bytes
js_Interpret(JSContext * 0x06468950, long * 0x0012d834) line 2517 + 15 bytes
js_Invoke(JSContext * 0x06468950, unsigned int 0x00000001, unsigned int 
0x00000002) line 732 + 13 bytes
js_InternalInvoke(JSContext * 0x06468950, JSObject * 0x04fd0778, long 
0x050e8cc0, unsigned int 0x00000000, unsigned int 0x00000001, long * 
0x0012d9c8, long * 0x0012d958) line 805 + 19 bytes
JS_CallFunctionValue(JSContext * 0x06468950, JSObject * 0x04fd0778, long 
0x050e8cc0, unsigned int 0x00000001, long * 0x0012d9c8, long * 0x0012d958) line 
3146 + 31 bytes
nsJSContext::CallEventHandler(nsJSContext * const 0x0646c210, void * 
0x04fd0778, void * 0x050e8cc0, unsigned int 0x00000001, void * 0x0012d9c8, int 
* 0x0012d9c4, int 0x00000000) line 847 + 33 bytes
nsJSEventListener::HandleEvent(nsIDOMEvent * 0x06026380) line 154 + 64 bytes
nsXULKeyListenerImpl::HandleEventUsingKeyset(nsXULKeyListenerImpl * const 
0x0348e030, nsIDOMElement * 0x0602108c, nsIDOMKeyEvent * 0x06026380, eEventType 
eKeyPress, nsIDOMXULDocument * 0x06015b9c, int & 0x00000001) line 1656
nsXULKeyListenerImpl::LocateAndExecuteKeyBinding(nsXULKeyListenerImpl * const 
0x0348e030, nsIDOMKeyEvent * 0x06026380, eEventType eKeyPress, 
nsIDOMXULDocument * 0x06015b9c, int & 0x00000001) line 1338 + 37 bytes
nsXULKeyListenerImpl::DoKey(nsIDOMEvent * 0x06026384, eEventType eKeyPress) 
line 665
nsXULKeyListenerImpl::KeyPress(nsIDOMEvent * 0x06026384) line 574
nsEventListenerManager::HandleEvent(nsIPresContext * 0x05f5a780, nsEvent * 
0x0012f858, nsIDOMEvent * * 0x0012f580, nsIDOMEventTarget * 0x06518750, 
unsigned int 0x00000002, nsEventStatus * 0x0012f7c4) line 1114 + 23 bytes
nsXULDocument::HandleDOMEvent(nsXULDocument * const 0x06518730, nsIPresContext 
* 0x05f5a780, nsEvent * 0x0012f858, nsIDOMEvent * * 0x0012f580, unsigned int 
0x00000002, nsEventStatus * 0x0012f7c4) line 2118
nsXULElement::HandleDOMEvent(nsXULElement * const 0x0651a8e0, nsIPresContext * 
0x05f5a780, nsEvent * 0x0012f858, nsIDOMEvent * * 0x0012f580, unsigned int 
0x00000002, nsEventStatus * 0x0012f7c4) line 3312 + 39 bytes
nsXULElement::HandleDOMEvent(nsXULElement * const 0x03499aa0, nsIPresContext * 
0x05f5a780, nsEvent * 0x0012f858, nsIDOMEvent * * 0x0012f580, unsigned int 
0x00000002, nsEventStatus * 0x0012f7c4) line 3306 + 39 bytes
nsXULElement::HandleChromeEvent(nsXULElement * const 0x03499abc, nsIPresContext 
* 0x05f5a780, nsEvent * 0x0012f858, nsIDOMEvent * * 0x0012f580, unsigned int 
0x00000002, nsEventStatus * 0x0012f7c4) line 4253 + 39 bytes
GlobalWindowImpl::HandleDOMEvent(GlobalWindowImpl * const 0x05e67d40, 
nsIPresContext * 0x05f5a780, nsEvent * 0x0012f858, nsIDOMEvent * * 0x0012f580, 
unsigned int 0x00000002, nsEventStatus * 0x0012f7c4) line 461
nsDocument::HandleDOMEvent(nsDocument * const 0x05ff7160, nsIPresContext * 
0x05f5a780, nsEvent * 0x0012f858, nsIDOMEvent * * 0x0012f580, unsigned int 
0x00000002, nsEventStatus * 0x0012f7c4) line 2995
nsGenericElement::HandleDOMEvent(nsIPresContext * 0x05f5a780, nsEvent * 
0x0012f858, nsIDOMEvent * * 0x0012f580, unsigned int 0x00000001, nsEventStatus 
* 0x0012f7c4) line 1453 + 39 bytes
nsHTMLHtmlElement::HandleDOMEvent(nsHTMLHtmlElement * const 0x06003598, 
nsIPresContext * 0x05f5a780, nsEvent * 0x0012f858, nsIDOMEvent * * 0x00000000, 
unsigned int 0x00000001, nsEventStatus * 0x0012f7c4) line 188
PresShell::HandleEventInternal(nsEvent * 0x0012f858, nsIView * 0x060a99e0, 
nsEventStatus * 0x0012f7c4) line 4024 + 45 bytes
PresShell::HandleEvent(PresShell * const 0x06005764, nsIView * 0x060a99e0, 
nsGUIEvent * 0x0012f858, nsEventStatus * 0x0012f7c4, int 0x00000000, int & 
0x00000001) line 3959 + 23 bytes
nsView::HandleEvent(nsView * const 0x060a99e0, nsGUIEvent * 0x0012f858, 
unsigned int 0x00000008, nsEventStatus * 0x0012f7c4, int 0x00000000, int & 
0x00000001) line 787
nsView::HandleEvent(nsView * const 0x060ad960, nsGUIEvent * 0x0012f858, 
unsigned int 0x00000008, nsEventStatus * 0x0012f7c4, int 0x00000000, int & 
0x00000001) line 760
nsView::HandleEvent(nsView * const 0x06005df0, nsGUIEvent * 0x0012f858, 
unsigned int 0x0000001c, nsEventStatus * 0x0012f7c4, int 0x00000001, int & 
0x00000001) line 760
nsViewManager2::DispatchEvent(nsViewManager2 * const 0x06005f30, nsGUIEvent * 
0x0012f858, nsEventStatus * 0x0012f7c4) line 1412
HandleEvent(nsGUIEvent * 0x0012f858) line 69
nsWindow::DispatchEvent(nsWindow * const 0x060ad824, nsGUIEvent * 0x0012f858, 
nsEventStatus & nsEventStatus_eIgnore) line 614 + 10 bytes
nsWindow::DispatchWindowEvent(nsGUIEvent * 0x0012f858) line 635
nsWindow::DispatchKeyEvent(unsigned int 0x00000083, unsigned short 0x0076, 
unsigned int 0x00000000) line 2215 + 15 bytes
nsWindow::OnChar(unsigned int 0x00000016, unsigned int 0x00000000, unsigned 
char 0x00) line 2339
nsWindow::ProcessMessage(unsigned int 0x00000102, unsigned int 0x00000016, long 
0x002f0001, long * 0x0012fbe0) line 2773 + 33 bytes
nsWindow::WindowProc(HWND__ * 0x00270ce0, unsigned int 0x00000102, unsigned int 
0x00000016, long 0x002f0001) line 883 + 27 bytes
USER32! 77e71820()
mem_
Compositor is the part of the layout engine that merges pictures and text (this
is called 'composition'). The 'composer' component is called 'Editor'.

Reassigning, on the assumption that warren meant 'Editor'. My profound apologies
if you did not!
Assignee: kmcclusk → beppe
Component: Compositor → Editor
QA Contact: petersen → sujay
Yeah, I misread 'composition' as 'composer'.
assigning to jfrancis
Assignee: beppe → jfrancis
Keywords: correctness
Target Milestone: --- → M18
this is a dup of 46554, which akkana owns but i guess i'll grab it...


*** This bug has been marked as a duplicate of 46554 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verified in 8/23 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.