Closed Bug 767738 Opened 13 years ago Closed 13 years ago

Reader Mode: Use site favicon

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox16 verified)

VERIFIED FIXED
Firefox 17
Tracking Status
firefox16 --- verified

People

(Reporter: aaronmt, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently in reader mode the current favicon is the target build branded favicon (e.g, Nightly)
Agree. Ian, Madhava, confirm?
Make it so.
Attachment #646159 - Flags: review?(mbrubeck)
Comment on attachment 646159 [details] [diff] [review] Use favicon from the original site in Reader Review of attachment 646159 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, with one possible concern: ::: mobile/android/base/GeckoApp.java @@ +868,5 @@ > + public void onPostExecute(String faviconUrl) { > + if (faviconUrl != null) { > + StringBuffer sb = new StringBuffer(); > + sb.append("{ \"url\" : \"").append(url).append("\"") > + .append(", \"faviconUrl\" : \"").append(faviconUrl).append("\"") Why are you building JSON using string manipulation rather than JSON objects here? (Is the performance better?) Are we quite certain that url and faviconUrl are sufficiently sanitized (no double-quotes)?
Attachment #646159 - Flags: review?(mbrubeck) → review+
(In reply to Matt Brubeck (:mbrubeck) from comment #4) > Comment on attachment 646159 [details] [diff] [review] > Use favicon from the original site in Reader > > Review of attachment 646159 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks good, with one possible concern: > > ::: mobile/android/base/GeckoApp.java > @@ +868,5 @@ > > + public void onPostExecute(String faviconUrl) { > > + if (faviconUrl != null) { > > + StringBuffer sb = new StringBuffer(); > > + sb.append("{ \"url\" : \"").append(url).append("\"") > > + .append(", \"faviconUrl\" : \"").append(faviconUrl).append("\"") > > Why are you building JSON using string manipulation rather than JSON objects > here? (Is the performance better?) Are we quite certain that url and > faviconUrl are sufficiently sanitized (no double-quotes)? Just felt overkill to use the JSON API but your point about quoting in the URL is a good one. I'll send a new patch using JSON API.
Attachment #646159 - Attachment is obsolete: true
Attachment #646359 - Flags: review?(mbrubeck) → review+
Comment on attachment 646359 [details] [diff] [review] Use favicon from the original site in Reader [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Reader won't show proper favicons from the original site Testing completed (on m-c, etc.): Risk to taking this patch (and alternatives if risky): not risky, reader-only change. String or UUID changes made by this patch: none Reader on the Firefox 16 roadmap.
Attachment #646359 - Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Attachment #646359 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
(In reply to Lucas Rocha (:lucasr) from comment #10) > Pushed to aurora: > https://hg.mozilla.org/releases/mozilla-aurora/rev/dff198fbc2ce Backed out for bustage, which persisted after clobber: https://hg.mozilla.org/releases/mozilla-aurora/rev/81279c9aef08
Sorry, forgot the log: https://tbpl.mozilla.org/php/getParsedLog.php?id=13966573&tree=Mozilla-Aurora Also, please may you watch the tree when landing on aurora (or ask someone to watch it for you). Inbound is the only tree to have that exemption.
(In reply to Ed Morley [:edmorley] from comment #12) > Sorry, forgot the log: > https://tbpl.mozilla.org/php/getParsedLog.php?id=13966573&tree=Mozilla-Aurora > > Also, please may you watch the tree when landing on aurora (or ask someone > to watch it for you). Inbound is the only tree to have that exemption. I missed the dependency on the bug 774306 patch to land this in aurora. Requested approval now.
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: