Changeset 110982 in webkit


Ignore:
Timestamp:
Mar 16, 2012 3:39:51 AM (12 years ago)
Author:
leo.yang@torchmobile.com.cn
Message:

[BlackBerry] Crash when going back from an xhtml document containing <img>
https://bugs.webkit.org/show_bug.cgi?id=81297

Reviewed by Rob Buis.

This is manually reverting the offending internal commit which checked-in before upstreaming.

  • WebCoreSupport/FrameLoaderClientBlackBerry.cpp:

(WebCore::FrameLoaderClientBlackBerry::canCachePage):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/ChangeLog

    r110966 r110982  
     12012-03-16  Leo Yang  <leo.yang@torchmobile.com.cn>
     2
     3        [BlackBerry] Crash when going back from an xhtml document containing <img>
     4        https://bugs.webkit.org/show_bug.cgi?id=81297
     5
     6        Reviewed by Rob Buis.
     7
     8        This is manually reverting the offending internal commit which checked-in before upstreaming.
     9
     10        * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
     11        (WebCore::FrameLoaderClientBlackBerry::canCachePage):
     12
    1132012-03-16  Genevieve Mak  <gmak@rim.com>
    214
  • trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp

    r110023 r110982  
    2525#include "BackingStore_p.h"
    2626#include "Base64.h"
    27 #include "CachedImage.h"
    2827#include "Chrome.h"
    2928#include "ChromeClientBlackBerry.h"
     
    3534#include "HTMLFormElement.h"
    3635#include "HTMLHeadElement.h"
    37 #include "HTMLImageElement.h"
    3836#include "HTMLLinkElement.h"
    3937#include "HTMLMediaElement.h"
     
    12081206        return false;
    12091207
    1210     // The multipart of "multipart/x-mixed-replace" only supports image, correct?
    1211     // FIXME: Do we have a better place to handle this case?
    1212     nodeList = m_frame->document()->getElementsByTagName(HTMLNames::imgTag.localName());
    1213     for (unsigned i = 0; i < nodeList.get()->length(); ++i) {
    1214         HTMLImageElement* node = static_cast<HTMLImageElement*>(nodeList.get()->item(i));
    1215         CachedImage* cachedimage = node ? node->cachedImage() : 0;
    1216         if (cachedimage && cachedimage->response().isMultipartPayload())
    1217             return false;
    1218     }
    12191208    return true;
    12201209}
Note: See TracChangeset for help on using the changeset viewer.