RESOLVED FIXED 162382
[Fetch API] Request constructor should provide exception messages
https://bugs.webkit.org/show_bug.cgi?id=162382
Summary [Fetch API] Request constructor should provide exception messages
youenn fablet
Reported 2016-09-22 05:11:29 PDT
Request constructor should provide exception messages
Attachments
Patch (20.36 KB, patch)
2016-09-22 05:16 PDT, youenn fablet
buildbot: commit-queue-
Archive of layout-test-results from ews103 for mac-yosemite (1.08 MB, application/zip)
2016-09-22 06:05 PDT, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (920.14 KB, application/zip)
2016-09-22 06:21 PDT, Build Bot
no flags
Rebasing failing test (22.33 KB, patch)
2016-09-22 07:13 PDT, youenn fablet
no flags
Patch for landing (22.22 KB, patch)
2016-10-08 07:18 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2016-09-22 05:16:59 PDT
Build Bot
Comment 2 2016-09-22 06:05:17 PDT
Comment on attachment 289550 [details] Patch Attachment 289550 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2125290 New failing tests: fetch/fetch-url-serialization.html
Build Bot
Comment 3 2016-09-22 06:05:21 PDT
Created attachment 289553 [details] Archive of layout-test-results from ews103 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 4 2016-09-22 06:21:08 PDT
Comment on attachment 289550 [details] Patch Attachment 289550 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2125356 New failing tests: fetch/fetch-url-serialization.html
Build Bot
Comment 5 2016-09-22 06:21:12 PDT
Created attachment 289554 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
youenn fablet
Comment 6 2016-09-22 07:13:29 PDT
Created attachment 289559 [details] Rebasing failing test
Darin Adler
Comment 7 2016-10-07 09:17:57 PDT
Comment on attachment 289559 [details] Rebasing failing test View in context: https://bugs.webkit.org/attachment.cgi?id=289559&action=review Looks OK. After my next patch, you could have used ExceptionOr<void> instead of Optional<Exception> and we should decide which style we prefer. > Source/WebCore/dom/Exception.h:38 > + explicit Exception(ExceptionCode, const String&); We should consider taking a String&& instead to avoid reference count churn, since we almost always want to store a message in here. > Source/WebCore/dom/Exception.h:41 > + const String& message() const { return m_message; } We should consider adding a releaseMessage function here so we can avoid reference count churn when turning this into a JavaScript exception. > Source/WebCore/dom/ExceptionOr.h:41 > + const String& exceptionMessage() const; We should consider adding a releaseMessage function here so we can avoid reference count churn when turning this into a JavaScript exception.
youenn fablet
Comment 8 2016-10-08 07:14:08 PDT
Thanks for the review. > Looks OK. After my next patch, you could have used ExceptionOr<void> instead > of Optional<Exception> and we should decide which style we prefer. I don't have a strong preference. Returning Nullopt seems a tad more explicit than returning { }. > > Source/WebCore/dom/Exception.h:38 > > + explicit Exception(ExceptionCode, const String&); > > We should consider taking a String&& instead to avoid reference count churn, > since we almost always want to store a message in here. Right. Filed bug 163165 for that purpose.
youenn fablet
Comment 9 2016-10-08 07:18:37 PDT
Created attachment 291013 [details] Patch for landing
WebKit Commit Bot
Comment 10 2016-10-08 07:52:19 PDT
Comment on attachment 291013 [details] Patch for landing Clearing flags on attachment: 291013 Committed r206954: <http://trac.webkit.org/changeset/206954>
WebKit Commit Bot
Comment 11 2016-10-08 07:52:23 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.