版权声明:本文为博主打劫来的文章!!!未经允许可以随便转载。 May you do good and not evil. May you share freely, never taking more than you give. https://blog.csdn.net/hunter___/article/details/83510024
gecko->gaia
b2g 如何启动system app.
gecko/b2g/chrome/content/*.js
runapp.js
shell.js
shell.html
blank.html
gecko/b2g/chrome/content/
shell.html
shell.js 核心部分
疑问:这里的iframe
创建iframe 元素,并对其属性进行赋值,
container就是shell.html body 的id,也即是将iframe(也就是system app iframe) append 到container里,之后继续在SystemAppFrame里进行操作。
发消息等。
launch 处理事件
commandLine到底是如何起来的,直接调xpcom组件,且在前面被b2g Loader 初始化了。
blanck.html
runapp.js开始直接调用XPCOM组件,commandline,通过命令行启动应用?