Bug 1036670 - Set shell.contentBrowser after system app frame is appended. r=fabrice

This commit is contained in:
Ting-Yu Chou 2014-07-17 12:04:52 +08:00
Родитель c35a7c566c
Коммит 70b3ba5e09
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -217,11 +217,6 @@ var shell = {
}, "network-connection-state-changed", false);
},
get contentBrowser() {
delete this.contentBrowser;
return this.contentBrowser = document.getElementById('systemapp');
},
get homeURL() {
try {
let homeSrc = Services.env.get('B2G_HOMESCREEN');
@ -321,7 +316,7 @@ var shell = {
container.removeChild(hotfix);
}
#endif
container.appendChild(systemAppFrame);
this.contentBrowser = container.appendChild(systemAppFrame);
systemAppFrame.contentWindow
.QueryInterface(Ci.nsIInterfaceRequestor)