Nicholas DiPiazza
2018-11-05 21:15:10 UTC
In a chrome extension I'm making, I am having a race condition issue with
the content script and the dom page load.
I want to inject some javascript into the page to affect inline javascript
in the dom. Here is a detailed description of the
issue: https://stackoverflow.com/questions/53161083/how-to-share-a-unique-tab-id-between-content-and-background-scripts-without-an-a
But the problem is my content script has to query the background page. And
this requires async method call to *sendMessage.*
And because it's async, the dom inline javascript will load before prior to
the work being completed.
Is there some way I can get around this issue? I can build a custom version
of chromium if need be to make this happen.
I just need a way to tell the dom to "wait" until my pending async
*content.js* handlers have completed.
the content script and the dom page load.
I want to inject some javascript into the page to affect inline javascript
in the dom. Here is a detailed description of the
issue: https://stackoverflow.com/questions/53161083/how-to-share-a-unique-tab-id-between-content-and-background-scripts-without-an-a
But the problem is my content script has to query the background page. And
this requires async method call to *sendMessage.*
And because it's async, the dom inline javascript will load before prior to
the work being completed.
Is there some way I can get around this issue? I can build a custom version
of chromium if need be to make this happen.
I just need a way to tell the dom to "wait" until my pending async
*content.js* handlers have completed.
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/e220fd75-68e3-4e81-bcda-096ba1767d63%40chromium.org.
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/e220fd75-68e3-4e81-bcda-096ba1767d63%40chromium.org.