Closed
Bug 231475
Opened 22 years ago
Closed 21 years ago
crash when I run range's surroundContents method
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: volod_0x16, Unassigned)
Details
(Keywords: crash, stackwanted, testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
browser craches when I browse html with such content:
<html><body>
<script type="text/javascript">
range = document.createRange();
newNode = document.createElement("b");
range.selectNodeContents(document);
range.surroundContents(newNode)
</script>
text
</body></html>
Reproducible: Always
Steps to Reproduce:
1. create html file with content:
<html><body>
<script type="text/javascript">
range = document.createRange();
newNode = document.createElement("b");
range.selectNodeContents(document);
range.surroundContents(newNode)
</script>
text
</body></html>
2. try to view it
3.
Actual Results:
brower has crashed
Comment 1•22 years ago
|
||
I don't crash using Firebird 20040119 on Win2k.
JS console shows:
Error: uncaught exception: [Exception... "Component returned failure code:
0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMRange.surroundContents]" nsresult:
"0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: testcase.html ::
<TOP_LEVEL> :: line 6" data: no]
Can you get a stack on Linux and attach it via "create a new attachment" ?
http://www.mozilla.org/unix/debugging-faq.html
if you're using the standard mozilla startup script, just do
% mozilla -g
(gdb) run
[wait for mozilla to crash]
(gdb) bt
Attach the output from "bt" via "create a new attachment" (on bugzilla)
Severity: normal → critical
Keywords: crash,
stackwanted
Comment 5•22 years ago
|
||
A stack trace from a nightly is not useful.....
Assignee: general → traversal-range
Component: DOM: Core → DOM: Traversal-Range
I get the same error as Olivier from Comment 1 did and no crash. Using LInux
2004020207
Comment 7•21 years ago
|
||
I saw this crash using 1.6, but not 1.7beta (or a current trunk). Resolving as
WORKSFORME. Reporter, please re-open if this is still a problem on 1.7beta or
newer.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Comment 8•17 years ago
|
||
Crashtest added as part of http://hg.mozilla.org/mozilla-central/rev/afc662d52ab1
Flags: in-testsuite+
Updated•12 years ago
|
Component: DOM: Traversal-Range → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•