Bug 982909 - Consistently use inner window when calling OpenJS. r=jst, r=mrbkap, a=1.1.x+
Merge b2g18 to v1.1hd. a=merge