Closed
Bug 1279120
Opened 8 years ago
Closed 8 years ago
ContentSearchUI.js leaks a blob URL when you change default search engine
Categories
(Firefox :: Search, defect)
Firefox
Search
Tracking
()
VERIFIED
FIXED
Firefox 50
Tracking | Status | |
---|---|---|
firefox50 | --- | verified |
People
(Reporter: bkelly, Assigned: bkelly)
Details
(Whiteboard: [MemShrink])
Attachments
(1 file)
1.74 KB,
patch
|
adw
:
review+
|
Details | Diff | Splinter Review |
ContentSearchUI.js uses createObjectURL(), but never calls revokeObjectURL(). This is most noticeable when you have an about:newtab running the search box and then change your default search engine. It drops the reference to the old default search icon, but fails to revoke the URL. So the blob URL leaks until the about:newtab is closed.
Assignee | ||
Comment 1•8 years ago
|
||
Drew, this patch just calls revokeObjectURL() on the icon URLs when we no longer need them. There is no harm in calling it if the URL was not created with createObjectURL(). It fixes the blob URL leak in my local testing.
Attachment #8761445 -
Flags: review?(adw)
Comment 2•8 years ago
|
||
Comment on attachment 8761445 [details] [diff] [review]
Call revokeObjectURL() on search engine icon blob URLs. r=adw
Review of attachment 8761445 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks! Sorry this took so long.
Attachment #8761445 -
Flags: review?(adw) → review+
Pushed by bkelly@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f0d6274311d4
Call revokeObjectURL() on search engine icon blob URLs. r=adw
Comment 4•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Comment 5•8 years ago
|
||
Verified as RESOLVED on Firefox Aurora 50.0a2(2016-09-09) using Linux Mint 18
Comment 6•8 years ago
|
||
Verified as RESOLVED on Firefox Aurora 50.0a2(2016-09-09) using Linux Mint 18
Updated•8 years ago
|
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•