Closed Bug 1539238 Opened 5 years ago Closed 5 years ago

Modify nsSHEntry::Create to consolidate setter calls on nsSHEntry in nsDocShell::AddToSessionHistory

Categories

(Core :: DOM: Navigation, enhancement, P2)

Other Branch
enhancement

Tracking

()

RESOLVED FIXED
Fission Milestone M2

People

(Reporter: annyG, Assigned: annyG)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We would like to squash these calls https://searchfox.org/mozilla-central/rev/2c912888e3b7ae4baf161d98d7a01434f31830aa/docshell/base/nsDocShell.cpp#11395-11407 into one by modifying nsSHEntry::Create signature

Status: NEW → ASSIGNED
Fission Milestone: --- → M2
Priority: -- → P2
Blocks: fission-history
No longer blocks: 1438272
Depends on: 1438272

nsDocShell is the only consumer of nsISHEntry::Create, and
in AddToSessionHistory method, after calling nsISHEntry::Create,
it calls 4 setter methods on nsISHEntry, which results in a
total of 5 sync IPC calls.

With the proposed solution of setting everything via
nsISHEntry::Create, we get a total of 1 sync IPC call.

Whiteboard: [4/25] patch r+, blocked on bug 1438272 to land
Whiteboard: [4/25] patch r+, blocked on bug 1438272 to land → [5/3] patch r+, waiting on try run to land
Whiteboard: [5/3] patch r+, waiting on try run to land
Version: unspecified → Other Branch
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Pushed by pvanderbeken@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a1f164c082f6
Modify nsSHEntry::Create to consolidate setter calls on nsSHEntry in nsDocShell::AddToSessionHistory, r=peterv
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: