Bug 381467 - Switch application/x-javascript to application/javascript; (Cv1) /docshell/resources/content/netError.xhtml.
authorSerge Gautherie <sgautherie.bz@free.fr>
Tue, 15 Dec 2009 22:25:41 +0100
changeset 36228 2337f12e8e9cfe59ea57220392df7f7aa50c2ff2
parent 36227 878545a1236aec27b4651baee94afa24731146de
child 36229 dc2e649c530ff660c5bf624ce93e24ad2609c48d
push id10733
push usersgautherie.bz@free.fr
push dateTue, 15 Dec 2009 21:29:29 +0000
treeherdermozilla-central@dc2e649c530f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs381467
milestone1.9.3a1pre
Bug 381467 - Switch application/x-javascript to application/javascript; (Cv1) /docshell/resources/content/netError.xhtml. r=cbiesinger.
docshell/resources/content/netError.xhtml
--- a/docshell/resources/content/netError.xhtml
+++ b/docshell/resources/content/netError.xhtml
@@ -58,17 +58,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <title>&loadError.label;</title>
     <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" href="chrome://global/skin/icons/warning-16.png"/>
 
-    <script type="application/x-javascript"><![CDATA[
+    <script type="application/javascript"><![CDATA[
       // Error url MUST be formatted like this:
       //   moz-neterror:page?e=error&u=url&d=desc
       //
       // or optionally, to specify an alternate CSS class to allow for
       // custom styling and favicon:
       //
       //   moz-neterror:page?e=error&u=url&s=classname&d=desc
 
@@ -371,12 +371,12 @@
 
     </div>
 
     <!--
     - Note: It is important to run the script this way, instead of using
     - an onload handler. This is because error pages are loaded as
     - LOAD_BACKGROUND, which means that onload handlers will not be executed.
     -->
-    <script type="application/x-javascript">initPage();</script>
+    <script type="application/javascript">initPage();</script>
 
   </body>
 </html>