You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chromium-...@chromium.org
Hey All,
Is the background.js architecture a single thread? For example if i have injected some code into the page via content scripts will have two + tabs open will there be thread contention with the background thread?
It seems that when I refreshes two tabs about the same time only one of them seems to get all the elements populated. I am wondering if I need to adjust my code or if by design the background process is single threaded.
Bigger questions is do I need the background.js or can i do everything with content scripts and my extension code?
Thanks
Jordan
Jeffrey Yasskin
unread,
Oct 21, 2013, 12:39:11 PM10/21/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jordan McDonald, Chromium-extensions
All Javascript is single-threaded, but multiple callback chains can
interleave with each other. Different tabs effectively live in
different processes that are sometimes allowed to exchange messages,
and the background page is, similarly, a separate process from any
tab.