Top Comments
All Comments (8)
-
Cool Message Passing.
-
i'm confused
what about sending messages to and from an injected script ?
is the content script in the same environment as the injected script in the site ?
these videos really need to be updated
-
Secondly, responses are coming back in an asynchronous fashion. Why ? Documents are loaded, content scripts are there. Why it should wait for a callback? It needs control to be returned to exactly the same point where request was sent to content script. Not to a callback function. My background page just needs to know something about open documents. It interrogates content scripts to get this information and than make a decision basis on their responses. Not possible to do in Chrome.
-
Why you guys, did not make this API synchronous ? I could not break my algorithm and wait for response to come back. For example I need to get an answer from content page as a reference to original document object it contains. My main script than going to transform this original document in the way it should. It works as peace of cake in Firefox. In Chrome it is impossible. First of all, content script could not return reference to document (probably because of imaginary security concerns.
damn, it isn't so easy
MarocZouf 1 year ago 7
That's not a very nice comment - :(
haroldcampbell 2 years ago 6