Changeset 21682 in webkit
- Timestamp:
- May 23, 2007 4:19:56 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 9 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r21681 r21682 12 12 * fast/dom/prototype-chain-expected.txt: 13 13 * fast/dom/prototype-chain.html: 14 15 2007-05-23 Kevin McCullough <kmccullough@apple.com> 16 17 Reviewed by Darin. 18 19 - rdar://problem/5183523 20 - Tests for a fix for a regression with Excel worksheets. We now check the document's URL to see if it can load a resource in the case of a URL click, instead of checking the referrer, which is blank for local files. 21 22 * fast/dom/frame-loading-via-document-write-expected.txt: Added. 23 * fast/dom/frame-loading-via-document-write.html: Added. 24 * fast/dom/resources/frame-loading-via-document-write.js: Added. 25 * fast/dom/resources/green250x50.png: Added. 26 * fast/dom/resources/success.html: Added. 14 27 15 28 2007-05-23 Kevin McCullough <kmccullough@apple.com> -
trunk/WebCore/ChangeLog
r21681 r21682 1 2007-05-22 Kevin McCullough <kmccullough@apple.com> 2 3 Reviewed by Darin. 4 5 - rdar://problem/5183523 6 - We now check the document's URL to see if it can load a resource in the case of a URL click, instead of checking the referrer, which is blank for local files. 7 8 * loader/FrameLoader.cpp: 9 (WebCore::FrameLoader::load): 10 (WebCore::FrameLoader::open): 11 * platform/PlatformString.h: 12 (WebCore::debugPrintString): 13 1 14 2007-05-23 Sam Weinig <sam@webkit.org> 2 15 -
trunk/WebCore/loader/FrameLoader.cpp
r21612 r21682 1782 1782 HTMLFormElement* submitForm, const HashMap<String, String>& formValues) 1783 1783 { 1784 KURL url = request.resourceRequest().url(); 1785 1786 ASSERT(frame()->document()); 1787 if (!canLoad(url, frame()->document())) { 1788 FrameLoader::reportLocalLoadFailed(frame()->page(), url.url()); 1789 return; 1790 } 1791 1784 1792 String referrer; 1785 1793 String argsReferrer = request.resourceRequest().httpReferrer(); … … 1788 1796 else 1789 1797 referrer = m_outgoingReferrer; 1790 1791 bool hideReferrer; 1792 if (!canLoad(request.resourceRequest().url(), referrer, hideReferrer)) { 1793 FrameLoader::reportLocalLoadFailed(frame()->page(), request.resourceRequest().url().url()); 1794 return; 1795 } 1796 1797 if (hideReferrer) 1798 1799 if (shouldHideReferrer(url, referrer)) 1798 1800 referrer = String(); 1799 1801 … … 1815 1817 formState = FormState::create(submitForm, formValues, m_frame); 1816 1818 1817 load( request.resourceRequest().url(), referrer, loadType,1819 load(url, referrer, loadType, 1818 1820 request.frameName(), event, formState.release()); 1819 1821 } else 1820 post( request.resourceRequest().url(), referrer, request.frameName(),1822 post(url, referrer, request.frameName(), 1821 1823 request.resourceRequest().httpBody(), request.resourceRequest().httpContentType(), event, submitForm, formValues); 1822 1824 … … 2566 2568 m_wasLoadEventEmitted = false; 2567 2569 m_outgoingReferrer = URL.url(); 2568 2569 2570 FrameView* view = cachedPage.view(); 2570 2571 if (view) -
trunk/WebCore/platform/String.cpp
r19451 r21682 511 511 } 512 512 #endif 513 514 #ifndef NDEBUG 515 void dump(const WebCore::String* s) 516 { 517 if(s) 518 printf("%s\n", s->ascii().data()); 519 } 520 #endif
Note: See TracChangeset
for help on using the changeset viewer.