diff --git a/b2g/chrome/content/devtools.js b/b2g/chrome/content/devtools.js index 5cdc449f6013..d917ec00f53e 100644 --- a/b2g/chrome/content/devtools.js +++ b/b2g/chrome/content/devtools.js @@ -69,8 +69,12 @@ let devtoolsWidgetPanel = { Services.obs.addObserver(this, 'in-process-browser-or-app-frame-shown', false); Services.obs.addObserver(this, 'message-manager-disconnect', false); - let systemapp = document.querySelector('#systemapp').contentWindow; - let frames = systemapp.document.querySelectorAll('iframe[mozapp]'); + let systemapp = document.querySelector('#systemapp'); + let manifestURL = systemapp.getAttribute("mozapp"); + this.trackApp(manifestURL); + + let frames = + systemapp.contentWindow.document.querySelectorAll('iframe[mozapp]'); for (let frame of frames) { let manifestURL = frame.getAttribute("mozapp"); this.trackApp(manifestURL);