Changeset 16081 in webkit
- Timestamp:
- Aug 28, 2006 1:43:36 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r16054 r16081 1 2006-08-28 Alice Liu <alice.liu@apple.com> 2 3 Reviewed by Geoff. 4 5 Added tests for <rdar://problem/4548537> Document.domain and other attributes are blank for an iframe created with document.write 6 7 * http/tests/misc/iframe-domain-test-expected.txt: Added. 8 * http/tests/misc/iframe-domain-test.html: Added. 9 1 10 2006-08-27 Rob Buis <buis@kde.org> 2 11 -
trunk/WebCore/ChangeLog
r16080 r16081 1 2006-08-28 Alice Liu <alice.liu@apple.com> 2 3 Reviewed by Geoff. 4 5 Fixed <rdar://problem/4548537> Document.domain and other attributes are blank for an iframe created with document.write 6 7 * dom/Document.cpp: 8 (WebCore::Document::open): 9 set the document's url to the parent's url and re-located the code that does this to occur before calling the frame's didExplicitOpen() 10 * page/Frame.cpp: 11 (WebCore::Frame::didExplicitOpen): 12 set the frame's url to the document's url 13 1 14 2006-08-28 Brady Eidson <beidson@apple.com> 2 15 -
trunk/WebCore/dom/Document.cpp
r15828 r16081 1109 1109 void Document::open() 1110 1110 { 1111 // This is work that we should probably do in clear(), but we can't have it 1112 // happen when implicitOpen() is called unless we reorganize Frame code. 1113 if (Document *parent = parentDocument()) { 1114 setURL(parent->baseURL()); 1115 setBaseURL(parent->baseURL()); 1116 } 1117 else 1118 setURL(DeprecatedString()); 1119 1120 1111 1121 if ((frame() && frame()->isLoadingMainResource()) || (tokenizer() && tokenizer()->executingScript())) 1112 1122 return; … … 1116 1126 if (frame()) 1117 1127 frame()->didExplicitOpen(); 1118 1119 // This is work that we should probably do in clear(), but we can't have it1120 // happen when implicitOpen() is called unless we reorganize Frame code.1121 setURL(DeprecatedString());1122 if (Document *parent = parentDocument())1123 setBaseURL(parent->baseURL());1124 1128 } 1125 1129 -
trunk/WebCore/page/Frame.cpp
r16026 r16081 272 272 // implicitly precedes document.write. 273 273 cancelRedirection(); 274 d->m_url = d->m_doc->URL(); 274 275 } 275 276
Note: See TracChangeset
for help on using the changeset viewer.