Closed Bug 1473253 Opened 6 years ago Closed 6 years ago

Stop setting onerror attribute on tabs

Categories

(Firefox :: Tabbed Browser, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 63
Tracking Status
firefox63 --- fixed

People

(Reporter: dao, Assigned: manishkk, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file)

Since tabbrowser itself doesn't load icons from the network anymore, I suppose this error handling isn't needed anymore. Is there a risk that we get invalid data URIs or something?

https://searchfox.org/mozilla-central/rev/97d488a17a848ce3bebbfc83dc916cf20b88451c/browser/base/content/tabbrowser.xml#116

https://searchfox.org/mozilla-central/rev/97d488a17a848ce3bebbfc83dc916cf20b88451c/browser/base/content/tabbrowser.js#2223
Flags: needinfo?(dtownsend)
We should never get invalid data URIs to my knowledge. We do still have some cases where we pass the icon url directly through when they are chrome: for example so maybe if they are broken this still might have some effect. Probably not needed though.
Flags: needinfo?(dtownsend)
Flags: needinfo?(dao+bmo)
Priority: P5 → P3
Mentor: dao+bmo
Flags: needinfo?(dao+bmo)
Keywords: good-first-bug
Whiteboard: [lang=js]
Assignee: nobody → 1991manish.kumar
Need to remove these lines only?


> https://searchfox.org/mozilla-central/rev/
> 97d488a17a848ce3bebbfc83dc916cf20b88451c/browser/base/content/tabbrowser.
> xml#116
> 
> https://searchfox.org/mozilla-central/rev/
> 97d488a17a848ce3bebbfc83dc916cf20b88451c/browser/base/content/tabbrowser.
> js#2223
Flags: needinfo?(dao+bmo)
(In reply to Manish Kumar [:manishkk] from comment #2)
> Need to remove these lines only?
> 
> 
> > https://searchfox.org/mozilla-central/rev/
> > 97d488a17a848ce3bebbfc83dc916cf20b88451c/browser/base/content/tabbrowser.
> > xml#116
> > 
> > https://searchfox.org/mozilla-central/rev/
> > 97d488a17a848ce3bebbfc83dc916cf20b88451c/browser/base/content/tabbrowser.
> > js#2223

Yep.
Flags: needinfo?(dao+bmo)
Attached patch Patch_Bug1473253 (deleted) — Splinter Review
Please review.

Thanks
Attachment #8990775 - Flags: review?(dao+bmo)
Comment on attachment 8990775 [details] [diff] [review]
Patch_Bug1473253

Looks good, thanks!
Attachment #8990775 - Flags: review?(dao+bmo) → review+
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f823c4cfd7ce
Stop setting onerror attribute on tabs. r=dao
https://hg.mozilla.org/mozilla-central/rev/f823c4cfd7ce
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: