Skip to content

Commit

Permalink
Bug 808636 - Restyle mobile error pages. r=margaret
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes Johnston committed Aug 15, 2013
1 parent 549289d commit e0f8ef1
Show file tree
Hide file tree
Showing 9 changed files with 169 additions and 124 deletions.
12 changes: 6 additions & 6 deletions mobile/android/chrome/content/aboutCertError.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
should be updated. If this page starts using a different favicon
than neterrorm nsFaviconService->SetAndLoadFaviconForPage
should be updated to ignore this one as well. -->
<link rel="icon" type="image/png" id="favicon" sizes="64x64" href="chrome://global/skin/icons/warning-64.png"/>
<link rel="icon" type="image/png" id="favicon" sizes="64x64" href="chrome://browser/skin/images/certerror-warning.png"/>

<script type="application/javascript"><![CDATA[
// Error url MUST be formatted like this:
Expand Down Expand Up @@ -189,14 +189,14 @@

<body id="errorPage" class="certerror" dir="&locale.dir;">

<!-- Error Title -->
<div id="errorTitle">
<h1 class="errorTitleText">&certerror.longpagetitle;</h1>
</div>

<!-- PAGE CONTAINER (for styling purposes only) -->
<div id="errorPageContainer">

<!-- Error Title -->
<div id="errorTitle">
<h1 class="errorTitleText">&certerror.longpagetitle;</h1>
</div>

<!-- LONG CONTENT (the section most likely to require scrolling) -->
<div id="errorLongContent">
<div id="introContent">
Expand Down
36 changes: 7 additions & 29 deletions mobile/android/chrome/content/blockedSite.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<head>
<meta name="viewport" content="width=device-width; user-scalable=false" />
<link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all" />
<link rel="icon" type="image/png" id="favicon" sizes="64x64" href="chrome://global/skin/icons/blacklist_large.png"/>
<link rel="icon" type="image/png" id="favicon" sizes="64x64" href="chrome://browser/skin/images/blocked-warning.png"/>

<script type="application/javascript"><![CDATA[
// Error url MUST be formatted like this:
Expand Down Expand Up @@ -123,40 +123,18 @@
.innerHTML;
}
]]></script>
<style type="text/css">
/* Style warning button to look like a small text link in the
bottom right. This is preferable to just using a text link
since there is already a mechanism in browser.js for trapping
oncommand events from unprivileged chrome pages (BrowserOnCommand).*/
#ignoreWarningButton {
-moz-appearance: none;
background: transparent;
border: none;
text-decoration: underline;
margin: 0;
padding: 0;
position: relative;
top: 23px;
left: 20px;
font-size: smaller;
}

#ignoreWarning {
text-align: right;
}
</style>
</head>

<body id="errorPage" class="blockedsite" dir="&locale.dir;">

<!-- Error Title -->
<div id="errorTitle">
<h1 id="errorTitleText_phishing" class="errorTitleText">&safeb.blocked.phishingPage.title2;</h1>
<h1 id="errorTitleText_malware" class="errorTitleText">&safeb.blocked.malwarePage.title;</h1>
</div>

<div id="errorPageContainer">

<!-- Error Title -->
<div id="errorTitle">
<h1 id="errorTitleText_phishing" class="errorTitleText">&safeb.blocked.phishingPage.title2;</h1>
<h1 id="errorTitleText_malware" class="errorTitleText">&safeb.blocked.malwarePage.title;</h1>
</div>

<div id="errorLongContent">

<!-- Short Description -->
Expand Down
12 changes: 6 additions & 6 deletions mobile/android/chrome/content/netError.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all" />
<!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in
toolkit/components/places/src/nsFaviconService.h should be updated. -->
<link rel="icon" type="image/png" id="favicon" sizes="64x64" href="chrome://global/skin/icons/warning-64.png"/>
<link rel="icon" type="image/png" id="favicon" sizes="64x64" href="chrome://browser/skin/images/errorpage-warning.png"/>

<script type="application/javascript"><![CDATA[
// Error url MUST be formatted like this:
Expand Down Expand Up @@ -330,14 +330,14 @@
</div>
</div>

<!-- Error Title -->
<div id="errorTitle">
<h1 class="errorTitleText" />
</div>

<!-- PAGE CONTAINER (for styling purposes only) -->
<div id="errorPageContainer">

<!-- Error Title -->
<div id="errorTitle">
<h1 class="errorTitleText" />
</div>

<!-- LONG CONTENT (the section most likely to require scrolling) -->
<div id="errorLongContent">

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions mobile/android/themes/core/images/dropmarker-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion mobile/android/themes/core/images/dropmarker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mobile/android/themes/core/images/errorpage-warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion mobile/android/themes/core/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ chrome.jar:
skin/images/arrowleft-16.png (images/arrowleft-16.png)
skin/images/arrowright-16.png (images/arrowright-16.png)
skin/images/arrowdown-16.png (images/arrowdown-16.png)
skin/images/blocked-warning.png (images/blocked-warning.png)
skin/images/checkbox_checked.png (images/checkbox_checked.png)
skin/images/checkbox_checked_disabled.png (images/checkbox_checked_disabled.png)
skin/images/checkbox_checked_pressed.png (images/checkbox_checked_pressed.png)
Expand All @@ -46,8 +47,9 @@ chrome.jar:
skin/images/chevron.png (images/chevron.png)
skin/images/default-app-icon.png (images/default-app-icon.png)
skin/images/dropmarker.svg (images/dropmarker.svg)
skin/images/dropmarker-right.svg (images/dropmarker-right.svg)
skin/images/errorpage-warning.png (images/errorpage-warning.png)
skin/images/errorpage-warning.png (images/errorpage-warning.png)
skin/images/certerror-warning.png (images/certerror-warning.png)
skin/images/errorpage-larry-white.png (images/errorpage-larry-white.png)
skin/images/errorpage-larry-black.png (images/errorpage-larry-black.png)
skin/images/marketplace-logo.png (images/marketplace-logo.png)
Expand Down
Loading

0 comments on commit e0f8ef1

Please sign in to comment.