Prevent background thumbnails from causing high CPU usage

NEW
Unassigned

Status

()

Toolkit
General
6 days ago
6 days ago

People

(Reporter: Mardak, Unassigned)

Tracking

({perf})

Trunk
Points:
---

Firefox Tracking Flags

(firefox59 affected)

Details

(Reporter)

Description

6 days ago
Bug 1412505 had a temporary fix to ignore twitch.tv, so it doesn't cause high CPU when its javascript fails to load <video> in the background thumbnail context, which sets `docShell.allowMedia = false;`

Ideally a more general solution can be used for any site that would have caused high CPU.

A broad `docShell.allowJavascript = false` is undesired as many pages probably require javascript for a nice looking thumbnail.

Potentially Firefox can be reactive and learn that thumbnailing certain sites cause high CPU and dynamically blacklists.

Alternatively, some way in preventing the javascript from using up so much CPU could work too. Although unclear exactly what twitch.tv is doing. (My initial guess is the <video> element triggered some event that resulted in a retry that then repeats immediately.)

Updated

6 days ago
Keywords: perf
You need to log in before you can comment on or make changes to this bug.