Changeset 83953 in webkit


Ignore:
Timestamp:
Apr 15, 2011 12:37:11 AM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-04-15 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Add support for CSP's 'self' source
https://bugs.webkit.org/show_bug.cgi?id=58604

  • http/tests/security/contentSecurityPolicy/script-src-self-expected.txt: Added.
  • http/tests/security/contentSecurityPolicy/script-src-self.html: Added.

2011-04-15 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Add support for CSP's 'self' source
https://bugs.webkit.org/show_bug.cgi?id=58604

This change is now trivially easy.

Test: http/tests/security/contentSecurityPolicy/script-src-self.html

  • page/ContentSecurityPolicy.cpp: (WebCore::CSPSourceList::addSourceSelf):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83949 r83953  
     12011-04-15  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Add support for CSP's 'self' source
     6        https://bugs.webkit.org/show_bug.cgi?id=58604
     7
     8        * http/tests/security/contentSecurityPolicy/script-src-self-expected.txt: Added.
     9        * http/tests/security/contentSecurityPolicy/script-src-self.html: Added.
     10
    1112011-04-14  Justin Novosad  <junov@chromium.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r83952 r83953  
     12011-04-15  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Add support for CSP's 'self' source
     6        https://bugs.webkit.org/show_bug.cgi?id=58604
     7
     8        This change is now trivially easy.
     9
     10        Test: http/tests/security/contentSecurityPolicy/script-src-self.html
     11
     12        * page/ContentSecurityPolicy.cpp:
     13        (WebCore::CSPSourceList::addSourceSelf):
     14
    1152011-04-15  Anna Cavender  <annacc@chromium.org>
    216
  • trunk/Source/WebCore/page/ContentSecurityPolicy.cpp

    r83235 r83953  
    391391void CSPSourceList::addSourceSelf()
    392392{
    393     // FIXME: Inherit the scheme, host, and port from the current URL.
    394     notImplemented();
     393    m_list.append(CSPSource(m_origin->protocol(), m_origin->host(), m_origin->port(), false, false));
    395394}
    396395
Note: See TracChangeset for help on using the changeset viewer.