Closed Bug 1391158 Opened 7 years ago Closed 7 years ago

Add checkLoadURL fast path for extension URLs

Categories

(WebExtensions :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We call checkLoadURL *a lot*, and the for the extremely common case of checking an extension URL, a simple substring check is orders of magnitude cheaper than creating a nsIURI and going through the security manager.
Comment on attachment 8898126 [details]
Bug 1391158: Optimize checkLoadURL for the common case of extension URLs.

https://reviewboard.mozilla.org/r/169474/#review174914
Attachment #8898126 - Flags: review?(mixedpuppy) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/ee33fed596af4461bc2e30fede68dba2c90596c3
Bug 1391158: Optimize checkLoadURL for the common case of extension URLs. r=mixedpuppy
Pushed by maglione.k@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ee33fed596af
Optimize checkLoadURL for the common case of extension URLs. r=mixedpuppy
https://hg.mozilla.org/mozilla-central/rev/ee33fed596af
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: