[webkit-changes] [WebKit/WebKit] 247db0: WebKitTestRunner's hasDocumentElement should retur...

Alex Christensen noreply at github.com
Sat Jan 13 06:21:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 247db08898115cc11312a887f248e5a96d64dc7a
      https://github.com/WebKit/WebKit/commit/247db08898115cc11312a887f248e5a96d64dc7a
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2024-01-13 (Sat, 13 Jan 2024)

  Changed paths:
    M LayoutTests/platform/mac-site-isolation/TestExpectations
    M Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp

  Log Message:
  -----------
  WebKitTestRunner's hasDocumentElement should return false if there is no JS context
https://bugs.webkit.org/show_bug.cgi?id=267483
rdar://120933913

Reviewed by Charlie Wolfe.

A RemoteFrame has no JS context because the JS context is in another process.
This little change fixes a crash in layout tests with --site-isolation

* LayoutTests/platform/mac-site-isolation/TestExpectations:
* Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::hasDocumentElement):

Canonical link: https://commits.webkit.org/273009@main




More information about the webkit-changes mailing list