Changeset 238628 in webkit
- Timestamp:
- Nov 28, 2018 12:28:07 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r238624 r238628 1 2018-11-28 Rob Buis <rbuis@igalia.com> 2 3 [XHR] Document.lastModified doesn't work for non-rendered documents 4 https://bugs.webkit.org/show_bug.cgi?id=179375 5 6 Reviewed by Alexey Proskuryakov. 7 8 Unskip responsexml-document-properties.htm since the dynamic message is gone. 9 10 * TestExpectations: 11 * platform/wpe/TestExpectations: 12 1 13 2018-11-28 Frederic Wang <fwang@igalia.com> 2 14 -
trunk/LayoutTests/TestExpectations
r238592 r238628 749 749 imported/w3c/web-platform-tests/xhr/send-redirect-to-cors.htm [ Skip ] 750 750 imported/w3c/web-platform-tests/xhr/send-redirect-to-non-cors.htm [ Skip ] 751 # Failing assertion with dynamic message752 imported/w3c/web-platform-tests/xhr/responsexml-document-properties.htm [ Failure ]753 751 754 752 imported/w3c/web-platform-tests/fetch/api/basic/block-mime-as-script.html [ DumpJSConsoleLogInStdErr ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r238610 r238628 1 2018-11-28 Rob Buis <rbuis@igalia.com> 2 3 [XHR] Document.lastModified doesn't work for non-rendered documents 4 https://bugs.webkit.org/show_bug.cgi?id=179375 5 6 Reviewed by Alexey Proskuryakov. 7 8 * web-platform-tests/xhr/responsexml-document-properties-expected.txt: 9 1 10 2018-11-28 Ali Juma <ajuma@chromium.org> 2 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/responsexml-document-properties-expected.txt
r235354 r238628 10 10 PASS location 11 11 PASS defaultView 12 FAIL body assert_equals: expected (undefined) undefined but got (object) null 13 FAIL images assert_equals: expected (undefined) undefined but got (object) object "[object HTMLCollection]" 12 PASS body 14 13 PASS doctype 15 FAIL forms assert_equals: expected (undefined) undefined but got (object) object "[object HTMLCollection]"16 14 FAIL all assert_equals: expected undefined but got [object HTMLAllCollection] 17 FAIL links assert_equals: expected (undefined) undefined but got (object) object "[object HTMLCollection]"18 15 PASS cookie 19 FAIL Test document URL properties after redirect assert_equals: expected "http://localhost:8800/ XMLHttpRequest/resources/well-formed.xml" but got "http://localhost:8800/XMLHttpRequest/resources/redirect.py?location=well-formed.xml"20 FAIL Test document URL properties of document with <base> after redirect assert_equals: expected "http://localhost:8800/ XMLHttpRequest/resources/base.xml" but got "http://localhost:8800/XMLHttpRequest/resources/redirect.py?location=base.xml"16 FAIL Test document URL properties after redirect assert_equals: expected "http://localhost:8800/xhr/resources/well-formed.xml" but got "http://localhost:8800/xhr/resources/redirect.py?location=well-formed.xml" 17 FAIL Test document URL properties of document with <base> after redirect assert_equals: expected "http://localhost:8800/xhr/resources/base.xml" but got "http://localhost:8800/xhr/resources/redirect.py?location=base.xml" 21 18 PASS lastModified set to time of response if no HTTP header provided 22 FAIL lastModified set to related HTTP header if provided assert_equals: expected 1505770096000 but got 1505744052000 19 PASS lastModified set to related HTTP header if provided 23 20 PASS cookie (after setting it) 24 PASS styleSheets 25 PASS implementation 21 PASS styleSheets should be an object 22 PASS implementation should be an object 23 PASS images should be an object 24 PASS forms should be an object 25 PASS links should be an object 26 26 -
trunk/LayoutTests/platform/wpe/TestExpectations
r238375 r238628 1006 1006 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-not-supported.htm [ Failure ] 1007 1007 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/send-conditional-cors.htm [ Failure ] 1008 webkit.org/b/179375 imported/w3c/web-platform-tests/xhr/responsexml-document-properties.htm [ Failure ]1009 1008 webkit.org/b/171031 imported/w3c/web-platform-tests/xhr/getallresponseheaders-cl.htm [ Failure ] 1010 1009 -
trunk/Source/WebCore/ChangeLog
r238623 r238628 1 2018-11-28 Rob Buis <rbuis@igalia.com> 2 3 [XHR] Document.lastModified doesn't work for non-rendered documents 4 https://bugs.webkit.org/show_bug.cgi?id=179375 5 6 Reviewed by Alexey Proskuryakov. 7 8 Add setOverrideLastModified to override last modified date for 9 standalone Documents. 10 11 Behavior matches Firefox and Chrome. 12 13 Test: web-platform-tests/xhr/responsexml-document-properties.htm 14 15 * dom/Document.cpp: 16 (WebCore::Document::overrideLastModified): 17 (WebCore::Document::lastModified const): no need to test m_frame since that's already done in loader(). 18 (WebCore::Document::lastModified): Deleted. 19 * dom/Document.h: 20 * xml/XMLHttpRequest.cpp: 21 1 22 2018-11-28 Yongjun Zhang <yongjun_zhang@apple.com> 2 23 -
trunk/Source/WebCore/dom/Document.cpp
r238404 r238628 4837 4837 } 4838 4838 4839 void Document::overrideLastModified(const std::optional<WallTime>& lastModified) 4840 { 4841 m_overrideLastModified = lastModified; 4842 } 4843 4839 4844 // http://www.whatwg.org/specs/web-apps/current-work/#dom-document-lastmodified 4840 String Document::lastModified() 4845 String Document::lastModified() const 4841 4846 { 4842 4847 std::optional<WallTime> dateTime; 4843 if (m_frame && loader()) 4848 if (m_overrideLastModified) 4849 dateTime = m_overrideLastModified; 4850 else if (loader()) 4844 4851 dateTime = loader()->response().lastModified(); 4845 4852 -
trunk/Source/WebCore/dom/Document.h
r238562 r238628 930 930 ExceptionOr<void> setDomain(const String& newDomain); 931 931 932 WEBCORE_EXPORT String lastModified(); 932 void overrideLastModified(const std::optional<WallTime>&); 933 WEBCORE_EXPORT String lastModified() const; 933 934 934 935 // The cookieURL is used to query the cookie database for this document's … … 1931 1932 String m_cachedDOMCookies; 1932 1933 1934 std::optional<WallTime> m_overrideLastModified; 1935 1933 1936 HashSet<RefPtr<Element>> m_associatedFormControls; 1934 1937 unsigned m_disabledFieldsetElementsCount { 0 }; -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r236999 r238628 201 201 else 202 202 m_responseDocument = XMLDocument::create(0, m_url); 203 // FIXME: Set Last-Modified.203 m_responseDocument->overrideLastModified(m_response.lastModified()); 204 204 m_responseDocument->setContent(m_responseBuilder.toStringPreserveCapacity()); 205 205 m_responseDocument->setContextDocument(downcast<Document>(*scriptExecutionContext()));
Note: See TracChangeset
for help on using the changeset viewer.