Bug 966210 - Make B2G devtools layers track all running apps on init. r=ochameau

This commit is contained in:
Jan Keromnes 2014-02-06 10:06:25 -05:00
parent 2572b6aeee
commit 48a584a6b4

View File

@ -62,6 +62,13 @@ let devtoolsWidgetPanel = {
Services.obs.addObserver(this, 'remote-browser-frame-pending', false);
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]');
for (let frame of frames) {
let manifestURL = frame.getAttribute("mozapp");
this.trackApp(manifestURL);
}
});
});
},