New issue
Advanced search Search tips

Issue 863246 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

DCHECK() failure if two or more external SharedWorkers are created from chrome-extension:// origin

Project Member Reported by hirosh...@chromium.org, Jul 12

Issue description

Chrome Version: (copy from chrome://version)
OS: (e.g. Win10, MacOS 10.12, etc...)

What steps will reproduce the problem?
(1) Create an extension with permissions to http://foo.bar/
    (i.e. cross-origin URLs from the extension origin),
    and from the background page create two or more
    new SharedWorker('http://foo.bar/...').

What is the expected result?
SharedWorkers are successfully loaded? (Not sure whether we should expect external SharedWorkers from background pages though)

What happens instead?
DCHECK() at
https://codesearch.chromium.org/chromium/src/content/browser/shared_worker/shared_worker_instance.cc?type=cs&g=0&l=38
fails, because the constructor origin (chrome-extension://...) and the worker's URL's origin (http://foo.bar) are different.

 
Blocking: 861564
Owner: lazyboy@chromium.org
Status: Assigned (was: Untriaged)
[Extensions Triage] Istiaque, you should probably be somewhat familiar with this. 
(worker bug triage)

hiroshige@: Is this still blocking issue 861564?
Blocking: -861564
Not strictly blocking for now.
This caused DCHECK failures in tests added for Issue 861564, and I added workaround in the tests to avoid DCHECK failure here.

hiroshige@: Thank you!

Sign in to add a comment