WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
155886
[Fetch API] Add basic loading of resources for Workers
https://bugs.webkit.org/show_bug.cgi?id=155886
Summary
[Fetch API] Add basic loading of resources for Workers
youenn fablet
Reported
2016-03-25 09:28:51 PDT
Following on
bug 155637
, we should add basic loading of resources for Workers.
Attachments
Patch
(37.97 KB, patch)
2016-03-25 10:09 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Rebasing
(37.38 KB, patch)
2016-03-30 13:06 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews100 for mac-yosemite
(854.83 KB, application/zip)
2016-03-30 13:50 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews106 for mac-yosemite-wk2
(920.42 KB, application/zip)
2016-03-30 13:54 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews121 for ios-simulator-wk2
(572.02 KB, application/zip)
2016-03-30 13:59 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews113 for mac-yosemite
(873.29 KB, application/zip)
2016-03-30 13:59 PDT
,
Build Bot
no flags
Details
Patch for landing
(39.55 KB, patch)
2016-03-31 03:03 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2016-03-25 10:09:49 PDT
Created
attachment 274913
[details]
Patch
Alex Christensen
Comment 2
2016-03-25 11:03:00 PDT
Comment on
attachment 274913
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=274913&action=review
A small change with lots of test progressions! This is great, but r- because of a small unchecked pointer issue:
> Source/WebCore/Modules/fetch/DOMWindowFetch.cpp:42 > void DOMWindowFetch::fetch(DOMWindow& window, FetchRequest* input, const Dictionary& dictionary, DeferredWrapper&& promise) > { > + ASSERT(input);
We should make input a FetchRequest&, then we should check the pointer before calling this. Otherwise this could lead to null pointer issues.
> Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.cpp:43 > +void WorkerGlobalScopeFetch::fetch(WorkerGlobalScope& scope, FetchRequest* input, const Dictionary& dictionary, DeferredWrapper&& promise) > { > - promise.reject(ASCIILiteral("Fetch is not yet implemented")); > + ASSERT(input);
ditto
youenn fablet
Comment 3
2016-03-25 11:13:51 PDT
Comment on
attachment 274913
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=274913&action=review
>> Source/WebCore/Modules/fetch/DOMWindowFetch.cpp:42 >> + ASSERT(input); > > We should make input a FetchRequest&, then we should check the pointer before calling this. Otherwise this could lead to null pointer issues.
Changing that requires updating the binding generator. I agree this would be a good move. I 'd like if possible to ship that patch before updating the binding generator.
Alex Christensen
Comment 4
2016-03-25 11:15:40 PDT
Then add null checks, early returns, and fixme comments. Loading code with unchecked null pointers causes scary problems.
youenn fablet
Comment 5
2016-03-28 13:36:19 PDT
(In reply to
comment #4
)
> Then add null checks, early returns, and fixme comments. Loading code with > unchecked null pointers causes scary problems.
These null checks would be redundant with binding generated code. Let's fix the binding generator then.
youenn fablet
Comment 6
2016-03-30 13:06:17 PDT
Created
attachment 275214
[details]
Rebasing
Alex Christensen
Comment 7
2016-03-30 13:23:39 PDT
Comment on
attachment 275214
[details]
Rebasing r=me
Build Bot
Comment 8
2016-03-30 13:50:12 PDT
Comment on
attachment 275214
[details]
Rebasing
Attachment 275214
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/1071238
New failing tests: imported/w3c/web-platform-tests/fetch/api/basic/request-headers-worker.html
Build Bot
Comment 9
2016-03-30 13:50:15 PDT
Created
attachment 275217
[details]
Archive of layout-test-results from ews100 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 10
2016-03-30 13:54:24 PDT
Comment on
attachment 275214
[details]
Rebasing
Attachment 275214
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/1071250
New failing tests: imported/w3c/web-platform-tests/fetch/api/basic/request-headers-worker.html
Build Bot
Comment 11
2016-03-30 13:54:27 PDT
Created
attachment 275218
[details]
Archive of layout-test-results from ews106 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 12
2016-03-30 13:59:07 PDT
Comment on
attachment 275214
[details]
Rebasing
Attachment 275214
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/1071247
New failing tests: imported/w3c/web-platform-tests/fetch/api/basic/request-headers-worker.html
Build Bot
Comment 13
2016-03-30 13:59:11 PDT
Created
attachment 275219
[details]
Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 14
2016-03-30 13:59:41 PDT
Comment on
attachment 275214
[details]
Rebasing
Attachment 275214
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/1071230
New failing tests: imported/w3c/web-platform-tests/fetch/api/basic/request-headers-worker.html
Build Bot
Comment 15
2016-03-30 13:59:45 PDT
Created
attachment 275220
[details]
Archive of layout-test-results from ews113 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-yosemite Platform: Mac OS X 10.10.5
youenn fablet
Comment 16
2016-03-31 03:03:45 PDT
Created
attachment 275272
[details]
Patch for landing
youenn fablet
Comment 17
2016-03-31 03:05:17 PDT
(In reply to
comment #14
)
> Comment on
attachment 275214
[details]
> Rebasing > >
Attachment 275214
[details]
did not pass mac-debug-ews (mac): > Output:
http://webkit-queues.webkit.org/results/1071230
> > New failing tests: > imported/w3c/web-platform-tests/fetch/api/basic/request-headers-worker.html
Mac HTTP backend seems to add a Content-Length: 0 header, while soup backend does not. I added a specific GTK baseline for that test in the landing patch.
WebKit Commit Bot
Comment 18
2016-03-31 04:05:09 PDT
Comment on
attachment 275272
[details]
Patch for landing Clearing flags on attachment: 275272 Committed
r198891
: <
http://trac.webkit.org/changeset/198891
>
WebKit Commit Bot
Comment 19
2016-03-31 04:05:16 PDT
All reviewed patches have been landed. Closing bug.
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