Closed
Bug 1145914
Opened 10 years ago
Closed 10 years ago
Multiple attribute changes are queued up on server and sent over with the same values
Categories
(DevTools :: Inspector, defect)
DevTools
Inspector
Tracking
(firefox39 fixed)
RESOLVED
FIXED
Firefox 39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: bgrins, Assigned: bgrins)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file, 1 obsolete file)
5.77 KB,
patch
|
dcamp
:
review+
|
Details | Diff | Splinter Review |
Open the inspector on https://bgrins.github.io/devtools-demos/inspector/mutations.html.
There is an attribute changing in a loop:
for (var i = 0; i < 1000; i++) {
document.querySelector("#toofast").setAttribute("data-toofast", toofast++);
}
If you open the inspector on that tab and watch the protocol traffic, you'll see 1000 duplicate packets per batch like this:
{
"type": "attributes",
"target": "server1.conn1.domnode107",
"numChildren": 3,
"attributeName": "data-toofast",
"newValue": "5999"
},
{
"type": "attributes",
"target": "server1.conn1.domnode107",
"numChildren": 3,
"attributeName": "data-toofast",
"newValue": "5999"
},
{
"type": "attributes",
"target": "server1.conn1.domnode107",
"numChildren": 3,
"attributeName": "data-toofast",
"newValue": "5999"
}
Assignee | ||
Comment 1•10 years ago
|
||
Interestingly, after the fix in Bug 1139569, the frontend doesn't care much about these duplicate packets since the attribute value hasn't changed, but we still shouldn't send them to prevent unnecessary noise
See Also: → 1139569
Assignee | ||
Comment 2•10 years ago
|
||
Something like this, probably
Assignee | ||
Updated•10 years ago
|
Comment 3•10 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #2)
> https://bgrins.github.io/devtools-demos/inspector/mutations.html
You just killed my browser with this page :)
Assignee | ||
Comment 4•10 years ago
|
||
Dave, we've discussed the issue in which multiple attribute modifications get queued up and sent across in a single call to getMutations. This patch prunes out any duplicate attribute modifications that happen within a single call to getMutations. What do you think? If you're too busy, please redirect the review to Patrick.
Assignee: nobody → bgrinstead
Attachment #8581010 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8581691 -
Flags: review?(dcamp)
Assignee | ||
Comment 5•10 years ago
|
||
Updated•10 years ago
|
Attachment #8581691 -
Flags: review?(dcamp) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 6•10 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•