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

Changeset 243935 in webkit


Ignore:
Timestamp:
Apr 5, 2019, 9:30:34 AM (7 years ago)
Author:
sihui_liu@apple.com
Message:

Test sessionStorage in PSON private browsing mode
https://bugs.webkit.org/show_bug.cgi?id=196561

Reviewed by Alex Christensen.

  • TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r243934 r243935  
     12019-04-05  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Test sessionStorage in PSON private browsing mode
     4        https://bugs.webkit.org/show_bug.cgi?id=196561
     5
     6        Reviewed by Alex Christensen.
     7
     8        * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
     9
    1102019-04-05  Commit Queue  <commit-queue@webkit.org>
    211
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm

    r243240 r243935  
    47064706}
    47074707
    4708 TEST(ProcessSwap, EphemeralLocalStorage)
     4708TEST(ProcessSwap, EphemeralWebStorage)
    47094709{
    47104710    auto processPoolConfiguration = psonProcessPoolConfiguration();
     
    47274727    done = false;
    47284728    [webView evaluateJavaScript:@"window.localStorage.setItem('a','b')" completionHandler:^(id, NSError *) {
     4729        done = true;
     4730    }];
     4731    TestWebKitAPI::Util::run(&done);
     4732
     4733    done = false;
     4734    [webView evaluateJavaScript:@"window.sessionStorage.setItem('b,'a')" completionHandler:^(id, NSError *) {
    47294735        done = true;
    47304736    }];
     
    47534759    [webView evaluateJavaScript:@"window.localStorage.getItem('a')" completionHandler:^(id result, NSError *) {
    47544760        EXPECT_FALSE([@"b" isEqualToString:result]);
     4761        done = true;
     4762    }];
     4763    TestWebKitAPI::Util::run(&done);
     4764
     4765    done = false;
     4766    [webView evaluateJavaScript:@"window.sessionStorage.getItem('b')" completionHandler:^(id result, NSError *) {
     4767        EXPECT_FALSE([@"a" isEqualToString:result]);
    47554768        done = true;
    47564769    }];
Note: See TracChangeset for help on using the changeset viewer.