The page load stop and refresh buttons do nothing when the E10S slow script notification is being shown.
Categories
(Firefox :: General, defect, P3)
Tracking
()
People
(Reporter: jujjyl, Unassigned)
References
(Blocks 3 open bugs)
Details
Attachments
(3 files, 1 obsolete file)
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Comment 3•10 years ago
|
||
Updated•9 years ago
|
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Comment 10•6 years ago
|
||
Updated•6 years ago
|
Comment 11•4 years ago
|
||
Mike, do you know why the patch here never landed?
Comment 12•4 years ago
|
||
Wow, yes - looks like the patch went through review, and just never got landed. No checkin-needed was set, nobody tried to push it to integration/fx-team (which I guess was the technique at the time). I think this was an oversight. :/
Updated•4 years ago
|
Comment 13•4 years ago
|
||
Looks like bug 1493225 reinvented bits of the wheel here.
Comment 14•4 years ago
|
||
Olli, I'm trying to resurrect the patch here, but I noticed that back/forward/go-to-history-index and navigation are already doing something like this, via maybeCancelContentJSExecution
- but we do not do this for stop and reload (and in fact, the navigation code has an explicit escape-clause that avoids cancelling JS when the new URL is the same (ignoring ref). You reviewed the patches in bug 1493225.
Is the "right" fix here to opt the refresh and stop behaviours into the same mechanism, or is that likely to cause other issues and should I use the process hang monitor the way the attached patch does? Although I've seen that the maybeCancelContentJSExecution
stuff works via docshell, I can't quite figure out if/how it'd stop scripts in the way the slow script notification bar does, and/or if it (for instance) wouldn't stop extension script running against the same webpage.
TL;DR: how does nsIRemoteTab's canceling of content JS compare to the process hang monitor, and which one do we want here?
Comment 15•4 years ago
|
||
In bug 1493225 we wanted to limit the scope a bit, in order to make it a bit less risky.
But I think that mechanism should work well with reloads. I guess stop shouldn't be too bad either, since the page is most probably broken anyhow
if stop is pressed.
The underlying mechanism maybeCancelContentJSExecution uses should be similar to slow script notification - get a JS interruption callback call and inform that script execution should be stopped.
Cancelling content JS uses PProcessHangMonitor so that we have a communication channel outside PContent.
Updated•2 years ago
|
Description
•