Bug 92104 - Web Inspector: [Regression] Filler row disappears from network log view.
Summary: Web Inspector: [Regression] Filler row disappears from network log view.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-24 05:47 PDT by Vsevolod Vlasov
Modified: 2012-07-24 11:04 PDT (History)
13 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vsevolod Vlasov 2012-07-24 05:47:36 PDT
This happens because http://trac.webkit.org/changeset/123281 broke table's childNodes implementation.

Here is a reduction:

// Initialize table
table = document.createElement("table");
for (var i = 0; i<3;++i) {
    tr = document.createElement("tr");
    td = document.createElement("td");
    tr.appendChild(td);
    table.appendChild(tr);
}

// lastElement value is incorrect (td instead of tr).
lastElement = table.childNodes[table.childNodes.length - 1];
// This code fixes the bug.
for (var i = 0; i<table.childNodes.length;++i)
    var tmp = table.childNodes[i];
// lastElement2 value is correct.
lastElement2 = table.childNodes[table.childNodes.length - 1];
console.log(lastElement.tagName);
console.log(lastElement2.tagName);
console.assert(lastElement === lastElement2); // <-- this assertion fails.
Comment 1 Ryosuke Niwa 2012-07-24 10:20:32 PDT
Does this bug reproduce after http://trac.webkit.org/changeset/123359 ?
Comment 2 Dimitri Glazkov (Google) 2012-07-24 10:30:52 PDT
(In reply to comment #1)
> Does this bug reproduce after http://trac.webkit.org/changeset/123359 ?

There was widespread breakage of internal tools at Google after http://trac.webkit.org/changeset/123281, but http://trac.webkit.org/changeset/123359 seems to have fixed them all.
Comment 3 Vsevolod Vlasov 2012-07-24 11:04:14 PDT
Indeed, it doesn't reproduce on ToT.