[webkit-changes] [WebKit/WebKit] 2f1b5d: isolated iframe processes should have origin name ...

Alex Christensen noreply at github.com
Fri Jan 5 09:23:50 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2f1b5d78d0147fc3e06792e2aafeda938b8557f3
      https://github.com/WebKit/WebKit/commit/2f1b5d78d0147fc3e06792e2aafeda938b8557f3
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2024-01-05 (Fri, 05 Jan 2024)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.h
    M Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm

  Log Message:
  -----------
  isolated iframe processes should have origin name in Activity Monitor
https://bugs.webkit.org/show_bug.cgi?id=267103
rdar://117915745

Reviewed by Pascoe.

No change in behavior without site isolation enabled.
To get the process origin, I just go to the first root frame instead of the main frame.

* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::rootFrameOriginString):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::origin):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm:
(TestWebKitAPI::TEST):

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




More information about the webkit-changes mailing list