Changeset 17939 in webkit


Ignore:
Timestamp:
Nov 30, 2006 9:37:47 AM (17 years ago)
Author:
thatcher
Message:

Reviewed by Brady and Eric.

XMLHttpRequest fails in a page loaded with WebFrame's loadHTMLString: or loadData:
http://bugs.webkit.org/show_bug.cgi?id=11723

Allow cross-domain XMLHTTPRequest for applewebdata URLs. No automated way to test,
tested in Safari's debug Snippet Editor.

  • xml/xmlhttprequest.cpp: (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r17937 r17939  
     12006-11-30  Timothy Hatcher  <timothy@apple.com>
     2
     3        Reviewed by Brady and Eric.
     4
     5        XMLHttpRequest fails in a page loaded with WebFrame's loadHTMLString: or loadData:
     6        http://bugs.webkit.org/show_bug.cgi?id=11723
     7
     8        Allow cross-domain XMLHTTPRequest for applewebdata URLs. No automated way to test,
     9        tested in Safari's debug Snippet Editor.
     10
     11        * xml/xmlhttprequest.cpp:
     12        (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
     13
    1142006-11-29  Anders Carlsson  <acarlsson@apple.com>
    215
  • trunk/WebCore/xml/xmlhttprequest.cpp

    r17860 r17939  
    232232
    233233    // a local file can load anything
    234     if (documentURL.protocol().lower() == "file")
     234    if (documentURL.protocol().lower() == "file" || documentURL.protocol().lower() == "applewebdata")
    235235        return true;
    236236
Note: See TracChangeset for help on using the changeset viewer.