WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
160290
Fetch Response built-ins should use @makeThisTypeError
https://bugs.webkit.org/show_bug.cgi?id=160290
Summary
Fetch Response built-ins should use @makeThisTypeError
youenn fablet
Reported
2016-07-28 03:23:39 PDT
Fetch Response built-ins should use @makeThisTypeError
Attachments
Patch
(6.86 KB, patch)
2016-07-28 03:26 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-yosemite
(795.31 KB, application/zip)
2016-07-28 04:14 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2
(896.94 KB, application/zip)
2016-07-28 04:17 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews123 for ios-simulator-wk2
(647.66 KB, application/zip)
2016-07-28 04:23 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews117 for mac-yosemite
(1.43 MB, application/zip)
2016-07-28 04:25 PDT
,
Build Bot
no flags
Details
Fixing test expectation
(6.92 KB, patch)
2016-07-28 04:32 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(7.58 KB, patch)
2016-07-29 06:37 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2016-07-28 03:26:44 PDT
Created
attachment 284769
[details]
Patch
Build Bot
Comment 2
2016-07-28 04:14:20 PDT
Comment on
attachment 284769
[details]
Patch
Attachment 284769
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/1766963
New failing tests: fetch/fetch-error-messages.html
Build Bot
Comment 3
2016-07-28 04:14:22 PDT
Created
attachment 284772
[details]
Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 4
2016-07-28 04:17:00 PDT
Comment on
attachment 284769
[details]
Patch
Attachment 284769
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/1766964
New failing tests: fetch/fetch-error-messages.html
Build Bot
Comment 5
2016-07-28 04:17:03 PDT
Created
attachment 284773
[details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 6
2016-07-28 04:23:15 PDT
Comment on
attachment 284769
[details]
Patch
Attachment 284769
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/1766965
New failing tests: fetch/fetch-error-messages.html
Build Bot
Comment 7
2016-07-28 04:23:18 PDT
Created
attachment 284774
[details]
Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.5
Build Bot
Comment 8
2016-07-28 04:24:58 PDT
Comment on
attachment 284769
[details]
Patch
Attachment 284769
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/1766970
New failing tests: fetch/fetch-error-messages.html
Build Bot
Comment 9
2016-07-28 04:25:01 PDT
Created
attachment 284775
[details]
Archive of layout-test-results from ews117 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-yosemite Platform: Mac OS X 10.10.5
youenn fablet
Comment 10
2016-07-28 04:32:03 PDT
Created
attachment 284776
[details]
Fixing test expectation
Alex Christensen
Comment 11
2016-07-28 10:58:30 PDT
Comment on
attachment 284776
[details]
Fixing test expectation View in context:
https://bugs.webkit.org/attachment.cgi?id=284776&action=review
> Source/WebCore/Modules/fetch/FetchResponse.js:102 > - if (!this instanceof @Response) > - throw new @TypeError("Function should be called on a Response"); > + if (!(this instanceof @Response)) > + return @Promise.@reject(@makeThisTypeError("Response", "arrayBuffer"));
This seems like a significant change in behavior from throwing to rejecting. Worth noting in ChangeLog. Is it correct? Why didn't you make the same change with clone?
youenn fablet
Comment 12
2016-07-29 06:17:26 PDT
(In reply to
comment #11
)
> Comment on
attachment 284776
[details]
> Fixing test expectation > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=284776&action=review
> > > Source/WebCore/Modules/fetch/FetchResponse.js:102 > > - if (!this instanceof @Response) > > - throw new @TypeError("Function should be called on a Response"); > > + if (!(this instanceof @Response)) > > + return @Promise.@reject(@makeThisTypeError("Response", "arrayBuffer")); > > This seems like a significant change in behavior from throwing to rejecting. > Worth noting in ChangeLog. Is it correct? Why didn't you make the same > change with clone?
Promise returning functions should reject promises, hence why updating these functions except for clone. I'll rebase the patch and update the change log
youenn fablet
Comment 13
2016-07-29 06:37:27 PDT
Created
attachment 284861
[details]
Patch
WebKit Commit Bot
Comment 14
2016-07-31 23:02:14 PDT
Comment on
attachment 284861
[details]
Patch Clearing flags on attachment: 284861 Committed
r203961
: <
http://trac.webkit.org/changeset/203961
>
WebKit Commit Bot
Comment 15
2016-07-31 23:02:18 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