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

Changeset 100181 in webkit


Ignore:
Timestamp:
Nov 14, 2011, 12:56:15 PM (15 years ago)
Author:
abarth@webkit.org
Message:

SecurityContext::isSecureTransitionTo should not refer to empty security origins
https://bugs.webkit.org/show_bug.cgi?id=72277

Reviewed by Eric Seidel.

Now that we're tracking the "failed to initialized SecurityOrigin"
state explicitly, we should use that to determine whether we can make a
secure transition.

  • dom/SecurityContext.cpp:

(WebCore::SecurityContext::isSecureTransitionTo):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r100180 r100181  
     12011-11-14  Adam Barth  <abarth@webkit.org>
     2
     3        SecurityContext::isSecureTransitionTo should not refer to empty security origins
     4        https://bugs.webkit.org/show_bug.cgi?id=72277
     5
     6        Reviewed by Eric Seidel.
     7
     8        Now that we're tracking the "failed to initialized SecurityOrigin"
     9        state explicitly, we should use that to determine whether we can make a
     10        secure transition.
     11
     12        * dom/SecurityContext.cpp:
     13        (WebCore::SecurityContext::isSecureTransitionTo):
     14
    1152011-11-14  Vincent Scheib  <scheib@chromium.org>
    216
  • trunk/Source/WebCore/dom/SecurityContext.cpp

    r100117 r100181  
    5757bool SecurityContext::isSecureTransitionTo(const KURL& url) const
    5858{
    59     // This origin represents a new window created by the application.
    60     if (securityOrigin()->isEmpty())
     59    // If we haven't initialized our security origin by now, this is probably
     60    // a new window created via the API (i.e., that lacks an origin and lacks
     61    // a place to inherit the origin from).
     62    if (!haveInitializedSecurityOrigin())
    6163        return true;
    6264
Note: See TracChangeset for help on using the changeset viewer.