Closed
Bug 582048
Opened 15 years ago
Closed 14 years ago
Make network error pages mobile friendly
Categories
(Firefox for Android Graveyard :: General, enhancement)
Firefox for Android Graveyard
General
Tracking
(firefox8 fixed, fennec8+)
VERIFIED
FIXED
Firefox 8
People
(Reporter: stechz, Assigned: wesj)
References
(Depends on 1 open bug)
Details
(Whiteboard: [inbound])
Attachments
(6 files, 3 obsolete files)
4.12 KB,
application/zip
|
Details | |
430.09 KB,
image/png
|
Details | |
45.77 KB,
image/png
|
Details | |
54.62 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
8.24 KB,
patch
|
Details | Diff | Splinter Review | |
2.47 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
* Change network error pages to compensate for high DPI
* Leverage places to provide good suggestions.
Updated•15 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Updated•15 years ago
|
Severity: normal → enhancement
Would your first bullet point make it so users wouldn't have to zoom in to read the text or to scroll to see all of the text?
Comment 2•14 years ago
|
||
Links to the text used on the neterror page and the new blocked site page:
http://mxr.mozilla.org/mozilla-central/source/mobile/locales/en-US/chrome/overrides/netError.dtd
http://mxr.mozilla.org/mozilla-central/source/browser/locales/en-US/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd
Comment 3•14 years ago
|
||
We have several uses of the word "computer" in this file too:
http://mxr.mozilla.org/mozilla-central/source/mobile/locales/en-US/chrome/browser.properties
Making a note here, but we can open a new bug too.
Comment 4•14 years ago
|
||
(In reply to comment #3)
> We have several uses of the word "computer" in this file too:
> http://mxr.mozilla.org/mozilla-central/source/mobile/locales/en-US/chrome/browser.properties
>
> Making a note here, but we can open a new bug too.
filed bug 654733
Comment 5•14 years ago
|
||
This has a visual layout component as well as necessary text edits. Assigning to ibarlow for the visual layout adjustments.
Assignee: nobody → ibarlow
Comment 6•14 years ago
|
||
Here is some great thinking from Boriss about how to make error pages smarter.
* http://jboriss.wordpress.com/2010/01/04/herdict-and-its-tasty-anonymized-aggregated-data/
* http://jboriss.wordpress.com/2009/03/10/improving-everyones-favorite-feature-404/
To be clear, our first priorities are to make our pages not require zooming and panning. The further smartening is definitely after that.
Comment 7•14 years ago
|
||
Also for reference - desktop design work from Stephen Horlander:
http://stephenhorlander.com/pages/incontent-ui-mockups/incontent-ui-mockups.html#netErrorMalwarePhishing
Updated•14 years ago
|
Assignee: ibarlow → fabrice
Comment 8•14 years ago
|
||
Comment 9•14 years ago
|
||
Attached are icon assets for the error pages.
Also, here are the background colours to use for each kind of page:
* Standard error - blue (not tan) - #CEE6F4
* Warning - yellow - #EFD400
* Forgery/malware - red - #BF0000
Comment 10•14 years ago
|
||
In terms of new or revised text, I think the priorities for v6 are
- server not found
- sharedLongDesc, which gets used in a lot of situations
- cert error
Partly, I wanted to make the text mobile-specific (not refer to computers; talk about actual mobile situations), but also shorter so that it would better fit a mobile screen without zooming or too much scrolling. These are a first stab at those (they could be better, but these are, at least, shorter and mobile-specific). We can try for tone improvements later.
Here are the ones to change with their new versions:
In http://mxr.mozilla.org/mozilla-central/source/mobile/locales/en-US/chrome/overrides/netError.dtd
Shared Long Description:
------------------------
--- EXISTING --
<!ENTITY sharedLongDesc "
<ul>
<li>The site could be temporarily unavailable or too busy. Try again in a few
moments.</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
--- NEW ---
<!ENTITY sharedLongDesc "
<ul>
<li>The site could be temporarily unavailable or too busy. Try again in a few
moments.</li>
<li>If you are unable to load any pages, check your mobile device's data or wifi connection.</li>
</ul>
">
Server not found:
-----------------
--- EXISTING ---
<!ENTITY dnsNotFound.title "Server not found">
<!ENTITY dnsNotFound.longDesc "
<ul>
<li>Check the address for typing errors such as
<strong>ww</strong>.example.com instead of
<strong>www</strong>.example.com</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
--- NEW ---
<!ENTITY dnsNotFound.title "Server not found">
<!ENTITY dnsNotFound.longDesc "
<ul>
<li>Check the address for typing errors such as
<strong>ww</strong>.example.com instead of
<strong>www</strong>.example.com</li>
<li>If you are unable to load any pages, check your mobile device's data or wifi connection.</li>
</ul>
">
Comment 11•14 years ago
|
||
Actually for the text of about:certerror, let's see how it fits, with the new layout and sizing shown in the mockup:
http://www.flickr.com/photos/61892693@N03/5693665794/in/set-72157626660609510/
It looks like it might be just fine, and the text isn't desktop-specific as it stands.
Assignee | ||
Comment 12•14 years ago
|
||
Need to take a little time to clean this up and test it some more, but looks pretty good. Some differences between desktop and device. May need to move to using more from defines.inc, but using mozmm in content is giving me funky results.
Assignee | ||
Comment 13•14 years ago
|
||
Assignee | ||
Comment 14•14 years ago
|
||
Also (as a reminder for myself) need to play with these at tablet sizes.
Comment 15•14 years ago
|
||
Hi Wesley, thanks for posting the screenshots, these pages are looking good!
I have some feedback regarding spacing and type size etc here: http://cl.ly/0V013V3a42110j3d2e0h
Thanks,
Ian
Assignee | ||
Comment 16•14 years ago
|
||
Works pretty well. Note, I can't really use things from defines.inc here because the remote pages are going to be scaled (they are about pages, but our about page sniffing code sees them as their original uri's, so they load remotely). The defines sizes we use don't really work on remote pages so here I've just defined them in the css file.
I also am having trouble finding a nice way to scale the white "content" area of the error page to the window height. Even if I do, its going to be difficult to account for the urlbar height like the mockups do. Not sure how important that is to us?
Also, missing the arrow icons used in the mockups. Screenshots coming...
Assignee: fabrice → wjohnston
Attachment #542512 -
Attachment is obsolete: true
Attachment #545534 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 17•14 years ago
|
||
Both gingerbread and froyo themes. Also an example of landscape/tablet appearance.
Assignee | ||
Updated•14 years ago
|
Attachment #542513 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Attachment #545536 -
Flags: feedback?(ibarlow)
Comment 18•14 years ago
|
||
Comment on attachment 545534 [details] [diff] [review]
Patch v1
>diff --git a/mobile/chrome/content/netError.xhtml b/mobile/chrome/content/netError.xhtml
Is this file mostly a copy from desktop, with some changes needed for CSS?
>diff --git a/mobile/themes/core/gingerbread/netError.css b/mobile/themes/core/gingerbread/netError.css
>+body {
>+ font: message-box;
We might want to forego this font and just use our normal:
font-family: "Nokia Sans", Tahoma, sans-serif !important;
(which we use in other about: pages)
>+button {
>+ -moz-appearance: none;
>+ min-height: 2.5em !important; /* button size */
>+ color: #000;
>+ margin: 8px 0px;
>+ padding: 0px 8px;
>+ background-image: url("chrome://browser/skin/images/button-bg.png");
>+ background-size: auto 100%;
>+ border: 1px solid #999999;
>+ font-size: 16px;
>+ -moz-border-radius: 2px;
drop the -moz-
>+}
Why isn't the content.css button styling working here? or is itand we just want to use a different button style?
>diff --git a/mobile/themes/core/jar.mn b/mobile/themes/core/jar.mn
>+ skin/gingerbread/images/errorpage-warning.png (images/errorpage-warning.png)
>+ skin/gingerbread/images/errorpage-larry-white.png (images/errorpage-larry-white.png)
>+ skin/gingerbread/images/errorpage-larry-black.png (images/errorpage-larry-black.png)
>+
>
> chrome.jar:
No need for extra line
>diff --git a/mobile/themes/core/netError.css b/mobile/themes/core/netError.css
why do we need the different CSS files? (tell me the differences without forcing me to diff them myself :)
waiting to r+ until we get the CSS questions answered
Assignee | ||
Comment 19•14 years ago
|
||
> Is this file mostly a copy from desktop, with some changes needed for CSS?
Mostly. I also moved the title area (i.e. "Server not found") out of the content box, and did a little class reorganisation.
> Why isn't the content.css button styling working here? or is it and we just
> want to use a different button style?
Just trying to match the original mockups, which I thought used something that looked more like the prefs pane button styles. Those are the only differences between the gingerbread and froyo css. Attached is a desktop screenshot of (gingerbread theme) using (instead):
button {
padding: 0.3em !important;
}
Comment 20•14 years ago
|
||
Could you guys consider bug 646624 during this redesign?
Comment 21•14 years ago
|
||
(In reply to comment #20)
> Could you guys consider bug 646624 during this redesign?
Too different and separate.
Comment 22•14 years ago
|
||
(In reply to comment #19)
> Just trying to match the original mockups, which I thought used something
> that looked more like the prefs pane button styles. Those are the only
> differences between the gingerbread and froyo css. Attached is a desktop
> screenshot of (gingerbread theme) using (instead):
>
> button {
> padding: 0.3em !important;
> }
Does this mean we don't need separate CSS for froyo and gingerbread? IMO, buttons in content are buttons in content. If we want the buttons to look different in gingerbread, we would change button CSS for _all_ buttons in content, which is not this bug.
Let's make the changes to try to drop gingerbread CSS for netError.css and get this landed. Put up a new patch (and the diffs, if possible) so we can keep moving ahead.
Assignee | ||
Comment 23•14 years ago
|
||
Updated patch. I'll post a diff netError.xhtml with the desktop one. The CSS code is changed a lot. Do you want anything else diffed?
Attachment #545534 -
Attachment is obsolete: true
Attachment #546257 -
Flags: review?(mark.finkle)
Attachment #545534 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 24•14 years ago
|
||
Comment 25•14 years ago
|
||
Comment on attachment 546257 [details] [diff] [review]
Patch v1.1
>diff --git a/mobile/app/mobile.js b/mobile/app/mobile.js
> // Device pixel to CSS px ratio, in percent. Set to -1 to calculate based on display density.
>-pref("browser.viewport.scaleRatio", -1);
>+pref("browser.viewport.scaleRatio", 150);
Revert this before landing
Attachment #546257 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 26•14 years ago
|
||
Whiteboard: [inbound]
Comment 27•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 8
Comment 28•14 years ago
|
||
A small note. This comment: http://hg.mozilla.org/mozilla-central/rev/82e5ddf9f788#l8.14 is now useless and should be removed.
Updated•14 years ago
|
tracking-fennec: --- → ?
status-firefox8:
--- → fixed
Comment 29•14 years ago
|
||
More nits: using "wifi" in some strings and "WiFi" in others. I think they should be "WiFi".
Comment 30•14 years ago
|
||
(In reply to comment #29)
> More nits: using "wifi" in some strings and "WiFi" in others. I think they
> should be "WiFi".
We are changing to "Wi-Fi"
Whoever patches, remember to bump the entities
Assignee | ||
Comment 31•14 years ago
|
||
Nice catch. This doesn't change the entity names. I am going to check in a few days to find locales that followed my original bad text and file bugs for them individually.
Assignee | ||
Updated•14 years ago
|
Attachment #546918 -
Flags: review?(mark.finkle)
Updated•14 years ago
|
Attachment #546918 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 32•14 years ago
|
||
I pushed this straight to central:
http://hg.mozilla.org/mozilla-central/rev/f649b7177495
trying to minmize l10n headache...
Comment 33•14 years ago
|
||
Last time (change from "..." to "…" in en-US, bug 653141 comment 46) Axel told that style changes don't require changing entities' names. IMO this is the same situation.
On the contrary, I'm more concerned other changes like this one
-<!ENTITY connectionFailure.longDesc "&sharedLongDesc;">
+<!ENTITY connectionFailure.longDesc "&sharedLongDesc2;">
compare-locales catches these changes, but that's still breaking a basic rule: don't make substantial changes to content without changing entity's name.
Comment 34•14 years ago
|
||
Verified Fixed
Mozilla/5.0 (Android; Linux armv7l; rv:8.0a1) Gecko/20110726 Firefox/8.0a1 Fennec/8.0a1
Status: RESOLVED → VERIFIED
Updated•14 years ago
|
tracking-fennec: ? → 8+
Assignee | ||
Updated•13 years ago
|
Attachment #545536 -
Flags: feedback?(ibarlow)
You need to log in
before you can comment on or make changes to this bug.
Description
•