Closed Bug 1385907 Opened 7 years ago Closed 7 years ago

nsHtml5SpeculativeLoad got bloated up a ton without review

Categories

(Core :: DOM: HTML Parser, defect, P2)

53 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: bzbarsky, Assigned: jdm)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 1067345 got landed without any review and adds a ton of members to nsHtml5SpeculativeLoad.  It didn't have to add this many members; it could have reused some existing ones.

This should probably get at least reviewed, if not fixed.
Flags: needinfo?(josh)
Flags: needinfo?(hsivonen)
Henri, do you want to review https://bugzilla.mozilla.org/attachment.cgi?id=8534778&action=diff in particular, or should I tag someone else (wchen, I guess)?
Flags: needinfo?(josh)
Hmm, looks like the actual merged changeset did not exactly match the one that was attached to the bug, either: https://hg.mozilla.org/integration/mozilla-inbound/rev/b64c085b06e1 . In particular, I apparently cleaned up the sketchy changes in HtmlSpeculativeLoad::Perform.
The total number of nsString members of nsHtml5SpeculativeLoad should not exceed the number of strings transported by the speculative load type that needs the largest number of strings.

AFAICT, the max is 5 but we have 10 nsString members. We should have only 5 nsString members whose semantics depend on the op code.
Flags: needinfo?(hsivonen)
(The changeset looked ok otherwise.)
Priority: -- → P2
Attachment #8898067 - Flags: review?(hsivonen)
Assignee: nobody → josh
Status: NEW → ASSIGNED
Attachment #8898067 - Attachment is obsolete: true
Attachment #8898067 - Flags: review?(hsivonen)
Comment on attachment 8898081 [details] [diff] [review]
Combine exclusive fields of nsHtml5SpeculativeLoad

Review of attachment 8898081 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you.
Attachment #8898081 - Flags: review?(hsivonen) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/72e90a73a9bf
Combine exclusive fields of nsHtml5SpeculativeLoad. r=hsivonen
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/72e90a73a9bf
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: