Open Bug 1401640 Opened 7 years ago Updated 2 years ago

Do unpacked extension checks off the main thread

Categories

(WebExtensions :: Request Handling, enhancement, P3)

57 Branch
enhancement

Tracking

(firefox57 affected)

Tracking Status
firefox57 --- affected

People

(Reporter: haik, Assigned: haik)

Details

For unpacked developer extensions (i.e., when an extension developer loads an extension from a directory and not a JAR file) ExtensionProtocolHandler::NewStream() does some checks to make sure the moz-extension URI it loads on behalf of child processes resolves to a file within the directory. Specifically, it calls nsIFile::Normalize() and widget::WinUtils::ResolveJunctionPointsAndSymLinks() which would be better to do off the main thread. On Mac and Linux, nsIFile::Normalize() calls realpath(3). This code is also used for system extensions when Firefox is run from a developer repo (as in ./mach run.)
Assignee: nobody → haftandilian
Priority: -- → P3
Product: Toolkit → WebExtensions
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.