Closed Bug 1050456 Opened 10 years ago Closed 10 years ago

Kill pages that reach the maximum script execution timeout in prerendering mode

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The reasoning is that we cannot show the dialog to the user.
Assignee: nobody → ehsan
Comment on attachment 8572207 [details] [diff] [review] Prevent prerendered pages from showing the slow script dialog >+ // This doesn't work yet. We manage to get the source of the script somehow. >+ // TODO investigate if we can get to the page running the script from there... What's with these comments? >+ if (docShell && docShell->GetIsPrerendered()) { Might be nice to have a getter for prerendering state on the window so we don't have to do the docshell dance here.... r=me either way, as long as those comments are fixed to either reflect reality or explain what they're talking about.
Attachment #8572207 - Flags: review?(bzbarsky) → review+
(In reply to Not doing reviews right now from comment #2) > Comment on attachment 8572207 [details] [diff] [review] > Prevent prerendered pages from showing the slow script dialog > > >+ // This doesn't work yet. We manage to get the source of the script somehow. > >+ // TODO investigate if we can get to the page running the script from there... > > What's with these comments? Oops, sorry I was investigating issues with the test, these are my todo comments. > >+ if (docShell && docShell->GetIsPrerendered()) { > > Might be nice to have a getter for prerendering state on the window so we > don't have to do the docshell dance here.... Done: https://hg.mozilla.org/integration/mozilla-inbound/rev/3d9f869afa7c https://hg.mozilla.org/integration/mozilla-inbound/rev/52b5566554b0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: