Changeset 111361 in webkit
- Timestamp:
- Mar 19, 2012, 10:58:36 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 25 deleted
- 46 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/frames/adopt-iframe-into-itself-expected.txt (added)
-
LayoutTests/fast/frames/adopt-iframe-into-itself.html (added)
-
LayoutTests/fast/frames/iframe-reparenting-adopt-node-expected.txt (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-adopt-node.html (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-embed-elements-expected.txt (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-embed-elements.html (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-expected.txt (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-fail-load-expected.txt (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-fail-load.html (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-new-page-expected.txt (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-new-page.html (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-plugins-expected.txt (deleted)
-
LayoutTests/fast/frames/iframe-reparenting-plugins.html (deleted)
-
LayoutTests/fast/frames/iframe-reparenting.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-adopt-node-iframe-content.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-adopt-node-new-page.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-embed-frame1.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-embed-iframe.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-frame1.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-frame2.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-iframe-content.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-new-page-1.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-new-page-2.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-new-page-iframe.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-plugins-iframe-content.html (deleted)
-
LayoutTests/fast/frames/resources/iframe-reparenting-plugins-new-page.html (deleted)
-
LayoutTests/fast/frames/script-tests/iframe-reparenting-new-page.js (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/Document.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLFrameElementBase.cpp (modified) (4 diffs)
-
Source/WebCore/html/HTMLFrameElementBase.h (modified) (3 diffs)
-
Source/WebCore/loader/DocumentLoader.cpp (modified) (1 diff)
-
Source/WebCore/loader/DocumentLoader.h (modified) (1 diff)
-
Source/WebCore/loader/EmptyClients.h (modified) (1 diff)
-
Source/WebCore/loader/FrameLoader.cpp (modified) (1 diff)
-
Source/WebCore/loader/FrameLoader.h (modified) (1 diff)
-
Source/WebCore/loader/FrameLoaderClient.h (modified) (1 diff)
-
Source/WebCore/loader/ResourceLoadNotifier.cpp (modified) (1 diff)
-
Source/WebCore/loader/ResourceLoadNotifier.h (modified) (1 diff)
-
Source/WebCore/page/Frame.cpp (modified) (1 diff)
-
Source/WebCore/page/Frame.h (modified) (1 diff)
-
Source/WebKit/blackberry/ChangeLog (modified) (1 diff)
-
Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp (modified) (1 diff)
-
Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.h (modified) (2 diffs)
-
Source/WebKit/chromium/ChangeLog (modified) (1 diff)
-
Source/WebKit/chromium/public/WebFrameClient.h (modified) (1 diff)
-
Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp (modified) (1 diff)
-
Source/WebKit/chromium/src/FrameLoaderClientImpl.h (modified) (1 diff)
-
Source/WebKit/efl/ChangeLog (modified) (1 diff)
-
Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp (modified) (1 diff)
-
Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.h (modified) (1 diff)
-
Source/WebKit/gtk/ChangeLog (modified) (1 diff)
-
Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp (modified) (1 diff)
-
Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h (modified) (1 diff)
-
Source/WebKit/mac/ChangeLog (modified) (1 diff)
-
Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.h (modified) (1 diff)
-
Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm (modified) (1 diff)
-
Source/WebKit/qt/ChangeLog (modified) (1 diff)
-
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp (modified) (1 diff)
-
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h (modified) (1 diff)
-
Source/WebKit/win/ChangeLog (modified) (1 diff)
-
Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp (modified) (1 diff)
-
Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.h (modified) (1 diff)
-
Source/WebKit/wince/ChangeLog (modified) (1 diff)
-
Source/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.cpp (modified) (1 diff)
-
Source/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.h (modified) (1 diff)
-
Source/WebKit/wx/ChangeLog (modified) (1 diff)
-
Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.cpp (modified) (1 diff)
-
Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.h (modified) (1 diff)
-
Source/WebKit2/ChangeLog (modified) (1 diff)
-
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp (modified) (1 diff)
-
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r111360 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove tests of magic iframe. These tests don't reall make sense to 9 keep without the feature. 10 11 * fast/frames/adopt-iframe-into-itself-expected.txt: Added. 12 * fast/frames/adopt-iframe-into-itself.html: Added. 13 - I've added a test about adopting an iframe into itself. We might 14 already have a test for this, but it covers a mistake I made in 15 an earlier iteration of this patch. 16 * fast/frames/iframe-reparenting-adopt-node-expected.txt: Removed. 17 * fast/frames/iframe-reparenting-adopt-node.html: Removed. 18 * fast/frames/iframe-reparenting-embed-elements-expected.txt: Removed. 19 * fast/frames/iframe-reparenting-embed-elements.html: Removed. 20 * fast/frames/iframe-reparenting-expected.txt: Removed. 21 * fast/frames/iframe-reparenting-fail-load-expected.txt: Removed. 22 * fast/frames/iframe-reparenting-fail-load.html: Removed. 23 * fast/frames/iframe-reparenting-new-page-expected.txt: Removed. 24 * fast/frames/iframe-reparenting-new-page.html: Removed. 25 * fast/frames/iframe-reparenting-plugins-expected.txt: Removed. 26 * fast/frames/iframe-reparenting-plugins.html: Removed. 27 * fast/frames/iframe-reparenting.html: Removed. 28 * fast/frames/resources/iframe-reparenting-adopt-node-iframe-content.html: Removed. 29 * fast/frames/resources/iframe-reparenting-adopt-node-new-page.html: Removed. 30 * fast/frames/resources/iframe-reparenting-embed-frame1.html: Removed. 31 * fast/frames/resources/iframe-reparenting-embed-iframe.html: Removed. 32 * fast/frames/resources/iframe-reparenting-frame1.html: Removed. 33 * fast/frames/resources/iframe-reparenting-frame2.html: Removed. 34 * fast/frames/resources/iframe-reparenting-iframe-content.html: Removed. 35 * fast/frames/resources/iframe-reparenting-new-page-1.html: Removed. 36 * fast/frames/resources/iframe-reparenting-new-page-2.html: Removed. 37 * fast/frames/resources/iframe-reparenting-new-page-iframe.html: Removed. 38 * fast/frames/resources/iframe-reparenting-plugins-iframe-content.html: Removed. 39 * fast/frames/resources/iframe-reparenting-plugins-new-page.html: Removed. 40 * fast/frames/script-tests/iframe-reparenting-new-page.js: Removed. 41 1 42 2012-03-19 Julien Chaffraix <[email protected]> 2 43 -
trunk/Source/WebCore/ChangeLog
r111360 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 This patch removes support for "magic" iframe, which previously allowed 9 an iframe to be transfered from one document to another without 10 reloading the iframe. The idea behind this feature was to let sites 11 create "pop out" windows that could outlive their parents by 12 transfering state to these windows via these magic iframes. 13 14 Unforuntately, this feature was never implemented by other browsers and 15 has been the source of a series of security vulnerabilities. Although 16 we have fixed each vulnerability as it has been discovered, the feature 17 is still a complex corner case that isn't widely exercised on the web. 18 For that reason, it's likely to have more vulnerabilities in the 19 future. 20 21 I'm not aware of any web sites that use this feature anymore. There 22 were a handful of them, but we appear to have been successful in 23 evangalizing them to move away from "magic" iframe. 24 25 * dom/Document.cpp: 26 (WebCore::Document::adoptNode): 27 * html/HTMLFrameElementBase.cpp: 28 (WebCore): 29 (WebCore::HTMLFrameElementBase::HTMLFrameElementBase): 30 (WebCore::HTMLFrameElementBase::insertedIntoDocument): 31 * html/HTMLFrameElementBase.h: 32 (HTMLFrameElementBase): 33 * loader/DocumentLoader.cpp: 34 (WebCore): 35 * loader/DocumentLoader.h: 36 (DocumentLoader): 37 * loader/EmptyClients.h: 38 (WebCore::EmptyFrameLoaderClient::createFrame): 39 * loader/FrameLoader.cpp: 40 (WebCore): 41 * loader/FrameLoader.h: 42 (FrameLoader): 43 * loader/FrameLoaderClient.h: 44 (FrameLoaderClient): 45 * loader/ResourceLoadNotifier.cpp: 46 (WebCore): 47 * loader/ResourceLoadNotifier.h: 48 (ResourceLoadNotifier): 49 * page/Frame.cpp: 50 (WebCore): 51 * page/Frame.h: 52 (Frame): 53 1 54 2012-03-19 Julien Chaffraix <[email protected]> 2 55 -
trunk/Source/WebCore/dom/Document.cpp
r111229 r111361 942 942 } 943 943 default: 944 // FIXME: What about <frame> and <object>? 944 945 if (source->hasTagName(iframeTag)) { 945 946 HTMLIFrameElement* iframe = static_cast<HTMLIFrameElement*>(source.get()); … … 948 949 return 0; 949 950 } 950 iframe->setRemainsAliveOnRemovalFromTree(attached() && source->attached() && iframe->canRemainAliveOnRemovalFromTree());951 951 } 952 953 952 if (source->parentNode()) 954 953 source->parentNode()->removeChild(source.get(), ec); -
trunk/Source/WebCore/html/HTMLFrameElementBase.cpp
r111108 r111361 45 45 using namespace HTMLNames; 46 46 47 // Helper to check if the Frame's document contains elements that can instantiate plugins.48 // Does a recursive check for nested Frames too.49 static bool hasPluginElements(Frame* frame)50 {51 if (!frame)52 return false;53 54 // Search for a plugin element in this document.55 Document* document = frame->document();56 for (Node* node = document->firstChild(); node; node = node->traverseNextNode(document)) {57 if (!node->isElementNode())58 continue;59 60 Element* element = static_cast<Element*>(node);61 if (element->hasLocalName(embedTag) || element->hasLocalName(objectTag))62 return true;63 }64 65 // Do the same for the nested frames.66 for (Frame* child = frame->tree()->firstChild(); child; child = child->tree()->nextSibling()) {67 if (hasPluginElements(child))68 return true;69 }70 71 return false;72 }73 74 47 HTMLFrameElementBase::HTMLFrameElementBase(const QualifiedName& tagName, Document* document) 75 48 : HTMLFrameOwnerElement(tagName, document) … … 77 50 , m_marginWidth(-1) 78 51 , m_marginHeight(-1) 79 , m_checkInDocumentTimer(this, &HTMLFrameElementBase::checkInDocumentTimerFired)80 52 , m_viewSource(false) 81 , m_remainsAliveOnRemovalFromTree(false)82 53 { 83 54 } … … 181 152 } 182 153 183 void HTMLFrameElementBase::updateOnReparenting()184 {185 ASSERT(m_remainsAliveOnRemovalFromTree);186 187 if (Frame* frame = contentFrame())188 frame->transferChildFrameToNewDocument();189 }190 191 154 void HTMLFrameElementBase::insertedIntoDocument() 192 155 { 193 156 HTMLFrameOwnerElement::insertedIntoDocument(); 194 157 195 if (m_remainsAliveOnRemovalFromTree) {196 updateOnReparenting();197 m_remainsAliveOnRemovalFromTree = false;198 m_checkInDocumentTimer.stop();199 return;200 }201 158 // DocumentFragments don't kick of any loads. 202 159 if (!document()->frame()) … … 278 235 } 279 236 280 // Some types of content can restrict the ability to move the iframes between pages.281 // For example, the plugin infrastructure of an embedder may associate the plugin instances282 // with the top-level Frame for tracking various resources and failure to transfer those283 // resources correctly may lead to crashes and other ill effects (https://bugs.webkit.org/show_bug.cgi?id=68267)284 bool HTMLFrameElementBase::canRemainAliveOnRemovalFromTree()285 {286 return !hasPluginElements(contentFrame());287 }288 289 void HTMLFrameElementBase::setRemainsAliveOnRemovalFromTree(bool value)290 {291 ASSERT(!value || canRemainAliveOnRemovalFromTree());292 m_remainsAliveOnRemovalFromTree = value;293 294 // There is a possibility that JS will do document.adoptNode() on this element but will not insert it into the tree.295 // Start the async timer that is normally stopped by attach(). If it's not stopped and fires, it'll unload the frame.296 if (value)297 m_checkInDocumentTimer.startOneShot(0);298 else {299 m_checkInDocumentTimer.stop();300 willRemove();301 }302 }303 304 void HTMLFrameElementBase::checkInDocumentTimerFired(Timer<HTMLFrameElementBase>*)305 {306 ASSERT(!attached());307 ASSERT(m_remainsAliveOnRemovalFromTree);308 309 m_remainsAliveOnRemovalFromTree = false;310 willRemove();311 }312 313 void HTMLFrameElementBase::willRemove()314 {315 if (m_remainsAliveOnRemovalFromTree)316 return;317 318 HTMLFrameOwnerElement::willRemove();319 }320 321 237 #if ENABLE(FULLSCREEN_API) 322 238 bool HTMLFrameElementBase::allowFullScreen() const -
trunk/Source/WebCore/html/HTMLFrameElementBase.h
r106769 r111361 43 43 int height(); 44 44 45 bool canRemainAliveOnRemovalFromTree();46 void setRemainsAliveOnRemovalFromTree(bool);47 45 #if ENABLE(FULLSCREEN_API) 48 46 virtual bool allowFullScreen() const; … … 67 65 virtual bool isFrameElementBase() const { return true; } 68 66 69 virtual void willRemove();70 void checkInDocumentTimerFired(Timer<HTMLFrameElementBase>*);71 void updateOnReparenting();72 73 67 bool viewSourceMode() const { return m_viewSource; } 74 68 … … 84 78 int m_marginHeight; 85 79 86 // This is a performance optimization some call "magic iframe" which avoids87 // tearing down the frame hierarchy when a web page calls adoptNode on a88 // frame owning element but does not immediately insert it into the new89 // document before JavaScript yields to WebCore. If the element is not yet90 // in a document by the time this timer fires, the frame hierarchy teardown91 // will continue. This can also be seen as implementation of:92 // "Removing an iframe from a Document does not cause its browsing context93 // to be discarded. Indeed, an iframe's browsing context can survive its94 // original parent Document if its iframe is moved to another Document."95 // From HTML5: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#the-iframe-element96 Timer<HTMLFrameElementBase> m_checkInDocumentTimer;97 98 80 bool m_viewSource; 99 bool m_remainsAliveOnRemovalFromTree;100 81 }; 101 82 -
trunk/Source/WebCore/loader/DocumentLoader.cpp
r107995 r111361 851 851 } 852 852 853 void DocumentLoader::transferLoadingResourcesFromPage(Page* oldPage)854 {855 ASSERT(oldPage != m_frame->page());856 857 FrameLoader* loader = frameLoader();858 ASSERT(loader);859 860 if (isLoadingMainResource())861 loader->dispatchTransferLoadingResourceFromPage(m_mainResourceLoader.get(), originalRequest(), oldPage);862 863 if (isLoadingSubresources()) {864 ResourceLoaderSet::const_iterator it = m_subresourceLoaders.begin();865 ResourceLoaderSet::const_iterator end = m_subresourceLoaders.end();866 for (; it != end; ++it)867 loader->dispatchTransferLoadingResourceFromPage((*it).get(), (*it)->originalRequest(), oldPage);868 }869 }870 871 853 void DocumentLoader::maybeFinishLoadingMultipartContent() 872 854 { -
trunk/Source/WebCore/loader/DocumentLoader.h
r96856 r111361 222 222 void subresourceLoaderFinishedLoadingOnePart(ResourceLoader*); 223 223 224 void transferLoadingResourcesFromPage(Page*);225 226 224 void maybeFinishLoadingMultipartContent(); 227 225 -
trunk/Source/WebCore/loader/EmptyClients.h
r110865 r111361 375 375 virtual void didDetectXSS(const KURL&, bool) { } 376 376 virtual PassRefPtr<Frame> createFrame(const KURL&, const String&, HTMLFrameOwnerElement*, const String&, bool, int, int) { return 0; } 377 virtual void didTransferChildFrameToNewDocument(Page*) { }378 virtual void transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*) { }379 377 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool) { return 0; } 380 378 virtual PassRefPtr<Widget> createJavaAppletWidget(const IntSize&, HTMLAppletElement*, const KURL&, const Vector<String>&, const Vector<String>&) { return 0; } -
trunk/Source/WebCore/loader/FrameLoader.cpp
r110570 r111361 1647 1647 } 1648 1648 1649 void FrameLoader::transferLoadingResourcesFromPage(Page* oldPage)1650 {1651 ASSERT(oldPage != m_frame->page());1652 if (isLoading()) {1653 activeDocumentLoader()->transferLoadingResourcesFromPage(oldPage);1654 oldPage->progress()->progressCompleted(m_frame);1655 if (m_frame->page())1656 m_frame->page()->progress()->progressStarted(m_frame);1657 }1658 }1659 1660 void FrameLoader::dispatchTransferLoadingResourceFromPage(ResourceLoader* loader, const ResourceRequest& request, Page* oldPage)1661 {1662 notifier()->dispatchTransferLoadingResourceFromPage(loader, request, oldPage);1663 }1664 1665 1649 void FrameLoader::setDocumentLoader(DocumentLoader* loader) 1666 1650 { -
trunk/Source/WebCore/loader/FrameLoader.h
r109480 r111361 136 136 bool isLoading() const; 137 137 bool frameHasLoaded() const; 138 void transferLoadingResourcesFromPage(Page*);139 void dispatchTransferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*);140 138 141 139 int numPendingOrLoadingRequests(bool recurse) const; -
trunk/Source/WebCore/loader/FrameLoaderClient.h
r109064 r111361 257 257 virtual void download(ResourceHandle*, const ResourceRequest&, const ResourceResponse&) = 0; 258 258 259 virtual PassRefPtr<Frame> createFrame(const KURL& url, const String& name, HTMLFrameOwnerElement* ownerElement, 260 const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight) = 0; 261 virtual void didTransferChildFrameToNewDocument(Page* oldPage) = 0; 262 virtual void transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page* oldPage) = 0; 259 virtual PassRefPtr<Frame> createFrame(const KURL& url, const String& name, HTMLFrameOwnerElement* ownerElement, const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight) = 0; 263 260 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually) = 0; 264 261 virtual void redirectDataToPlugin(Widget* pluginWidget) = 0; -
trunk/Source/WebCore/loader/ResourceLoadNotifier.cpp
r95901 r111361 145 145 } 146 146 147 void ResourceLoadNotifier::dispatchTransferLoadingResourceFromPage(ResourceLoader* loader, const ResourceRequest& request, Page* oldPage)148 {149 ASSERT(oldPage != m_frame->page());150 m_frame->loader()->client()->transferLoadingResourceFromPage(loader, request, oldPage);151 152 oldPage->progress()->completeProgress(loader->identifier());153 }154 155 147 void ResourceLoadNotifier::sendRemainingDelegateMessages(DocumentLoader* loader, unsigned long identifier, const ResourceResponse& response, const char* data, int dataLength, int encodedDataLength, const ResourceError& error) 156 148 { -
trunk/Source/WebCore/loader/ResourceLoadNotifier.h
r95901 r111361 63 63 void dispatchDidReceiveData(DocumentLoader*, unsigned long identifier, const char* data, int dataLength, int encodedDataLength); 64 64 void dispatchDidFinishLoading(DocumentLoader*, unsigned long identifier, double finishTime); 65 void dispatchTransferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*);66 65 67 66 void sendRemainingDelegateMessages(DocumentLoader*, unsigned long identifier, const ResourceResponse&, const char* data, int dataLength, int encodedDataLength, const ResourceError&); -
trunk/Source/WebCore/page/Frame.cpp
r111141 r111361 718 718 } 719 719 720 // The frame is moved in DOM, potentially to another page.721 void Frame::transferChildFrameToNewDocument()722 {723 ASSERT(m_ownerElement);724 Frame* newParent = m_ownerElement->document()->frame();725 ASSERT(newParent);726 bool didTransfer = false;727 728 // Switch page.729 Page* newPage = newParent->page();730 Page* oldPage = m_page;731 if (m_page != newPage) {732 if (m_page) {733 if (m_page->focusController()->focusedFrame() == this)734 m_page->focusController()->setFocusedFrame(0);735 736 m_page->decrementFrameCount();737 }738 739 if (m_domWindow) {740 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)741 m_domWindow->resetNotifications();742 #endif743 }744 745 HashSet<FrameDestructionObserver*>::iterator stop = m_destructionObservers.end();746 for (HashSet<FrameDestructionObserver*>::iterator it = m_destructionObservers.begin(); it != stop; ++it)747 (*it)->willDetachPage();748 749 m_page = newPage;750 751 if (newPage)752 newPage->incrementFrameCount();753 754 didTransfer = true;755 }756 757 // Update the frame tree.758 didTransfer = newParent->tree()->transferChild(this) || didTransfer;759 760 // Avoid unnecessary calls to client and frame subtree if the frame ended761 // up on the same page and under the same parent frame.762 if (didTransfer) {763 // Let external clients update themselves.764 loader()->client()->didTransferChildFrameToNewDocument(oldPage);765 766 // Update resource tracking now that frame could be in a different page.767 if (oldPage != newPage)768 loader()->transferLoadingResourcesFromPage(oldPage);769 770 // Do the same for all the children.771 for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())772 child->transferChildFrameToNewDocument();773 }774 }775 776 720 String Frame::documentTypeString() const 777 721 { -
trunk/Source/WebCore/page/Frame.h
r109548 r111361 114 114 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame. 115 115 116 void transferChildFrameToNewDocument();117 118 116 #if ENABLE(PAGE_VISIBILITY_API) 119 117 void dispatchVisibilityStateChangeEvent(); -
trunk/Source/WebKit/blackberry/ChangeLog
r111259 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebCoreSupport/FrameLoaderClientBlackBerry.cpp: 11 (WebCore): 12 * WebCoreSupport/FrameLoaderClientBlackBerry.h: 13 (FrameLoaderClientBlackBerry): 14 (WebCore::FrameLoaderClientBlackBerry::didDetectXSS): 15 1 16 2012-03-19 Tyler Abbott <[email protected]> 2 17 -
trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp
r111000 r111361 741 741 } 742 742 743 void FrameLoaderClientBlackBerry::didTransferChildFrameToNewDocument(Page* /*oldPage*/)744 {745 Page* newPage = m_frame->page();746 m_webPagePrivate = static_cast<ChromeClientBlackBerry*>(newPage->chrome()->client())->webPagePrivate();747 }748 749 void FrameLoaderClientBlackBerry::transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*)750 {751 notImplemented();752 }753 754 743 ObjectContentType FrameLoaderClientBlackBerry::objectContentType(const KURL& url, const String& mimeTypeIn, bool shouldPreferPlugInsForImages) 755 744 { -
trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.h
r107991 r111361 149 149 virtual void download(ResourceHandle*, const ResourceRequest&, const ResourceRequest&, const ResourceResponse&); 150 150 virtual PassRefPtr<Frame> createFrame(const KURL&, const String&, HTMLFrameOwnerElement*, const String&, bool, int, int); 151 virtual void didTransferChildFrameToNewDocument(Page*);152 151 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool); 153 152 virtual void redirectDataToPlugin(Widget*); … … 165 164 166 165 virtual void didDetectXSS(const KURL&, bool) { } 167 virtual void transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*);168 virtual void didTransferChildFrameToNewDocument() { notImplemented(); };169 166 virtual void dispatchDidChangeIcons(IconType) { notImplemented(); }; 170 167 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) { notImplemented(); }; -
trunk/Source/WebKit/chromium/ChangeLog
r111350 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * public/WebFrameClient.h: 11 (WebFrameClient): 12 * src/FrameLoaderClientImpl.cpp: 13 (WebKit): 14 * src/FrameLoaderClientImpl.h: 15 (FrameLoaderClientImpl): 16 1 17 2012-03-19 Charlie Reis <[email protected]> 2 18 -
trunk/Source/WebKit/chromium/public/WebFrameClient.h
r109064 r111361 285 285 virtual void didDetectXSS(WebFrame*, const WebURL&, bool didBlockEntirePage) { } 286 286 287 // This frame adopted the resource that is being loaded. This happens when288 // an iframe, that is loading a subresource, is transferred between windows.289 virtual void didAdoptURLLoader(WebURLLoader*) { }290 291 287 // Script notifications ------------------------------------------------ 292 288 -
trunk/Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp
r111258 r111361 1461 1461 } 1462 1462 1463 void FrameLoaderClientImpl::didTransferChildFrameToNewDocument(Page*)1464 {1465 ASSERT(m_webFrame->frame()->ownerElement());1466 1467 WebFrameImpl* newParent = static_cast<WebFrameImpl*>(m_webFrame->parent());1468 if (!newParent || !newParent->client())1469 return;1470 1471 // Replace the client since the old client may be destroyed when the1472 // previous page is closed.1473 m_webFrame->setClient(newParent->client());1474 }1475 1476 void FrameLoaderClientImpl::transferLoadingResourceFromPage(ResourceLoader* loader, const ResourceRequest& request, Page* oldPage)1477 {1478 assignIdentifierToInitialRequest(loader->identifier(), loader->documentLoader(), request);1479 1480 WebFrameImpl* oldWebFrame = WebFrameImpl::fromFrame(oldPage->mainFrame());1481 if (oldWebFrame && oldWebFrame->client())1482 oldWebFrame->client()->removeIdentifierForRequest(loader->identifier());1483 1484 ResourceHandle* handle = loader->handle();1485 WebURLLoader* webURLLoader = ResourceHandleInternal::FromResourceHandle(handle)->loader();1486 if (webURLLoader && m_webFrame->client())1487 m_webFrame->client()->didAdoptURLLoader(webURLLoader);1488 }1489 1490 1463 PassRefPtr<Widget> FrameLoaderClientImpl::createPlugin( 1491 1464 const IntSize& size, // FIXME: how do we use this? -
trunk/Source/WebKit/chromium/src/FrameLoaderClientImpl.h
r109064 r111361 178 178 const WTF::String& referrer, bool allowsScrolling, 179 179 int marginWidth, int marginHeight); 180 virtual void didTransferChildFrameToNewDocument(WebCore::Page*);181 virtual void transferLoadingResourceFromPage(WebCore::ResourceLoader*, const WebCore::ResourceRequest&, WebCore::Page*);182 180 virtual PassRefPtr<WebCore::Widget> createPlugin( 183 181 const WebCore::IntSize&, WebCore::HTMLPlugInElement*, const WebCore::KURL&, -
trunk/Source/WebKit/efl/ChangeLog
r110991 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebCoreSupport/FrameLoaderClientEfl.cpp: 11 (WebCore): 12 * WebCoreSupport/FrameLoaderClientEfl.h: 13 (FrameLoaderClientEfl): 14 1 15 2012-03-16 Kihong Kwon <[email protected]> 2 16 -
trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp
r107854 r111361 330 330 } 331 331 332 void FrameLoaderClientEfl::didTransferChildFrameToNewDocument(Page*)333 {334 ASSERT(m_frame);335 336 Frame* currentFrame = EWKPrivate::coreFrame(m_frame);337 Evas_Object* currentView = ewk_frame_view_get(m_frame);338 Frame* parentFrame = currentFrame->tree()->parent();339 340 FrameLoaderClientEfl* client = static_cast<FrameLoaderClientEfl*>(parentFrame->loader()->client());341 Evas_Object* clientFrame = client ? client->webFrame() : 0;342 Evas_Object* clientView = ewk_frame_view_get(clientFrame);343 344 if (currentView != clientView) {345 ewk_frame_view_set(m_frame, clientView);346 m_view = clientView;347 }348 349 ASSERT(ewk_view_core_page_get(ewk_frame_view_get(m_frame)) == currentFrame->page());350 }351 352 void FrameLoaderClientEfl::transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*)353 {354 }355 356 332 void FrameLoaderClientEfl::redirectDataToPlugin(Widget* pluginWidget) 357 333 { -
trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.h
r101609 r111361 133 133 virtual PassRefPtr<Frame> createFrame(const KURL&, const String& name, HTMLFrameOwnerElement*, 134 134 const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight); 135 virtual void didTransferChildFrameToNewDocument(Page*);136 virtual void transferLoadingResourceFromPage(WebCore::ResourceLoader*, const ResourceRequest&, WebCore::Page*);137 135 138 136 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const WTF::Vector<String>&, const WTF::Vector<String>&, const String&, bool); -
trunk/Source/WebKit/gtk/ChangeLog
r111340 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebCoreSupport/FrameLoaderClientGtk.cpp: 11 (WebKit): 12 * WebCoreSupport/FrameLoaderClientGtk.h: 13 (FrameLoaderClient): 14 1 15 2012-03-19 Gustavo Noronha Silva <[email protected]> 2 16 -
trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
r110999 r111361 533 533 } 534 534 535 void FrameLoaderClient::didTransferChildFrameToNewDocument(WebCore::Page*)536 {537 ASSERT(m_frame);538 539 // Update the frame's webview to the new parent's webview.540 Frame* coreFrame = core(m_frame);541 WebKitWebView* webView = getViewFromFrame(m_frame);542 543 Frame* parentCoreFrame = coreFrame->tree()->parent();544 WebKitWebFrame* parentKitFrame = kit(parentCoreFrame);545 WebKitWebView* parentWebView = getViewFromFrame(parentKitFrame);546 if (webView != parentWebView)547 m_frame->priv->webView = parentWebView;548 549 ASSERT(core(getViewFromFrame(m_frame)) == coreFrame->page());550 }551 552 void FrameLoaderClient::transferLoadingResourceFromPage(WebCore::ResourceLoader* loader, const WebCore::ResourceRequest& request, WebCore::Page* oldPage)553 {554 ASSERT(oldPage != core(m_frame)->page());555 556 GOwnPtr<gchar> identifierString(toString(loader->identifier()));557 ASSERT(!webkit_web_view_get_resource(getViewFromFrame(m_frame), identifierString.get()));558 559 assignIdentifierToInitialRequest(loader->identifier(), loader->documentLoader(), request);560 561 webkit_web_view_remove_resource(kit(oldPage), identifierString.get());562 }563 564 535 void FrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) 565 536 { -
trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h
r101933 r111361 116 116 virtual PassRefPtr<WebCore::Frame> createFrame(const WebCore::KURL& url, const WTF::String& name, WebCore::HTMLFrameOwnerElement* ownerElement, 117 117 const WTF::String& referrer, bool allowsScrolling, int marginWidth, int marginHeight); 118 virtual void didTransferChildFrameToNewDocument(WebCore::Page*);119 virtual void transferLoadingResourceFromPage(WebCore::ResourceLoader*, const WebCore::ResourceRequest&, WebCore::Page*);120 118 virtual PassRefPtr<WebCore::Widget> createPlugin(const WebCore::IntSize&, WebCore::HTMLPlugInElement*, const WebCore::KURL&, const WTF::Vector<WTF::String>&, const WTF::Vector<WTF::String>&, const WTF::String&, bool); 121 119 virtual void redirectDataToPlugin(WebCore::Widget* pluginWidget); -
trunk/Source/WebKit/mac/ChangeLog
r111276 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebCoreSupport/WebFrameLoaderClient.h: 11 * WebCoreSupport/WebFrameLoaderClient.mm: 12 1 13 2012-03-19 Enrica Casucci <[email protected]> 2 14 -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.h
r101609 r111361 199 199 virtual PassRefPtr<WebCore::Frame> createFrame(const WebCore::KURL& url, const WTF::String& name, WebCore::HTMLFrameOwnerElement*, 200 200 const WTF::String& referrer, bool allowsScrolling, int marginWidth, int marginHeight) OVERRIDE; 201 virtual void didTransferChildFrameToNewDocument(WebCore::Page* oldPage) OVERRIDE;202 virtual void transferLoadingResourceFromPage(WebCore::ResourceLoader*, const WebCore::ResourceRequest&, WebCore::Page* oldPage);203 201 virtual PassRefPtr<WebCore::Widget> createPlugin(const WebCore::IntSize&, WebCore::HTMLPlugInElement*, const WebCore::KURL&, const Vector<WTF::String>&, 204 202 const Vector<WTF::String>&, const WTF::String&, bool) OVERRIDE; -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
r109670 r111361 1387 1387 } 1388 1388 1389 void WebFrameLoaderClient::didTransferChildFrameToNewDocument(Page* oldPage)1390 {1391 }1392 1393 void WebFrameLoaderClient::transferLoadingResourceFromPage(ResourceLoader* loader, const ResourceRequest& originalRequest, Page* oldPage)1394 {1395 ASSERT(oldPage != core(m_webFrame.get())->page());1396 1397 unsigned long identifier = loader->identifier();1398 ASSERT(![getWebView(m_webFrame.get()) _objectForIdentifier:identifier]);1399 1400 assignIdentifierToInitialRequest(identifier, loader->documentLoader(), originalRequest);1401 1402 [kit(oldPage) _removeObjectForIdentifier:identifier];1403 }1404 1405 1389 ObjectContentType WebFrameLoaderClient::objectContentType(const KURL& url, const String& mimeType, bool shouldPreferPlugInsForImages) 1406 1390 { -
trunk/Source/WebKit/qt/ChangeLog
r111268 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebCoreSupport/FrameLoaderClientQt.cpp: 11 (WebCore): 12 * WebCoreSupport/FrameLoaderClientQt.h: 13 (FrameLoaderClientQt): 14 1 15 2012-03-19 Emil A Eklund <[email protected]> 2 16 -
trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r107915 r111361 1367 1367 } 1368 1368 1369 void FrameLoaderClientQt::didTransferChildFrameToNewDocument(Page*)1370 {1371 ASSERT(m_frame->ownerElement());1372 1373 if (!m_webFrame)1374 return;1375 1376 Frame* parentFrame = m_webFrame->d->frame->tree()->parent();1377 ASSERT(parentFrame);1378 1379 if (QWebFrame* parent = QWebFramePrivate::kit(parentFrame)) {1380 m_webFrame->d->setPage(parent->page());1381 1382 if (m_webFrame->parent() != qobject_cast<QObject*>(parent))1383 m_webFrame->setParent(parent);1384 }1385 }1386 1387 void FrameLoaderClientQt::transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*)1388 {1389 }1390 1391 1369 ObjectContentType FrameLoaderClientQt::objectContentType(const KURL& url, const String& mimeTypeIn, bool shouldPreferPlugInsForImages) 1392 1370 { -
trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h
r102592 r111361 208 208 virtual PassRefPtr<Frame> createFrame(const KURL& url, const String& name, HTMLFrameOwnerElement* ownerElement, 209 209 const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight); 210 virtual void didTransferChildFrameToNewDocument(WebCore::Page*);211 virtual void transferLoadingResourceFromPage(WebCore::ResourceLoader*, const WebCore::ResourceRequest&, WebCore::Page*);212 210 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool); 213 211 virtual void redirectDataToPlugin(Widget* pluginWidget); -
trunk/Source/WebKit/win/ChangeLog
r111331 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebCoreSupport/WebFrameLoaderClient.cpp: 11 * WebCoreSupport/WebFrameLoaderClient.h: 12 (WebFrameLoaderClient): 13 1 14 2012-03-19 Anders Carlsson <[email protected]> 2 15 -
trunk/Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp
r109670 r111361 763 763 } 764 764 765 void WebFrameLoaderClient::didTransferChildFrameToNewDocument(Page*)766 {767 Frame* coreFrame = core(m_webFrame);768 ASSERT(coreFrame);769 WebView* webView = kit(coreFrame->page());770 if (m_webFrame->webView() != webView)771 m_webFrame->setWebView(webView);772 }773 774 void WebFrameLoaderClient::transferLoadingResourceFromPage(ResourceLoader* loader, const ResourceRequest& request, Page* oldPage)775 {776 assignIdentifierToInitialRequest(loader->identifier(), loader->documentLoader(), request);777 778 WebView* oldWebView = kit(oldPage);779 if (!oldWebView)780 return;781 782 COMPtr<IWebResourceLoadDelegate> oldResourceLoadDelegate;783 if (FAILED(oldWebView->resourceLoadDelegate(&oldResourceLoadDelegate)))784 return;785 786 COMPtr<IWebResourceLoadDelegatePrivate2> oldResourceLoadDelegatePrivate2(Query, oldResourceLoadDelegate);787 if (!oldResourceLoadDelegatePrivate2)788 return;789 oldResourceLoadDelegatePrivate2->removeIdentifierForRequest(oldWebView, loader->identifier());790 }791 792 765 PassRefPtr<Frame> WebFrameLoaderClient::createFrame(const KURL& URL, const String& name, HTMLFrameOwnerElement* ownerElement, const String& referrer) 793 766 { -
trunk/Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.h
r99096 r111361 117 117 virtual PassRefPtr<WebCore::Frame> createFrame(const WebCore::KURL& url, const WTF::String& name, WebCore::HTMLFrameOwnerElement* ownerElement, 118 118 const WTF::String& referrer, bool allowsScrolling, int marginWidth, int marginHeight); 119 virtual void didTransferChildFrameToNewDocument(WebCore::Page*);120 virtual void transferLoadingResourceFromPage(WebCore::ResourceLoader*, const WebCore::ResourceRequest&, WebCore::Page*);121 119 virtual PassRefPtr<WebCore::Widget> createPlugin(const WebCore::IntSize&, WebCore::HTMLPlugInElement*, const WebCore::KURL&, const Vector<WTF::String>&, const Vector<WTF::String>&, const WTF::String&, bool loadManually); 122 120 virtual void redirectDataToPlugin(WebCore::Widget* pluginWidget); -
trunk/Source/WebKit/wince/ChangeLog
r110784 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebCoreSupport/FrameLoaderClientWinCE.cpp: 11 (WebKit): 12 * WebCoreSupport/FrameLoaderClientWinCE.h: 13 (FrameLoaderClientWinCE): 14 1 15 2012-03-13 Jon Lee <[email protected]> 2 16 -
trunk/Source/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.cpp
r101609 r111361 173 173 } 174 174 175 void FrameLoaderClientWinCE::didTransferChildFrameToNewDocument(Page*)176 {177 }178 179 void FrameLoaderClientWinCE::transferLoadingResourceFromPage(ResourceLoader*, const WebCore::ResourceRequest&, Page*)180 {181 }182 183 175 void FrameLoaderClientWinCE::redirectDataToPlugin(Widget* pluginWidget) 184 176 { -
trunk/Source/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.h
r101609 r111361 110 110 virtual PassRefPtr<WebCore::Frame> createFrame(const WebCore::KURL& url, const WTF::String& name, WebCore::HTMLFrameOwnerElement* ownerElement, 111 111 const WTF::String& referrer, bool allowsScrolling, int marginWidth, int marginHeight); 112 virtual void didTransferChildFrameToNewDocument(WebCore::Page*);113 virtual void transferLoadingResourceFromPage(WebCore::ResourceLoader*, const WebCore::ResourceRequest&, WebCore::Page*);114 112 virtual PassRefPtr<WebCore::Widget> createPlugin(const WebCore::IntSize&, WebCore::HTMLPlugInElement*, const WebCore::KURL&, const WTF::Vector<WTF::String>&, const WTF::Vector<WTF::String>&, const WTF::String&, bool); 115 113 virtual void redirectDataToPlugin(WebCore::Widget* pluginWidget); -
trunk/Source/WebKit/wx/ChangeLog
r110859 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebKitSupport/FrameLoaderClientWx.cpp: 11 (WebCore): 12 * WebKitSupport/FrameLoaderClientWx.h: 13 (FrameLoaderClientWx): 14 1 15 2012-03-15 Kevin Ollivier <[email protected]> 2 16 -
trunk/Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.cpp
r101835 r111361 901 901 } 902 902 903 void FrameLoaderClientWx::didTransferChildFrameToNewDocument(Page*)904 {905 }906 907 void FrameLoaderClientWx::transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*)908 {909 }910 911 903 ObjectContentType FrameLoaderClientWx::objectContentType(const KURL& url, const String& mimeType, bool shouldPreferPlugInsForImages) 912 904 { -
trunk/Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.h
r101609 r111361 212 212 virtual PassRefPtr<Frame> createFrame(const KURL& url, const String& name, HTMLFrameOwnerElement* ownerElement, 213 213 const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight); 214 virtual void didTransferChildFrameToNewDocument(Page*);215 virtual void transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*);216 214 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually) ; 217 215 virtual void redirectDataToPlugin(Widget* pluginWidget); -
trunk/Source/WebKit2/ChangeLog
r111340 r111361 1 2012-03-19 Adam Barth <[email protected]> 2 3 Remove support for "magic" iframe 4 https://bugs.webkit.org/show_bug.cgi?id=81590 5 6 Reviewed by Eric Seidel. 7 8 Remove FrameLoaderClient methods that no longer exist. 9 10 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 11 (WebKit): 12 * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: 13 1 14 2012-03-19 Gustavo Noronha Silva <[email protected]> 2 15 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r111235 r111361 1255 1255 } 1256 1256 1257 void WebFrameLoaderClient::didTransferChildFrameToNewDocument(Page*)1258 {1259 notImplemented();1260 }1261 1262 void WebFrameLoaderClient::transferLoadingResourceFromPage(ResourceLoader*, const ResourceRequest&, Page*)1263 {1264 notImplemented();1265 }1266 1267 1257 PassRefPtr<Widget> WebFrameLoaderClient::createPlugin(const IntSize&, HTMLPlugInElement* pluginElement, const KURL& url, const Vector<String>& paramNames, const Vector<String>& paramValues, const String& mimeType, bool loadManually) 1268 1258 { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.h
r106492 r111361 184 184 virtual PassRefPtr<WebCore::Frame> createFrame(const WebCore::KURL& url, const String& name, WebCore::HTMLFrameOwnerElement* ownerElement, 185 185 const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight) OVERRIDE; 186 virtual void didTransferChildFrameToNewDocument(WebCore::Page*) OVERRIDE;187 virtual void transferLoadingResourceFromPage(WebCore::ResourceLoader*, const WebCore::ResourceRequest&, WebCore::Page*) OVERRIDE;188 186 189 187 virtual PassRefPtr<WebCore::Widget> createPlugin(const WebCore::IntSize&, WebCore::HTMLPlugInElement*, const WebCore::KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually) OVERRIDE;
Note:
See TracChangeset
for help on using the changeset viewer.