Closed
Bug 810342
Opened 13 years ago
Closed 13 years ago
Toolbar shadow is not drawn on about:blank
Categories
(Firefox for Android Graveyard :: Theme and Visual Design, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 21
People
(Reporter: admin, Assigned: kshriram18)
Details
(Whiteboard: [mentor=lucasr][lang=java])
Attachments
(2 files, 3 obsolete files)
23.87 KB,
image/png
|
Details | |
1.27 KB,
patch
|
lucasr
:
review+
|
Details | Diff | Splinter Review |
The shadow that is drawn between the toolbar and the page on web pages is not drawn on about:blank.
Comment 1•13 years ago
|
||
This has become more noticeable of recent as we appear to set the URL to about:blank now while bringing up the browser(?)
Comment 2•13 years ago
|
||
Morrison, this is probably because of this line here:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/BrowserToolbar.java#770
We don't show shadow on "about:" pages so that there's no visual distinction between the page background and the toolbar in about:home, about:firefox, and about:addons. Seems like the same shouldn't apply to about:blank.
Comment 3•13 years ago
|
||
Following the comment 2 I'm confirming this Bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•13 years ago
|
Whiteboard: [mentor=lucasr][lang=java]
Assignee | ||
Comment 4•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #695452 -
Flags: review?(lucasr.at.mozilla)
Assignee | ||
Comment 5•13 years ago
|
||
Uses the right String class method, and adds relevant information to the corresponding comment
Attachment #695452 -
Attachment is obsolete: true
Attachment #695452 -
Flags: review?(lucasr.at.mozilla)
Updated•13 years ago
|
Assignee: nobody → kshriram18
Comment 6•13 years ago
|
||
Comment on attachment 695467 [details] [diff] [review]
Patch that fixes Toolbar shadow issue for about:blank
Shriram, I'm just assuming you forgot to ask lucasr for review on this new patch :)
Attachment #695467 -
Flags: review?(lucasr.at.mozilla)
Comment 7•13 years ago
|
||
Comment on attachment 695467 [details] [diff] [review]
Patch that fixes Toolbar shadow issue for about:blank
Review of attachment 695467 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the Patch Shriram. Looks almost right. Use equals instead of compareTo.
::: mobile/android/base/BrowserToolbar.java
@@ +928,5 @@
> String url = tab.getURL();
>
> + // Only set shadow to visible when not on about screens except about:blank.
> + visible &= !(url == null || (url.startsWith("about:") &&
> + url.compareTo("about:blank")));
Doesn't String.compareTo() return an integer? I think you can simply use equals() here (which returns a boolean).
Attachment #695467 -
Flags: review?(lucasr.at.mozilla) → review-
Assignee | ||
Updated•13 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•13 years ago
|
||
Replaces compareTo with equals as per last comment.
Attachment #695467 -
Attachment is obsolete: true
Attachment #699906 -
Flags: review?(lucasr.at.mozilla)
Comment 9•13 years ago
|
||
Comment on attachment 699906 [details] [diff] [review]
Patch that fixes Toolbar shadow issue for about:blank
Review of attachment 699906 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/BrowserToolbar.java
@@ +928,5 @@
> String url = tab.getURL();
>
> + // Only set shadow to visible when not on about screens except about:blank.
> + visible &= !(url == null || (url.startsWith("about:") &&
> + url.equals("about:blank")));
drive-by comment: i think this should be !url.equals instead of url.equals.
Assignee | ||
Comment 10•13 years ago
|
||
Fixes mistake from previous patch as per last comment.
Thank you Kats. Sorry about that. Done in haste
Attachment #699906 -
Attachment is obsolete: true
Attachment #699906 -
Flags: review?(lucasr.at.mozilla)
Attachment #699992 -
Flags: review?(lucasr.at.mozilla)
Updated•13 years ago
|
Attachment #699992 -
Flags: review?(lucasr.at.mozilla) → review+
Comment 11•13 years ago
|
||
Pushed: https://hg.mozilla.org/integration/mozilla-inbound/rev/d70c9eb65c75
Thanks for your patch Shriram! Let me know if you're looking for your next bug to fix ;-)
Assignee | ||
Comment 12•13 years ago
|
||
Definitely. Thanks again Lucas for the review. I've a few bugs in mind.
I've also noted down couple of bugs you mentioned on IRC #mobile. will stay in touch
Comment 13•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
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
•