Changeset 240158 in webkit
- Timestamp:
- Jan 18, 2019 10:44:54 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r240157 r240158 1 2019-01-18 Ali Juma <ajuma@chromium.org> 2 3 FetchResponse::url should return the empty string for tainted responses 4 https://bugs.webkit.org/show_bug.cgi?id=193553 5 6 Reviewed by Youenn Fablet. 7 8 * http/wpt/fetch/response-opaque-clone.html: 9 1 10 2019-01-18 Jonathan Bedard <jbedard@apple.com> 2 11 -
trunk/LayoutTests/http/wpt/fetch/response-opaque-clone.html
r227339 r240158 17 17 assert_equals(response.status, 0, testName + " status"); 18 18 assert_equals(response.statusText, "", testName + " statusText"); 19 assert_equals(response.url, "", testName + " url"); 19 20 assert_false(response.redirected, testName + " redirected"); 20 21 assert_true(response.headers.values().next().done, testName + " headers"); -
trunk/LayoutTests/imported/w3c/ChangeLog
r239959 r240158 1 2019-01-18 Ali Juma <ajuma@chromium.org> 2 3 FetchResponse::url should return the empty string for tainted responses 4 https://bugs.webkit.org/show_bug.cgi?id=193553 5 6 Reviewed by Youenn Fablet. 7 8 * web-platform-tests/fetch/api/basic/mode-no-cors.sub.any.js: 9 (fetchNoCors): 10 1 11 2019-01-14 Charles Vazac <cvazac@akamai.com> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/basic/mode-no-cors.sub.any.js
r239693 r240158 8 8 assert_equals(resp.status, 0, "Opaque filter: status is 0"); 9 9 assert_equals(resp.statusText, "", "Opaque filter: statusText is \"\""); 10 assert_equals(resp.url, "", "Opaque filter: url is \"\""); 10 11 assert_equals(resp.type , "opaque", "Opaque filter: response's type is opaque"); 11 12 assert_equals(resp.headers.get("x-is-filtered"), null, "Header x-is-filtered is filtered"); -
trunk/Source/WebCore/ChangeLog
r240152 r240158 1 2019-01-18 Ali Juma <ajuma@chromium.org> 2 3 FetchResponse::url should return the empty string for tainted responses 4 https://bugs.webkit.org/show_bug.cgi?id=193553 5 6 Reviewed by Youenn Fablet. 7 8 Check whether the response is tainted in FetchResponse::url, to match 9 the behavior described in https://fetch.spec.whatwg.org/#concept-filtered-response-opaque. 10 11 * Modules/fetch/FetchResponse.cpp: 12 (WebCore::FetchResponse::url const): 13 1 14 2019-01-18 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp
r239703 r240158 248 248 { 249 249 if (m_responseURL.isNull()) { 250 URL url = m_internalResponse.url();250 URL url = filteredResponse().url(); 251 251 url.removeFragmentIdentifier(); 252 252 m_responseURL = url.string();
Note: See TracChangeset
for help on using the changeset viewer.