Closed
Bug 767738
Opened 13 years ago
Closed 13 years ago
Reader Mode: Use site favicon
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox16 verified)
VERIFIED
FIXED
Firefox 17
Tracking | Status | |
---|---|---|
firefox16 | --- | verified |
People
(Reporter: aaronmt, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
11.49 KB,
patch
|
mbrubeck
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Currently in reader mode the current favicon is the target build branded favicon (e.g, Nightly)
Comment 1•13 years ago
|
||
Agree. Ian, Madhava, confirm?
Comment 2•13 years ago
|
||
Make it so.
Comment 3•13 years ago
|
||
Attachment #646159 -
Flags: review?(mbrubeck)
Comment 4•13 years ago
|
||
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+
Comment 5•13 years ago
|
||
(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.
Comment 6•13 years ago
|
||
Attachment #646359 -
Flags: review?(mbrubeck)
Updated•13 years ago
|
Attachment #646159 -
Attachment is obsolete: true
Updated•13 years ago
|
Attachment #646359 -
Flags: review?(mbrubeck) → review+
Comment 7•13 years ago
|
||
Comment 8•13 years ago
|
||
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?
Comment 9•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Updated•13 years ago
|
Attachment #646359 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 10•13 years ago
|
||
Pushed to aurora: https://hg.mozilla.org/releases/mozilla-aurora/rev/dff198fbc2ce
Comment 11•13 years ago
|
||
(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
Comment 12•13 years ago
|
||
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.
Comment 13•13 years ago
|
||
(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.
Comment 14•13 years ago
|
||
Pushed to aurora: https://hg.mozilla.org/releases/mozilla-aurora/rev/906986f587b7
Reporter | ||
Updated•13 years ago
|
Reporter | ||
Updated•13 years ago
|
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•