Changeset 185301 in webkit


Ignore:
Timestamp:
Jun 7, 2015, 7:42:28 AM (10 years ago)
Author:
Antti Koivisto
Message:

CrashTracer: [USER] com.apple.WebKit.WebContent.Development at com.apple.WebCore: WebCore::FrameLoader::subresourceCachePolicy const + 11
https://bugs.webkit.org/show_bug.cgi?id=145736
rdar://problem/21246971

Reviewed by David Kilzer.

No repro, no test.

  • html/HTMLLinkElement.cpp:

(WebCore::HTMLLinkElement::setCSSStyleSheet):

Null check frame. It may be null during frame teardown.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r185294 r185301  
     12015-06-07  Antti Koivisto  <antti@apple.com>
     2
     3        CrashTracer: [USER] com.apple.WebKit.WebContent.Development at com.apple.WebCore: WebCore::FrameLoader::subresourceCachePolicy const + 11
     4        https://bugs.webkit.org/show_bug.cgi?id=145736
     5        rdar://problem/21246971
     6
     7        Reviewed by David Kilzer.
     8
     9        No repro, no test.
     10
     11        * html/HTMLLinkElement.cpp:
     12        (WebCore::HTMLLinkElement::setCSSStyleSheet):
     13
     14            Null check frame. It may be null during frame teardown.
     15
    1162015-06-06  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebCore/html/HTMLLinkElement.cpp

    r185111 r185301  
    318318        return;
    319319    }
     320    auto* frame = document().frame();
     321    if (!frame)
     322        return;
     323
    320324    // Completing the sheet load may cause scripts to execute.
    321325    Ref<HTMLLinkElement> protect(*this);
    322326
    323327    CSSParserContext parserContext(document(), baseURL, charset);
    324     auto cachePolicy = document().frame()->loader().subresourceCachePolicy();
     328    auto cachePolicy = frame->loader().subresourceCachePolicy();
    325329
    326330    if (RefPtr<StyleSheetContents> restoredSheet = const_cast<CachedCSSStyleSheet*>(cachedStyleSheet)->restoreParsedStyleSheet(parserContext, cachePolicy)) {
Note: See TracChangeset for help on using the changeset viewer.