From 814a00d5beb04300118b083df017961b94e7f5be Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Sat, 15 Feb 2014 01:45:45 +0100 Subject: [PATCH] Bug 970995 - Activate devtools-layers tracking for the system app. r=janx --- b2g/chrome/content/devtools.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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);