Changeset 47807 in webkit


Ignore:
Timestamp:
Aug 26, 2009 10:21:29 PM (15 years ago)
Author:
abarth@webkit.org
Message:

2009-08-26 Adam Barth <abarth@webkit.org>

Reviewed by Oliver Hunt.

Don't let local files access web URLs
https://bugs.webkit.org/show_bug.cgi?id=28480

  • Api/qwebsettings.cpp: (QWebSettings::QWebSettings):

2009-08-26 Adam Barth <abarth@webkit.org>

Reviewed by Oliver Hunt.

Don't let local files access web URLs
https://bugs.webkit.org/show_bug.cgi?id=28480

  • WebPreferences.cpp: (WebPreferences::initializeDefaultSettings):

2009-08-26 Adam Barth <abarth@webkit.org>

Reviewed by Oliver Hunt.

Don't let local files access web URLs
https://bugs.webkit.org/show_bug.cgi?id=28480

A bunch of our LayoutTests rely on our old behavior, so we explicitly
grant local files universal access during testing. Mainly, these tests
involve making XMLHttpRequests for data URLs.

  • DumpRenderTree/mac/DumpRenderTree.mm: (resetDefaultsToConsistentValues):
  • DumpRenderTree/qt/DumpRenderTree.cpp: (WebCore::WebPage::WebPage):
  • DumpRenderTree/win/DumpRenderTree.cpp: (resetDefaultsToConsistentValues):
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebsettings.cpp

    r47685 r47807  
    362362    d->attributes.insert(QWebSettings::OfflineWebApplicationCacheEnabled, true);
    363363    d->attributes.insert(QWebSettings::LocalStorageEnabled, false);
    364     d->attributes.insert(QWebSettings::LocalContentCanAccessRemoteUrls, true);
     364    d->attributes.insert(QWebSettings::LocalContentCanAccessRemoteUrls, false);
    365365    d->offlineStorageDefaultQuota = 5 * 1024 * 1024;
    366366}
  • trunk/WebKit/qt/ChangeLog

    r47746 r47807  
     12009-08-26  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Don't let local files access web URLs
     6        https://bugs.webkit.org/show_bug.cgi?id=28480
     7
     8        * Api/qwebsettings.cpp:
     9        (QWebSettings::QWebSettings):
     10
    1112009-08-25  Antonio Gomes   <antonio.gomes@openbossa.org>
    212
  • trunk/WebKit/win/ChangeLog

    r47797 r47807  
     12009-08-26  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Don't let local files access web URLs
     6        https://bugs.webkit.org/show_bug.cgi?id=28480
     7
     8        * WebPreferences.cpp:
     9        (WebPreferences::initializeDefaultSettings):
     10
    1112009-08-26  David Levin  <levin@chromium.org>
    212
  • trunk/WebKit/win/WebPreferences.cpp

    r47685 r47807  
    205205    CFDictionaryAddValue(defaults, CFSTR(WebKitJavaScriptEnabledPreferenceKey), kCFBooleanTrue);
    206206    CFDictionaryAddValue(defaults, CFSTR(WebKitWebSecurityEnabledPreferenceKey), kCFBooleanTrue);
    207     CFDictionaryAddValue(defaults, CFSTR(WebKitAllowUniversalAccessFromFileURLsPreferenceKey), kCFBooleanTrue);
     207    CFDictionaryAddValue(defaults, CFSTR(WebKitAllowUniversalAccessFromFileURLsPreferenceKey), kCFBooleanFalse);
    208208    CFDictionaryAddValue(defaults, CFSTR(WebKitXSSAuditorEnabledPreferenceKey), kCFBooleanTrue);
    209209    CFDictionaryAddValue(defaults, CFSTR(WebKitJavaScriptCanOpenWindowsAutomaticallyPreferenceKey), kCFBooleanTrue);
  • trunk/WebKitTools/ChangeLog

    r47793 r47807  
     12009-08-26  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Don't let local files access web URLs
     6        https://bugs.webkit.org/show_bug.cgi?id=28480
     7
     8        A bunch of our LayoutTests rely on our old behavior, so we explicitly
     9        grant local files universal access during testing.  Mainly, these tests
     10        involve making XMLHttpRequests for data URLs.
     11
     12        * DumpRenderTree/mac/DumpRenderTree.mm:
     13        (resetDefaultsToConsistentValues):
     14        * DumpRenderTree/qt/DumpRenderTree.cpp:
     15        (WebCore::WebPage::WebPage):
     16        * DumpRenderTree/win/DumpRenderTree.cpp:
     17        (resetDefaultsToConsistentValues):
     18
    1192009-08-26  John Gregg  <johnnyg@google.com>
    220
  • trunk/WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm

    r47792 r47807  
    389389    WebPreferences *preferences = [WebPreferences standardPreferences];
    390390
     391    [preferences setAllowUniversalAccessFromFileURLs:YES];
    391392    [preferences setStandardFontFamily:@"Times"];
    392393    [preferences setFixedFontFamily:@"Courier"];
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp

    r47685 r47807  
    111111    settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    112112    settings()->setAttribute(QWebSettings::LocalStorageEnabled, true);
     113    settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, true);
     114
    113115    connect(this, SIGNAL(geometryChangeRequested(const QRect &)),
    114116            this, SLOT(setViewGeometry(const QRect & )));
  • trunk/WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp

    r47792 r47807  
    733733    COMPtr<IWebPreferencesPrivate> prefsPrivate(Query, preferences);
    734734    if (prefsPrivate) {
     735        prefsPrivate->setAllowUniversalAccessFromFileURLs(TRUE);
    735736        prefsPrivate->setAuthorAndUserStylesEnabled(TRUE);
    736737        prefsPrivate->setDeveloperExtrasEnabled(FALSE);
Note: See TracChangeset for help on using the changeset viewer.