Closed
Bug 325469
Opened 20 years ago
Closed 19 years ago
Crash on view selection source after inserting table over dom
Categories
(Toolkit :: View Source, defect)
Tracking
()
VERIFIED
INCOMPLETE
People
(Reporter: lars, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
After inserting a number of nested elements (table) using DOM a use of the feature "view selection source" instantly makes Firefox crash with an "Unreported Problem" (without freezing).
Reproducible: Always
Steps to Reproduce:
1. Use the following source-code in a page
<body>
<script>
// the crash seems to depend on the number of loops (i and j), for instance if i < 5 nothing happened when I tried.
var tmp, tmp2, table = document.createElement( "table" );
for(var i = 0; i < 6; i++)
{
tmp = document.createElement( "tr");
tmp2 = document.createElement( "th");
tmp.appendChild(tmp2);
table.appendChild(tmp);
for(var j = 0; j < 6; j ++)
tmp.appendChild(document.createElement( "td"));
}
document.body.appendChild(table);
</script>
Select this text, right-click, view selection source and firefox crashes (1.5)
</body>
2. Select the text, click on "view selection source", the browser should report an unexpected error and close (if not try increasing the variables (i & j).
Actual Results:
Firefox crashes (in some cases shows the source before doing so).
This appears to be some kind of overflow as it depends on the number of repetitions in the loops whether the browser crashes. Maybe I made improper use of the tmp and tmp2 variables, in any case - its still a bug.
Comment 1•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060201 Firefox/1.6a1 ID:2006020105
Tried it in 1.5, 1.0.7, branch and trunk but it doesn't crash here.
Could you provide a Talkback ID?
Comment 2•19 years ago
|
||
No response from reporter re: comment 1 -->INCOMPLETE.
Reporter, if you still see this problem with Firefox 2 please reopen this bug. Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INCOMPLETE
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
| Assignee | ||
Updated•18 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•