WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
176231
Move ServiceWorkerJob from FetchLoader to ThreadableLoader
https://bugs.webkit.org/show_bug.cgi?id=176231
Summary
Move ServiceWorkerJob from FetchLoader to ThreadableLoader
Brady Eidson
Reported
2017-09-01 10:46:55 PDT
Move ServiceWorkerJob from FetchLoader to WorkerScriptLoader
Attachments
Patch
(14.05 KB, patch)
2017-09-01 12:44 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Patch
(18.05 KB, patch)
2017-09-01 13:20 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2017-09-01 11:15:42 PDT
Nope, WorkerScriptLoader is also not currently acceptable. For now, using ThreadableLoader. Rename: Move ServiceWorkerJob from FetchLoader to ThreadableLoader
youenn fablet
Comment 2
2017-09-01 11:25:43 PDT
(In reply to Brady Eidson from
comment #1
)
> Nope, WorkerScriptLoader is also not currently acceptable.
What is the issue with WorkerScriptLoader?
> For now, using ThreadableLoader. > > Rename: > Move ServiceWorkerJob from FetchLoader to ThreadableLoader
That will not really help. Might be better to postpone this change until there is a good plan.
Brady Eidson
Comment 3
2017-09-01 12:44:37 PDT
Created
attachment 319632
[details]
Patch
Brady Eidson
Comment 4
2017-09-01 12:50:49 PDT
(In reply to youenn fablet from
comment #2
)
> (In reply to Brady Eidson from
comment #1
) > > Nope, WorkerScriptLoader is also not currently acceptable. > > What is the issue with WorkerScriptLoader? > > > For now, using ThreadableLoader. > > > > Rename: > > Move ServiceWorkerJob from FetchLoader to ThreadableLoader > > That will not really help. > Might be better to postpone this change until there is a good plan.
It gets us closer. It's definitely not right, but it's "less wrong" I definitely want to remove notions of using FetchLoader before I move on. :)
Brady Eidson
Comment 5
2017-09-01 12:52:01 PDT
(In reply to youenn fablet from
comment #2
)
> (In reply to Brady Eidson from
comment #1
) > > Nope, WorkerScriptLoader is also not currently acceptable. > > What is the issue with WorkerScriptLoader?
You can only feed it a URL and can't get the data as it streams in. Additionally, it seems to be designed to be used *from Workers* but whatever we settle on needs to be used from both Documents and Workers.
youenn fablet
Comment 6
2017-09-01 13:15:03 PDT
Comment on
attachment 319632
[details]
Patch r=me. There is no need to create a FetchRequest object here so this is better like this for now. Since FetchLoader.h/FetchLoaderClient.h are no longer used in WebKit2, they could be reverted to not being "Private" headers. View in context:
https://bugs.webkit.org/attachment.cgi?id=319632&action=review
> Source/WebCore/loader/ThreadableLoader.h:46 > +enum PreflightPolicy {
Would be nice as enum class, but hey...
Brady Eidson
Comment 7
2017-09-01 13:20:32 PDT
Created
attachment 319640
[details]
Patch
Brady Eidson
Comment 8
2017-09-01 14:04:02 PDT
Comment on
attachment 319640
[details]
Patch The iOS-sim failure is an infrastructure issue, not an issue with this patch
WebKit Commit Bot
Comment 9
2017-09-01 14:33:06 PDT
Comment on
attachment 319640
[details]
Patch Clearing flags on attachment: 319640 Committed
r221495
: <
http://trac.webkit.org/changeset/221495
>
WebKit Commit Bot
Comment 10
2017-09-01 14:33:11 PDT
All reviewed patches have been landed. Closing bug.
Matt Lewis
Comment 11
2017-09-05 15:25:21 PDT
After this patch landed there were multiple Layout test crashing on El Capitan WK2: imported/w3c/web-platform-tests/FileAPI/idlharness.html imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-worker.html imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-worker.html imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-match.https.html imported/w3c/web-platform-tests/streams/piping/close-propagation-backward.sharedworker.html imported/w3c/web-platform-tests/streams/readable-streams/bad-underlying-sources.dedicatedworker.html
https://build.webkit.org/builders/Apple%20El%20Capitan%20Debug%20WK2%20%28Tests%29/builds/2841
https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r221495%20(2841)/results.html
Crash:
https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r221495%20(2841)/imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-worker-crash-log.txt
Ryan Haddad
Comment 12
2017-09-05 15:29:35 PDT
(In reply to Matt Lewis from
comment #11
)
> After this patch landed there were multiple Layout test crashing on El > Capitan WK2: > imported/w3c/web-platform-tests/FileAPI/idlharness.html > > imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer- > worker.html > > imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when- > cross-origin-worker.html > > imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/ > cache-storage-match.https.html > > imported/w3c/web-platform-tests/streams/piping/close-propagation-backward. > sharedworker.html > > imported/w3c/web-platform-tests/streams/readable-streams/bad-underlying- > sources.dedicatedworker.html > >
https://build.webkit.org/builders/
> Apple%20El%20Capitan%20Debug%20WK2%20%28Tests%29/builds/2841 >
https://build.webkit.org/results/
> Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r221495%20(2841)/results.html > > Crash: >
https://build.webkit.org/results/
> Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r221495%20(2841)/imported/w3c/ > web-platform-tests/fetch/api/policies/referrer-no-referrer-worker-crash-log. > txt
Specifically, this is an assertion failure: ASSERTION FAILED: m_loader /Volumes/Data/slave/elcapitan-debug/build/Source/WebCore/workers/service/ServiceWorkerJob.cpp(136) : virtual void WebCore::ServiceWorkerJob::didFail(const WebCore::ResourceError &) 1 0x1149ff8c0 WTFCrash
Ryan Haddad
Comment 13
2017-09-05 16:33:55 PDT
Reverted
r221495
for reason: This change introduced assertion failures on El Capitan Debug WK2. Committed
r221646
: <
http://trac.webkit.org/changeset/221646
>
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