⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 144036 in webkit


Ignore:
Timestamp:
Feb 26, 2013, 3:41:23 AM (14 years ago)
Author:
mkwst@chromium.org
Message:

XSSAuditor: Don't rely on implicit casting when copying the document's KURL to String.
https://bugs.webkit.org/show_bug.cgi?id=110859

Reviewed by Jochen Eisinger.

XSSAuditor::init should explicitly make a thread-safe copy of the
document's URL as a String rather than relying on implicit casting from
a copy of the KURL.

This shouldn't change any visible behavior; all existing XSSAuditor
tests should continue to pass. They'll now just be a bit more smug while
doing so.

  • html/parser/XSSAuditor.cpp:

(WebCore::XSSAuditor::init):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r144031 r144036  
     12013-02-26  Mike West  <mkwst@chromium.org>
     2
     3        XSSAuditor: Don't rely on implicit casting when copying the document's KURL to String.
     4        https://bugs.webkit.org/show_bug.cgi?id=110859
     5
     6        Reviewed by Jochen Eisinger.
     7
     8        XSSAuditor::init should explicitly make a thread-safe copy of the
     9        document's URL as a String rather than relying on implicit casting from
     10        a copy of the KURL.
     11
     12        This shouldn't change any visible behavior; all existing XSSAuditor
     13        tests should continue to pass. They'll now just be a bit more smug while
     14        doing so.
     15
     16        * html/parser/XSSAuditor.cpp:
     17        (WebCore::XSSAuditor::init):
     18
    1192013-02-26  Takashi Sakamoto  <tasak@google.com>
    220
  • trunk/Source/WebCore/html/parser/XSSAuditor.cpp

    r143880 r144036  
    286286    if (!m_reportURL.isEmpty()) {
    287287        // May need these for reporting later on.
    288         m_originalURL = m_documentURL.copy();
     288        m_originalURL = m_documentURL.string().isolatedCopy();
    289289        m_originalHTTPBody = httpBodyAsString;
    290290    }
Note: See TracChangeset for help on using the changeset viewer.