Bug 974435 - Remove inline scripts and styles usage via JavaScript for shell.html and shell.js r=fabrice

This commit is contained in:
Giovanny Andres Gongora Granada 2015-02-22 18:17:31 -08:00
parent 643351e2e2
commit 6735b07792
5 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
body {
background: black;
}

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
<head>
<link rel="stylesheet" href="blank.css" type="text/css" media="all" />
</head>
</html>

View File

@ -9,10 +9,20 @@ html {
height: 100%;
padding: 0 !important;
}
body {
margin: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
iframe {
overflow: hidden;
height: 100%;
width: 100%;
border: none;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}

View File

@ -311,8 +311,7 @@ var shell = {
systemAppFrame.setAttribute('mozbrowser', 'true');
systemAppFrame.setAttribute('mozapp', manifestURL);
systemAppFrame.setAttribute('allowfullscreen', 'true');
systemAppFrame.setAttribute('style', "overflow: hidden; height: 100%; width: 100%; border: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0;");
systemAppFrame.setAttribute('src', "data:text/html;charset=utf-8,%3C!DOCTYPE html>%3Cbody style='background:black;");
systemAppFrame.setAttribute('src', 'blank.html');
let container = document.getElementById('container');
#ifdef MOZ_WIDGET_COCOA
// See shell.html

View File

@ -13,6 +13,8 @@ chrome.jar:
* content/shell.html (content/shell.html)
* content/shell.js (content/shell.js)
content/shell.css (content/shell.css)
content/blank.html (content/blank.html)
content/blank.css (content/blank.css)
#ifdef MOZ_WIDGET_GONK
content/devtools/adb.js (content/devtools/adb.js)
#endif