diff --git a/b2g/chrome/content/shell.js b/b2g/chrome/content/shell.js
index 16698ce2bc7..cea5b7ae7c9 100644
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -158,7 +158,7 @@ var shell = {
let manifestURL = this.manifestURL;
//
let browserFrame =
@@ -166,7 +166,7 @@ var shell = {
browserFrame.setAttribute('id', 'homescreen');
browserFrame.setAttribute('mozbrowser', 'true');
browserFrame.setAttribute('mozapp', manifestURL);
- browserFrame.setAttribute('mozallowfullscreen', 'true');
+ browserFrame.setAttribute('allowfullscreen', 'true');
browserFrame.setAttribute('style', "overflow: hidden; -moz-box-flex: 1; border: none;");
browserFrame.setAttribute('src', "data:text/html;charset=utf-8,%3C!DOCTYPE html>%3Cbody style='background:black;");
document.getElementById('shell').appendChild(browserFrame);
diff --git a/browser/base/content/test/test_contextmenu.html b/browser/base/content/test/test_contextmenu.html
index 25449c4c9b1..cece6183499 100644
--- a/browser/base/content/test/test_contextmenu.html
+++ b/browser/base/content/test/test_contextmenu.html
@@ -880,7 +880,7 @@ function startTest() {
return;
}
- subwindow.mozAllowFullScreen = true;
+ subwindow.allowfullscreen = true;
lastElement = null;
text = subwindow.document.getElementById("test-text");
diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp
index f3058d49d0e..c709ad0ddfd 100644
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -9058,7 +9058,7 @@ nsDocument::IsFullScreenEnabled(bool aCallerIsChrome, bool aLogFailure)
return false;
}
- // Ensure that all ancestor