Closed Bug 1649349 Opened 4 years ago Closed 4 years ago

Reject DocumentLoadListener's Open promise as soon as we decide to switch process

Categories

(Core :: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

We currently defer rejecting the Open promise when we process switch, since we want to first notify the old process that the load has moved.

This is to prevent sub-frame process switches from accidentally marking the outer document as loaded.

Unfortunately, this causes extra complexity in DocumentLoadListener (we need to track the transitional state, where we're logically disconnected and can't be cancelled, without actually being disconnected).

I think we can just instead reject immediately, but let the consumers know that it's a process switch rejection, and they can handle it accordingly.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by mwoodrow@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/28298106459d
Don't delay rejecting DocumentLoadListener's Open promise when we switch process. r=jya
Pushed by mwoodrow@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3e349b00a1e4
Don't delay rejecting DocumentLoadListener's Open promise when we switch process. r=jya
Pushed by mwoodrow@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9f7c95cb5aac
Don't delay rejecting DocumentLoadListener's Open promise when we switch process. r=jya
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Regressions: 1652441
Flags: needinfo?(matt.woodrow)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: