Bug 960641: Queue browser API calls before remote frame is shown. r=fabrice