Open Bug 1299505 Opened 8 years ago Updated 2 years ago

Delay frame script instantiation and message delivery for background about:blank tabs


(Firefox :: Session Restore, defect)






(Reporter:, Unassigned)


Idea from bug 844661 comment 17:

Would it be possible to defer and incrementalize the instantiation of frame scripts and message manager message delivery for background about:blank tabs until after session restore finished?

The idea is that

a) anything that loads frame scripts and uses messages is asynchronous and should be able to handle the delayed responses.
b) there is not much loss of functionality if a frame script runs late, i.e. after DOMContentLoaded as long as it's a about:blank page. Especially addons already have to be able to deal with this case anyway since their frame scripts might be loaded on pre-existing tabs.

It wouldn't reduce memory footprint, but it should speed up session restore.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.