WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 28342
SharedWorkers need to support loading
https://bugs.webkit.org/show_bug.cgi?id=28342
Summary
SharedWorkers need to support loading
Andrew Wilson
Reported
2009-08-15 13:22:48 PDT
We need to proxy network requests (XHR, importScripts) to an active document.
Attachments
proposed patch
(60.64 KB, patch)
2009-08-15 13:37 PDT
,
Andrew Wilson
levin
: review+
levin
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andrew Wilson
Comment 1
2009-08-15 13:37:24 PDT
Created
attachment 34904
[details]
proposed patch I moved lots of test code around so it could be shared between dedicated and shared workers. The code itself didn't really change other than indentation/location.
Eric Seidel (no email)
Comment 2
2009-08-17 17:18:12 PDT
Comment on
attachment 34904
[details]
proposed patch This is pretty big for a single change. Maybe we could re-factor the layout tests first in a separate change?
Andrew Wilson
Comment 3
2009-08-17 17:25:02 PDT
(In reply to
comment #2
)
> (From update of
attachment 34904
[details]
) > This is pretty big for a single change. Maybe we could re-factor the layout > tests first in a separate change?
I could do this, but given that this entire patch consists of only 24 lines of code (two small functions) in a single file, is it really improving reviewability to break that out? The patch looks big, but 90% of the change is just moving test code from a .html file into a .js file so it can be shared, with no code changes.
David Levin
Comment 4
2009-08-18 15:01:13 PDT
Comment on
attachment 34904
[details]
proposed patch
> diff --git a/LayoutTests/http/tests/workers/resources/worker-importScripts.js b/LayoutTests/http/tests/workers/resources/worker-importScripts.js > +if (self.postMessage) > + runTests(); > + else > + onconnect = handleConnect;
Indented too far.
> diff --git a/LayoutTests/http/tests/xmlhttprequest/workers/resources/close-test.js b/LayoutTests/http/tests/xmlhttprequest/workers/resources/close-test.js > + function done()
I realize this is just a copy but it would be nice to fix the indent here.
Andrew Wilson
Comment 5
2009-08-18 17:22:15 PDT
Committed as
r47467
.
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