WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
102690
[V8] Workers cannot make xhr requests in the presence of extensions
https://bugs.webkit.org/show_bug.cgi?id=102690
Summary
[V8] Workers cannot make xhr requests in the presence of extensions
Dan Carney
Reported
2012-11-19 07:55:30 PST
[V8] Workers cannot make xhr requests in the presence of extensions
Attachments
Patch
(1.96 KB, patch)
2012-11-19 08:27 PST
,
Dan Carney
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dan Carney
Comment 1
2012-11-19 08:27:05 PST
Created
attachment 174988
[details]
Patch
Dan Carney
Comment 2
2012-11-19 08:29:47 PST
This deserves a regression test, but I had to leave work. I will add it tomorrow.
jochen
Comment 3
2012-11-19 08:39:53 PST
Comment on
attachment 174988
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=174988&action=review
> Source/WebCore/ChangeLog:9 > + V8DOMWindowShell::getEntered
can you elaborate a bit on what the problem is and how you solve it?
> Source/WebCore/bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:58 > + if (isMainThread()) {
isn't the point that workers can't have extensions (= isolated worlds) in the first place? Shouldn't the check then be something like if (context->isDocument()) { ASSERT(isMainThread()); ... } else { ASSERT(context->isWorkerContext()); securityOrigin = static_cast<WorkerContext*>(context)->topOrigin(); }
Adam Barth
Comment 4
2012-11-19 09:58:46 PST
Comment on
attachment 174988
[details]
Patch This is fixed in my get entered patch that hasn't landed yet. Rather than calling isMainThread, which is slow, we should asks the ScriptExecutionContext if it is a document
Dan Carney
Comment 5
2012-11-20 00:29:41 PST
Comment on
attachment 174988
[details]
Patch this was fixed in
https://bugs.webkit.org/show_bug.cgi?id=102156
Adam Barth
Comment 6
2012-11-20 01:25:06 PST
Sorry for the delay in landing my patch.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug