Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
document.lastModified should use the user's local time zone
https://bugs.webkit.org/show_bug.cgi?id=149092 LayoutTests/imported/w3c: <rdar://problem/22567705> Reviewed by Ryosuke Niwa. Rebaseline a couple of W3C tests now that more checks are passing. * web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01-expected.txt: * web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-expected.txt: Source/WebCore: <rdar://problem/22567705> Reviewed by Ryosuke Niwa. document.lastModified should use the user's local time zone: https://html.spec.whatwg.org/multipage/dom.html#dom-document-lastmodified Chrome and Firefox comply with the specification but WebKit was using UTC. This patch aligns WebKit's behavior with the specification and other browsers. No new tests, already covered by existing tests. * dom/Document.cpp: (WebCore::Document::lastModified): (WebCore::Document::setCookieURL): Deleted. LayoutTests: Reviewed by Ryosuke Niwa. Update test so that it converts document.lastModified to UTF before printing it. This is so that we can consistent layout tests results, no matter the system's timezone. * http/tests/misc/last-modified-parsing-expected.txt: * http/tests/resources/last-modified.php: Canonical link: https://commits.webkit.org/167208@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...sts/html/dom/documents/resource-metadata-management/document-lastModified-01-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
FAIL Date returned by lastModified is current at page load assert_true: expected true got false | ||
PASS Date returned by lastModified is current at page load | ||
PASS Date returned by lastModified is in the form "MM/DD/YYYY hh:mm:ss". | ||
FAIL Date returned by lastModified is in the user's local time zone. assert_true: expected true got false | ||
FAIL Date returned by lastModified is current after timeout. assert_true: expected true got false | ||
PASS Date returned by lastModified is in the user's local time zone. | ||
PASS Date returned by lastModified is current after timeout. | ||
|
2 changes: 1 addition & 1 deletion
2
...-tests/html/dom/documents/resource-metadata-management/document-lastModified-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
FAIL lastModified should return the last modified date and time assert_equals: expected "12/31/1969 17:23:45" but got "01/01/1970 01:23:45" | ||
PASS lastModified should return the last modified date and time | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters