Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0a0952a23ca4359a04d380456efc0a7693da44db
      
https://github.com/WebKit/WebKit/commit/0a0952a23ca4359a04d380456efc0a7693da44db
  Author: Abrar Rahman Protyasha <[email protected]>
  Date:   2025-05-31 (Sat, 31 May 2025)

  Changed paths:
    M Tools/Scripts/webkitpy/swiftbrowser/run_webkit_app.py
    A Tools/SwiftBrowser/Source/Extensions/CommandLine+Extras.swift
    M Tools/SwiftBrowser/Source/SwiftBrowser.swift
    M Tools/SwiftBrowser/SwiftBrowser.xcodeproj/project.pbxproj

  Log Message:
  -----------
  [SwiftUI] SwiftBrowser should support a URL CLI argument
https://bugs.webkit.org/show_bug.cgi?id=293826
rdar://152332512

Reviewed by Richard Robinson.

This patch imbues SwiftBrowser with the ability to process a `--url`
CLI argument instead of defaulting to webkit.org as a landing page.

* Tools/Scripts/webkitpy/swiftbrowser/run_webkit_app.py:
(main):
* Tools/SwiftBrowser/Source/Extensions/CommandLine+Extras.swift:
(CommandLine.value(for:)):
  Introduce an extension to CommandLine that allows callers to retrieve
  the `--url` argument value with `CommandLine.value(for: "--url")`.
* Tools/SwiftBrowser/Source/SwiftBrowser.swift:
(SwiftBrowserApp.addProtocolIfNecessary(to:)):
  Defaults to http if a scheme is missing, but accepts about: and data:
  URLs as-is.
(SwiftBrowserApp.body):
* Tools/SwiftBrowser/SwiftBrowser.xcodeproj/project.pbxproj:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to