can't receive messages sent by postMessage() from bootstrap extension

UNCONFIRMED
Unassigned

Status

()

Core
DOM
UNCONFIRMED
6 years ago
5 years ago

People

(Reporter: Xu Zhen, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

2.51 KB, application/octet-stream
Details
(Reporter)

Description

6 years ago
Created attachment 595711 [details]
testcase.xpi

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
Build ID: 20120203212421

Steps to reproduce:

inject a script into any web pages using Services.scriptloader.loadSubScript(). then send a message to that page using postMessage. the script can not receive that message unless that message is sent from codes in chrome://

testcase.xpi is an example.


Actual results:

show 3 alert dialog.
"script ready"
"data from injectScript2"
"script ready"


Expected results:

show 4 alert dialog.
"script ready"
"data from injectScript2"
"script ready"
"data from injectScript1"
(Reporter)

Updated

6 years ago
OS: Linux → All
Hardware: x86_64 → All
(Assignee)

Updated

5 years ago
Component: DOM: Mozilla Extensions → DOM
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.