Changeset 266671 in webkit
- Timestamp:
- Sep 5, 2020, 1:54:42 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r266668 r266671 1 2020-09-05 Alex Christensen <achristensen@webkit.org> 2 3 XML documents in iframes should not inherit encoding from parent frame 4 https://bugs.webkit.org/show_bug.cgi?id=216216 5 6 Reviewed by Darin Adler. 7 8 * web-platform-tests/encoding/utf-32-from-win1252-expected.txt: 9 1 10 2020-09-05 Alex Christensen <achristensen@webkit.org> 2 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/utf-32-from-win1252-expected.txt
r256730 r266671 1 1 2 2 PASS Expect resources/utf-32-big-endian-bom.html to parse as windows-1252 3 FAIL Expect resources/utf-32-big-endian-bom.xml to parse as UTF-8 assert_equals: expected "UTF-8" but got "windows-1252" 3 PASS Expect resources/utf-32-big-endian-bom.xml to parse as UTF-8 4 4 PASS Expect resources/utf-32-big-endian-nobom.html to parse as windows-1252 5 FAIL Expect resources/utf-32-big-endian-nobom.xml to parse as UTF-8 assert_equals: expected "UTF-8" but got "windows-1252" 5 PASS Expect resources/utf-32-big-endian-nobom.xml to parse as UTF-8 6 6 PASS Expect resources/utf-32-little-endian-bom.html to parse as UTF-16LE 7 7 PASS Expect resources/utf-32-little-endian-bom.xml to parse as UTF-16LE 8 8 PASS Expect resources/utf-32-little-endian-nobom.html to parse as windows-1252 9 FAIL Expect resources/utf-32-little-endian-nobom.xml to parse as UTF-8 assert_equals: expected "UTF-8" but got "windows-1252" 9 PASS Expect resources/utf-32-little-endian-nobom.xml to parse as UTF-8 10 10 -
trunk/Source/WebCore/ChangeLog
r266669 r266671 1 2020-09-05 Alex Christensen <achristensen@webkit.org> 2 3 XML documents in iframes should not inherit encoding from parent frame 4 https://bugs.webkit.org/show_bug.cgi?id=216216 5 6 Reviewed by Darin Adler. 7 8 This seems to match the behavior of Chrome and Firefox. 9 Covered by newly passing web platform tests, which other browsers already pass. 10 11 * loader/DocumentWriter.cpp: 12 (WebCore::canReferToParentFrameEncoding): 13 1 14 2020-09-05 Devin Rousso <drousso@apple.com> 2 15 -
trunk/Source/WebCore/loader/DocumentWriter.cpp
r263422 r266671 56 56 static inline bool canReferToParentFrameEncoding(const Frame* frame, const Frame* parentFrame) 57 57 { 58 if (is<XMLDocument>(frame->document())) 59 return false; 58 60 return parentFrame && parentFrame->document()->securityOrigin().canAccess(frame->document()->securityOrigin()); 59 61 }
Note:
See TracChangeset
for help on using the changeset viewer.