Closed Bug 1695864 Opened 4 years ago Closed 4 years ago

nsWebBrowserPersist::SerializeNextFile iterates mURIMap twice

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: sg, Assigned: sg)

Details

Attachments

(1 file)

nsWebBrowserPersist::SerializeNextFile iterates mURIMap twice:

  • First, just to check whether the second iteration would have any matches that need persisting
  • Second, to persist those matches

The first iteration seems useless and should be removed.

There's a comment in place that mentions that the number of not-yet-persisted URIs could be maintained separately, which is still an optimization that can be implemented after fixing this.

Assignee: nobody → sgiesecke
Status: NEW → ASSIGNED
Severity: -- → N/A
Priority: -- → P3
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/97ab44ec70e2 Remove redundant mURIMap iteration in nsWebBrowserPersist::SerializeNextFile. r=jld
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: