Closed
Bug 1359111
Opened 8 years ago
Closed 8 years ago
BrowserUtils.jsm's makeURI method just adds overhead
Categories
(Toolkit :: General, enhancement, P1)
Toolkit
General
Tracking
()
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Blocks 1 open bug)
Details
(Whiteboard: [photon-performance])
Attachments
(2 files, 2 obsolete files)
20.33 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
1.02 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
I assume that when this was added the benefit was to let callers omit the last 2 parameters, but now that bug 1329182 made them optional, using this just adds cross compartment wrapper overhead (https://perfht.ml/2pXRUgd is a profile where I noticed it, although the time spent in here isn't significant).
Updated•8 years ago
|
Flags: qe-verify?
Priority: -- → P2
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8861068 -
Flags: review?(jaws)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → florian
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8861069 -
Flags: review?(jaws)
Updated•8 years ago
|
Iteration: --- → 55.4 - May 1
Priority: P2 → P1
Assignee | ||
Comment 3•8 years ago
|
||
It looks like there are ~30 add-ons currently calling BrowserUtils.makeURI. Not sure if removing it was a good idea. I did it to avoid new callers from m-c without needing to make an eslint rule to ban it. Do we care about breaking 30 old style add-ons (that may already be broken for different reasons) these days?
Comment 4•8 years ago
|
||
Comment on attachment 8861068 [details] [diff] [review]
remove BrowserUtils.makeURI
The overhead here is negligible and not worth breaking add-ons for. This should wait until 57 when we drop support for old-style addons.
Attachment #8861068 -
Flags: review?(jaws)
Comment 5•8 years ago
|
||
Comment on attachment 8861069 [details] [diff] [review]
remove BrowserUtils.makeFileURI
The overhead here is negligible and not worth breaking add-ons for. This should wait until 57 when we drop support for old-style addons.
Attachment #8861069 -
Flags: review?(jaws)
Assignee | ||
Comment 6•8 years ago
|
||
Attachment #8861152 -
Flags: review?(jaws)
Assignee | ||
Updated•8 years ago
|
Attachment #8861068 -
Attachment is obsolete: true
Assignee | ||
Comment 7•8 years ago
|
||
Attachment #8861154 -
Flags: review?(jaws)
Assignee | ||
Updated•8 years ago
|
Attachment #8861069 -
Attachment is obsolete: true
Comment 8•8 years ago
|
||
Comment on attachment 8861152 [details] [diff] [review]
stop using BrowserUtils.makeURI
Review of attachment 8861152 [details] [diff] [review]:
-----------------------------------------------------------------
Maybe put a note on the BrowserUtils method to say that it is deprecated?
Attachment #8861152 -
Flags: review?(jaws) → review+
Comment 9•8 years ago
|
||
Comment on attachment 8861154 [details] [diff] [review]
stop using BrowserUtils.makeFileURI
Review of attachment 8861154 [details] [diff] [review]:
-----------------------------------------------------------------
Mark this one as deprecated as well?
Attachment #8861154 -
Flags: review?(jaws) → review+
Comment 10•8 years ago
|
||
Pushed by florian@queze.net:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f4513b54917c
stop using BrowserUtils.makeURI, r=jaws.
https://hg.mozilla.org/integration/mozilla-inbound/rev/3e047ce30a32
stop using BrowserUtils.makeFileURI, r=jaws.
Updated•8 years ago
|
Flags: qe-verify? → qe-verify-
Comment 11•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f4513b54917c
https://hg.mozilla.org/mozilla-central/rev/3e047ce30a32
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Assignee | ||
Updated•8 years ago
|
No longer blocks: photon-performance-triage
Assignee | ||
Updated•8 years ago
|
Blocks: photon-performance-triage
You need to log in
before you can comment on or make changes to this bug.
Description
•