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

Changeset 285163 in webkit


Ignore:
Timestamp:
Nov 2, 2021, 9:37:09 AM (5 years ago)
Author:
Kate Cheney
Message:

​https://bugs.webkit.org/show_bug.cgi?id=232593
Remove isAppInitiated from _WKSessionState

Reviewed by Brent Fulgham.

Source/WebKit:

After ​https://bugs.webkit.org/show_bug.cgi?id=232486 we no longer need
the isAppInitiated value on _WKSessionState. It will be set
automatically when session state is retrieved.

No new tests. Confirmed by existing RestoreFromSessionState* API
tests.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _restoreSessionState:andNavigate:]):

  • UIProcess/API/Cocoa/_WKSessionState.h:
  • UIProcess/API/Cocoa/_WKSessionState.mm:

(-[_WKSessionState _sessionStateWithAppInitiatedValue]): Deleted.

  • UIProcess/API/Cocoa/_WKSessionStateInternal.h:

Tools:

  • TestWebKitAPI/Tests/WebKitCocoa/AppPrivacyReport.mm:
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r285159 r285163  
     12021-11-02  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=232593
     4        Remove isAppInitiated from _WKSessionState
     5
     6        Reviewed by Brent Fulgham.
     7
     8        After https://bugs.webkit.org/show_bug.cgi?id=232486 we no longer need
     9        the isAppInitiated value on _WKSessionState. It will be set
     10        automatically when session state is retrieved.
     11
     12        No new tests. Confirmed by existing RestoreFromSessionState* API
     13        tests.
     14
     15        * UIProcess/API/Cocoa/WKWebView.mm:
     16        (-[WKWebView _restoreSessionState:andNavigate:]):
     17        * UIProcess/API/Cocoa/_WKSessionState.h:
     18        * UIProcess/API/Cocoa/_WKSessionState.mm:
     19        (-[_WKSessionState _sessionStateWithAppInitiatedValue]): Deleted.
     20        * UIProcess/API/Cocoa/_WKSessionStateInternal.h:
     21
    1222021-11-02  Chris Dumez  <cdumez@apple.com>
    223
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm

    r285086 r285163  
    26472647{
    26482648    THROW_IF_SUSPENDED;
    2649     return wrapper(_page->restoreFromSessionState(sessionState ? sessionState._sessionStateWithAppInitiatedValue : WebKit::SessionState { }, navigate));
     2649    return wrapper(_page->restoreFromSessionState(sessionState ? sessionState->_sessionState : WebKit::SessionState { }, navigate));
    26502650}
    26512651
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKSessionState.h

    r281817 r285163  
    3434
    3535@property (nonatomic, readonly, copy) NSData *data;
    36 @property (nonatomic) BOOL isAppInitiated;
    3736
    3837@end
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKSessionState.mm

    r281817 r285163  
    5959}
    6060
    61 - (WebKit::SessionState)_sessionStateWithAppInitiatedValue
    62 {
    63     _sessionState.isAppInitiated = _isAppInitiated;
    64     return _sessionState;
    65 }
    66 
    6761@end
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKSessionStateInternal.h

    r281817 r285163  
    3333}
    3434
    35 - (WebKit::SessionState)_sessionStateWithAppInitiatedValue;
    3635- (instancetype)_initWithSessionState:(WebKit::SessionState)sessionState;
    3736
  • trunk/Tools/ChangeLog

    r285158 r285163  
     12021-11-02  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=232593
     4        Remove isAppInitiated from _WKSessionState
     5
     6        Reviewed by Brent Fulgham.
     7
     8        * TestWebKitAPI/Tests/WebKitCocoa/AppPrivacyReport.mm:
     9
    1102021-11-02  Jonathan Bedard  <jbedard@apple.com>
    211
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/AppPrivacyReport.mm

    r285080 r285163  
    747747
    748748    RetainPtr<_WKSessionState> sessionState = [webView1 _sessionState];
    749     sessionState.get().isAppInitiated = isAppInitiated == IsAppInitiated::Yes ? true : false;
    750749    [webView1 _close];
    751750
Note: See TracChangeset for help on using the changeset viewer.