Changeset 258562 in webkit


Ignore:
Timestamp:
Mar 17, 2020 11:17:01 AM (4 years ago)
Author:
Chris Dumez
Message:

[WKTR] Crash when trying to open a new window in an ephemeral session test
https://bugs.webkit.org/show_bug.cgi?id=209181

Reviewed by Geoffrey Garen.

Tools:

Make sure that the new WKWebView is using the same data store as its related WKWebView.

  • WebKitTestRunner/cocoa/TestControllerCocoa.mm:

(WTR::TestController::platformCreateOtherPage):

LayoutTests:

Add layout test coverage.

  • fast/dom/window-open-ephemeral-expected.txt: Added.
  • fast/dom/window-open-ephemeral.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r258561 r258562  
     12020-03-17  Chris Dumez  <cdumez@apple.com>
     2
     3        [WKTR] Crash when trying to open a new window in an ephemeral session test
     4        https://bugs.webkit.org/show_bug.cgi?id=209181
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Add layout test coverage.
     9
     10        * fast/dom/window-open-ephemeral-expected.txt: Added.
     11        * fast/dom/window-open-ephemeral.html: Added.
     12
    1132020-03-16  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Tools/ChangeLog

    r258558 r258562  
     12020-03-17  Chris Dumez  <cdumez@apple.com>
     2
     3        [WKTR] Crash when trying to open a new window in an ephemeral session test
     4        https://bugs.webkit.org/show_bug.cgi?id=209181
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Make sure that the new WKWebView is using the same data store as its related WKWebView.
     9
     10        * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
     11        (WTR::TestController::platformCreateOtherPage):
     12
    1132020-03-17  Jacob Uphoff  <jacob_uphoff@apple.com>
    214
  • trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm

    r258421 r258562  
    185185    WKWebViewConfiguration *newConfiguration = [[globalWebViewConfiguration copy] autorelease];
    186186    newConfiguration._relatedWebView = static_cast<WKWebView*>(parentView->platformView());
     187    if (newConfiguration._relatedWebView)
     188        newConfiguration.websiteDataStore = newConfiguration._relatedWebView.configuration.websiteDataStore;
    187189    PlatformWebView* view = new PlatformWebView(newConfiguration, options);
    188190    finishCreatingPlatformWebView(view, options);
Note: See TracChangeset for help on using the changeset viewer.