Changeset 143402 in webkit


Ignore:
Timestamp:
Feb 19, 2013 4:15:23 PM (11 years ago)
Author:
tonyg@chromium.org
Message:

Fix checkThatTokensAreSafeToSendToAnotherThread() now that the preload scanner is enabled
https://bugs.webkit.org/show_bug.cgi?id=110258

Reviewed by Adam Barth.

We were hitting this ASSERT on numerous tests with the background parser enabled. This copy fixes the assertion.

No new tests becuase covered by existing tests.

  • html/parser/HTMLResourcePreloader.h:

(WebCore::PreloadRequest::setCharset):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r143399 r143402  
     12013-02-19  Tony Gentilcore  <tonyg@chromium.org>
     2
     3        Fix checkThatTokensAreSafeToSendToAnotherThread() now that the preload scanner is enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=110258
     5
     6        Reviewed by Adam Barth.
     7
     8        We were hitting this ASSERT on numerous tests with the background parser enabled. This copy fixes the assertion.
     9
     10        No new tests becuase covered by existing tests.
     11
     12        * html/parser/HTMLResourcePreloader.h:
     13        (WebCore::PreloadRequest::setCharset):
     14
    1152013-02-19  Tony Gentilcore  <tonyg@chromium.org>
    216
  • trunk/Source/WebCore/html/parser/HTMLResourcePreloader.h

    r143051 r143402  
    4444
    4545    const String& charset() const { return m_charset; }
    46     void setCharset(const String& charset) { m_charset = charset; }
     46    void setCharset(const String& charset) { m_charset = charset.isolatedCopy(); }
    4747    void setCrossOriginModeAllowsCookies(bool allowsCookies) { m_crossOriginModeAllowsCookies = allowsCookies; }
    4848    CachedResource::Type resourceType() const { return m_resourceType; }
Note: See TracChangeset for help on using the changeset viewer.