Changeset 116121 in webkit
- Timestamp:
- May 4, 2012 10:31:03 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/ChangeLog
r116105 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebCoreSupport/FrameLoaderClientBlackBerry.cpp: 9 (WebCore::FrameLoaderClientBlackBerry::finishedLoading): 10 1 11 2012-05-04 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp
r115926 r116121 364 364 } 365 365 366 void FrameLoaderClientBlackBerry::finishedLoading(DocumentLoader* loader)366 void FrameLoaderClientBlackBerry::finishedLoading(DocumentLoader*) 367 367 { 368 368 if (m_pluginView) { … … 370 370 m_pluginView = 0; 371 371 m_hasSentResponseToPlugin = false; 372 } else {373 // Telling the frame we received some data and passing 0 as the data is our374 // way to get work done that is normally done when the first bit of data is375 // received, even for the case of a document with no data (like about:blank).376 committedLoad(loader, 0, 0);377 372 } 378 373 } -
trunk/Source/WebKit/chromium/ChangeLog
r116116 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * src/FrameLoaderClientImpl.cpp: 9 (WebKit::FrameLoaderClientImpl::FrameLoaderClientImpl): 10 (WebKit): 11 (WebKit::FrameLoaderClientImpl::finishedLoading): 12 * src/FrameLoaderClientImpl.h: 13 (WebKit::FrameLoaderClientImpl::makeRepresentation): 14 (WebKit::FrameLoaderClientImpl::revertToProvisionalState): 15 (FrameLoaderClientImpl): 16 1 17 2012-05-04 Alexander Pavlov <apavlov@chromium.org> 2 18 -
trunk/Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp
r115926 r116121 111 111 FrameLoaderClientImpl::FrameLoaderClientImpl(WebFrameImpl* frame) 112 112 : m_webFrame(frame) 113 , m_hasRepresentation(false)114 113 , m_sentInitialResponseToPlugin(false) 115 114 , m_nextNavigationPolicy(WebNavigationPolicyIgnore) … … 271 270 { 272 271 m_webFrame->createFrameView(); 273 }274 275 void FrameLoaderClientImpl::makeRepresentation(DocumentLoader*)276 {277 m_hasRepresentation = true;278 272 } 279 273 … … 1050 1044 } 1051 1045 1052 void FrameLoaderClientImpl::revertToProvisionalState(DocumentLoader*)1053 {1054 m_hasRepresentation = true;1055 }1056 1057 1046 void FrameLoaderClientImpl::setMainDocumentError(DocumentLoader*, 1058 1047 const ResourceError& error) … … 1151 1140 } 1152 1141 1153 void FrameLoaderClientImpl::finishedLoading(DocumentLoader* dl)1142 void FrameLoaderClientImpl::finishedLoading(DocumentLoader*) 1154 1143 { 1155 1144 if (m_pluginWidget) { … … 1157 1146 m_pluginWidget = 0; 1158 1147 m_sentInitialResponseToPlugin = false; 1159 } else {1160 // This is necessary to create an empty document. See bug 634004.1161 // However, we only want to do this if makeRepresentation has been called, to1162 // match the behavior on the Mac.1163 if (m_hasRepresentation)1164 dl->writer()->setEncoding("", false);1165 1148 } 1166 1149 } -
trunk/Source/WebKit/chromium/src/FrameLoaderClientImpl.h
r115926 r116121 73 73 virtual bool hasWebView() const; 74 74 virtual bool hasFrameView() const; 75 virtual void makeRepresentation(WebCore::DocumentLoader*) ;75 virtual void makeRepresentation(WebCore::DocumentLoader*) { } 76 76 virtual void forceLayout(); 77 77 virtual void forceLayoutForNonHTML(); … … 119 119 virtual void dispatchWillSendSubmitEvent(PassRefPtr<WebCore::FormState>); 120 120 virtual void dispatchWillSubmitForm(WebCore::FramePolicyFunction, PassRefPtr<WebCore::FormState>); 121 virtual void revertToProvisionalState(WebCore::DocumentLoader*) ;121 virtual void revertToProvisionalState(WebCore::DocumentLoader*) { } 122 122 virtual void setMainDocumentError(WebCore::DocumentLoader*, const WebCore::ResourceError&); 123 123 virtual void willChangeEstimatedProgress() { } … … 226 226 WebFrameImpl* m_webFrame; 227 227 228 // True if makeRepresentation was called. We don't actually have a concept229 // of a "representation", but we need to know when we're expected to have one.230 // See finishedLoading().231 bool m_hasRepresentation;232 233 228 // Used to help track client redirects. When a provisional load starts, it 234 229 // has no redirects in its chain. But in the case of client redirects, we want -
trunk/Source/WebKit/efl/ChangeLog
r116119 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebCoreSupport/FrameLoaderClientEfl.cpp: 9 (WebCore::FrameLoaderClientEfl::FrameLoaderClientEfl): 10 (WebCore): 11 (WebCore::FrameLoaderClientEfl::finishedLoading): 12 * WebCoreSupport/FrameLoaderClientEfl.h: 13 (WebCore::FrameLoaderClientEfl::makeRepresentation): 14 (WebCore::FrameLoaderClientEfl::revertToProvisionalState): 15 (FrameLoaderClientEfl): 16 1 17 2012-05-04 Christophe Dumez <christophe.dumez@intel.com> 2 18 -
trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp
r116119 r116121 71 71 , m_pluginView(0) 72 72 , m_hasSentResponseToPlugin(false) 73 , m_hasRepresentation(false)74 73 { 75 74 } … … 532 531 } 533 532 534 void FrameLoaderClientEfl::makeRepresentation(DocumentLoader*)535 {536 m_hasRepresentation = true;537 }538 539 533 void FrameLoaderClientEfl::forceLayout() 540 534 { … … 663 657 { 664 658 notImplemented(); 665 }666 667 void FrameLoaderClientEfl::revertToProvisionalState(DocumentLoader*)668 {669 m_hasRepresentation = true;670 659 } 671 660 … … 718 707 } 719 708 720 void FrameLoaderClientEfl::finishedLoading(DocumentLoader* documentLoader) 721 { 722 if (!m_pluginView) { 723 if (m_hasRepresentation) 724 documentLoader->writer()->setEncoding("", false); 725 return; 726 } 709 void FrameLoaderClientEfl::finishedLoading(DocumentLoader*) 710 { 711 if (!m_pluginView) 712 return; 727 713 m_pluginView->didFinishLoading(); 728 714 m_pluginView = 0; -
trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.h
r115926 r116121 62 62 void callPolicyFunction(FramePolicyFunction, PolicyAction); 63 63 64 virtual void makeRepresentation(DocumentLoader*) ;64 virtual void makeRepresentation(DocumentLoader*) { } 65 65 virtual void forceLayout(); 66 66 virtual void forceLayoutForNonHTML(); … … 123 123 virtual void dispatchWillSubmitForm(FramePolicyFunction, WTF::PassRefPtr<FormState>); 124 124 125 virtual void revertToProvisionalState(DocumentLoader*) ;125 virtual void revertToProvisionalState(DocumentLoader*) { } 126 126 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&); 127 127 … … 218 218 PluginView* m_pluginView; 219 219 bool m_hasSentResponseToPlugin; 220 bool m_hasRepresentation;221 220 }; 222 221 -
trunk/Source/WebKit/gtk/ChangeLog
r116114 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9 (WebKit::FrameLoaderClient::FrameLoaderClient): 10 (WebKit): 11 (WebKit::FrameLoaderClient::finishedLoading): 12 * WebCoreSupport/FrameLoaderClientGtk.h: 13 (WebKit::FrameLoaderClient::makeRepresentation): 14 (WebKit::FrameLoaderClient::revertToProvisionalState): 15 (FrameLoaderClient): 16 1 17 2012-05-03 Martin Robinson <mrobinson@igalia.com> 2 18 -
trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
r113001 r116121 107 107 , m_pluginView(0) 108 108 , m_hasSentResponseToPlugin(false) 109 , m_hasRepresentation(false)110 109 { 111 110 ASSERT(m_frame); … … 666 665 } 667 666 668 void FrameLoaderClient::makeRepresentation(WebCore::DocumentLoader*)669 {670 m_hasRepresentation = true;671 }672 673 667 void FrameLoaderClient::forceLayout() 674 668 { … … 884 878 } 885 879 886 void FrameLoaderClient::revertToProvisionalState(WebCore::DocumentLoader*)887 {888 m_hasRepresentation = true;889 }890 891 880 void FrameLoaderClient::willChangeTitle(WebCore::DocumentLoader*) 892 881 { … … 931 920 } 932 921 933 void FrameLoaderClient::finishedLoading(WebCore::DocumentLoader* documentLoader) 934 { 935 if (!m_pluginView) { 936 // This is necessary to create an empty document, 937 // but it has to be skipped in the provisional phase. 938 if (m_hasRepresentation) 939 documentLoader->writer()->setEncoding("", false); 940 } else { 922 void FrameLoaderClient::finishedLoading(WebCore::DocumentLoader*) 923 { 924 if (m_pluginView) { 941 925 m_pluginView->didFinishLoading(); 942 926 m_pluginView = 0; -
trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h
r115926 r116121 50 50 virtual bool hasWebView() const; 51 51 52 virtual void makeRepresentation(WebCore::DocumentLoader*) ;52 virtual void makeRepresentation(WebCore::DocumentLoader*) { } 53 53 virtual void forceLayout(); 54 54 virtual void forceLayoutForNonHTML(); … … 106 106 virtual void dispatchWillSubmitForm(WebCore::FramePolicyFunction, WTF::PassRefPtr<WebCore::FormState>); 107 107 108 virtual void revertToProvisionalState(WebCore::DocumentLoader*) ;108 virtual void revertToProvisionalState(WebCore::DocumentLoader*) { } 109 109 virtual void setMainDocumentError(WebCore::DocumentLoader*, const WebCore::ResourceError&); 110 110 … … 199 199 WebCore::PluginView* m_pluginView; 200 200 bool m_hasSentResponseToPlugin; 201 202 bool m_hasRepresentation;203 201 }; 204 202 -
trunk/Source/WebKit/mac/ChangeLog
r116053 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebView/WebHTMLRepresentation.mm: 9 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Calling commitData when finishing is no longer necessary, 10 as WebCore will take care of simulating the receipt of data and ensuring the requisite work gets done in the blank document case. 11 1 12 2012-05-03 Anders Carlsson <andersca@apple.com> 2 13 -
trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm
r96480 r116121 215 215 if (!webFrame) 216 216 return; 217 218 if (![self _isDisplayingWebArchive]) {219 // Telling the frame we received some data and passing nil as the data is our220 // way to get work done that is normally done when the first bit of data is221 // received, even for the case of a document with no data (like about:blank).222 [webFrame _commitData:nil];223 }224 225 217 WebView *webView = [webFrame webView]; 226 218 if ([webView mainFrame] == webFrame && [webView isEditable]) -
trunk/Source/WebKit/qt/ChangeLog
r115998 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebCoreSupport/FrameLoaderClientQt.cpp: 9 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 10 (WebCore): 11 (WebCore::FrameLoaderClientQt::finishedLoading): 12 * WebCoreSupport/FrameLoaderClientQt.h: 13 (WebCore::FrameLoaderClientQt::makeRepresentation): 14 (WebCore::FrameLoaderClientQt::revertToProvisionalState): 15 (FrameLoaderClientQt): 16 1 17 2012-05-03 Fady Samuel <fsamuel@chromium.org> 2 18 -
trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r114042 r116121 213 213 , m_pluginView(0) 214 214 , m_hasSentResponseToPlugin(false) 215 , m_hasRepresentation(false)216 215 , m_isOriginatingLoad(false) 217 216 { … … 313 312 } 314 313 315 void FrameLoaderClientQt::makeRepresentation(DocumentLoader*)316 {317 m_hasRepresentation = true;318 }319 320 314 321 315 void FrameLoaderClientQt::forceLayout() … … 565 559 // FIXME: This is surely too simple. 566 560 callPolicyFunction(function, PolicyUse); 567 }568 569 570 void FrameLoaderClientQt::revertToProvisionalState(DocumentLoader*)571 {572 m_hasRepresentation = true;573 561 } 574 562 … … 627 615 628 616 629 void FrameLoaderClientQt::finishedLoading(DocumentLoader* loader) 630 { 631 if (!m_pluginView) { 632 // This is necessary to create an empty document. See bug 634004. 633 // However, we only want to do this if makeRepresentation has been called, 634 // to match the behavior on the Mac. 635 if (m_hasRepresentation) 636 loader->writer()->setEncoding("", false); 637 return; 638 } 617 void FrameLoaderClientQt::finishedLoading(DocumentLoader*) 618 { 619 if (!m_pluginView) 620 return; 639 621 if (m_pluginView->isPluginView()) 640 622 m_pluginView->didFinishLoading(); -
trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h
r115926 r116121 84 84 virtual bool hasWebView() const; // mainly for assertions 85 85 86 virtual void makeRepresentation(DocumentLoader*) ;86 virtual void makeRepresentation(DocumentLoader*) { } 87 87 virtual void forceLayout(); 88 88 virtual void forceLayoutForNonHTML(); … … 139 139 virtual void dispatchWillSubmitForm(FramePolicyFunction, PassRefPtr<FormState>); 140 140 141 virtual void revertToProvisionalState(DocumentLoader*) ;141 virtual void revertToProvisionalState(DocumentLoader*) { } 142 142 virtual void setMainDocumentError(DocumentLoader*, const ResourceError&); 143 143 … … 273 273 bool m_hasSentResponseToPlugin; 274 274 275 // True if makeRepresentation was called. We don't actually have a concept276 // of a "representation", but we need to know when we're expected to have one.277 // See finishedLoading().278 bool m_hasRepresentation;279 280 275 KURL m_lastRequestedUrl; 281 276 bool m_isOriginatingLoad; -
trunk/Source/WebKit/win/ChangeLog
r115943 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebCoreSupport/WebFrameLoaderClient.cpp: 9 (WebFrameLoaderClient::finishedLoading): 10 1 11 2012-04-27 Jon Lee <jonlee@apple.com> 2 12 -
trunk/Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp
r112474 r116121 518 518 } 519 519 520 void WebFrameLoaderClient::finishedLoading(DocumentLoader* loader) 521 { 522 // Telling the frame we received some data and passing 0 as the data is our 523 // way to get work done that is normally done when the first bit of data is 524 // received, even for the case of a document with no data (like about:blank) 525 committedLoad(loader, 0, 0); 526 520 void WebFrameLoaderClient::finishedLoading(DocumentLoader*) 521 { 527 522 if (!m_manualLoader) 528 523 return; -
trunk/Source/WebKit/wince/ChangeLog
r115926 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebCoreSupport/FrameLoaderClientWinCE.cpp: 9 (WebKit::FrameLoaderClientWinCE::finishedLoading): 10 1 11 2012-04-18 Jon Honeycutt <jhoneycutt@apple.com> 2 12 -
trunk/Source/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.cpp
r112474 r116121 444 444 } 445 445 446 void FrameLoaderClientWinCE::finishedLoading(DocumentLoader* documentLoader) 447 { 448 if (!m_pluginView) { 449 documentLoader->writer()->setEncoding(m_response.textEncodingName(), false); 446 void FrameLoaderClientWinCE::finishedLoading(DocumentLoader*) 447 { 448 if (!m_pluginView) 450 449 return; 451 }452 450 453 451 m_pluginView->didFinishLoading(); -
trunk/Source/WebKit/wx/ChangeLog
r115926 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebKitSupport/FrameLoaderClientWx.cpp: 9 (WebCore::FrameLoaderClientWx::finishedLoading): 10 (WebCore::FrameLoaderClientWx::setMainDocumentError): 11 (WebCore::FrameLoaderClientWx::dispatchDidReceiveResponse): 12 (WebCore::FrameLoaderClientWx::dispatchDidFailLoading): 13 * WebKitSupport/FrameLoaderClientWx.h: 14 (FrameLoaderClientWx): 15 1 16 2012-04-18 Jon Honeycutt <jhoneycutt@apple.com> 2 17 -
trunk/Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.cpp
r112746 r116121 445 445 446 446 447 void FrameLoaderClientWx::finishedLoading(DocumentLoader* loader) 448 { 449 if (!m_pluginView) { 450 if (m_firstData) { 451 loader->writer()->setEncoding(m_response.textEncodingName(), false); 452 m_firstData = false; 453 } 454 } else { 447 void FrameLoaderClientWx::finishedLoading(DocumentLoader*) 448 { 449 if (m_pluginView) { 455 450 m_pluginView->didFinishLoading(); 456 451 m_pluginView = 0; … … 652 647 void FrameLoaderClientWx::setMainDocumentError(WebCore::DocumentLoader* loader, const WebCore::ResourceError&) 653 648 { 654 if (m_firstData) { 655 loader->writer()->setEncoding(m_response.textEncodingName(), false); 656 m_firstData = false; 657 } 649 notImplemented(); 658 650 } 659 651 … … 762 754 notImplemented(); 763 755 m_response = response; 764 m_firstData = true;765 756 } 766 757 … … 777 768 void FrameLoaderClientWx::dispatchDidFailLoading(DocumentLoader* loader, unsigned long, const ResourceError&) 778 769 { 779 if (m_firstData) {780 loader->writer()->setEncoding(m_response.textEncodingName(), false);781 m_firstData = false;782 }783 770 if (m_webView) { 784 771 WebKit::WebViewLoadEvent wkEvent(m_webView); -
trunk/Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.h
r115926 r116121 242 242 bool m_hasSentResponseToPlugin; 243 243 ResourceResponse m_response; 244 bool m_firstData;245 244 }; 246 245 -
trunk/Source/WebKit2/ChangeLog
r116102 r116121 1 2012-05-04 Nate Chapin <japhet@chromium.org> 2 3 Don't require FrameLoaderClient to manufacture a commitData() call for empty documents. 4 https://bugs.webkit.org/show_bug.cgi?id=85533 5 6 Reviewed by Alexey Proskuryakov. 7 8 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 9 (WebKit::WebFrameLoaderClient::finishedLoading): 10 1 11 2012-05-04 Kent Hansen <kent.hansen@nokia.com> 2 12 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r116016 r116121 880 880 { 881 881 if (!m_pluginView) { 882 committedLoad(loader, 0, 0);883 884 882 if (m_frameHasCustomRepresentation) { 885 883 WebPage* webPage = m_frame->page();
Note: See TracChangeset
for help on using the changeset viewer.