Changeset 216132 in webkit


Ignore:
Timestamp:
May 3, 2017 12:27:06 PM (7 years ago)
Author:
beidson@apple.com
Message:

Handle KVO updating of the "hasOnlySecureContent" before a page results in an HTTP auth challenge.
https://bugs.webkit.org/show_bug.cgi?id=171607

Reviewed by Andy Estes.

To test this fix we'd need the combination of an HTTPD inside API tests, so no test for now.

  • UIProcess/PageLoadState.cpp:

(WebKit::PageLoadState::hasOnlySecureContent): If the state is provisional, check the provisional URL instead.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r216129 r216132  
     12017-05-03  Brady Eidson  <beidson@apple.com>
     2
     3        Handle KVO updating of the "hasOnlySecureContent" before a page results in an HTTP auth challenge.
     4        https://bugs.webkit.org/show_bug.cgi?id=171607
     5
     6        Reviewed by Andy Estes.
     7       
     8        To test this fix we'd need the combination of an HTTPD inside API tests, so no test for now.
     9
     10        * UIProcess/PageLoadState.cpp:
     11        (WebKit::PageLoadState::hasOnlySecureContent): If the state is provisional, check the provisional URL instead.
     12
    1132017-05-03  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/PageLoadState.cpp

    r207706 r216132  
    206206        return false;
    207207
     208    if (data.state == State::Provisional)
     209        return WebCore::protocolIs(data.provisionalURL, "https");
     210
    208211    return WebCore::protocolIs(data.url, "https");
    209212}
Note: See TracChangeset for help on using the changeset viewer.