SPB Git

Repository Public License

WebRuntime.swift 1.1 KB 22 lines swift

1// WebRuntime — the WKWebView layer of ORIX Navigator.2//3// Imports only NavigatorCore and Diagnostics (plus WebKit and the platform UI frameworks). Everything it needs4// from storage or from the UI arrives through protocols:5//   • NavigatorCore: `PermissionProvider`, `HistoryRecorder`, `DownloadSink` (implemented by storage modules);6//   • this module:   `WebEngineNavigationDelegate`, `WebEngineUIDelegate`, `WebEngineContextMenuDelegate`7//                    (implemented by the UI), `InternalContentProvider` (implemented by the app).8//9// Entry points: `WebProfileRegistry` → `ProfileContext` → `WebEngine` (one per tab) → `WebEngineView` (SwiftUI).10// Public WebKit API only; what WKWebView cannot do is listed in docs/WEBKIT_LIMITATIONS.md.1112import Foundation1314enum WebRuntimeConstants {15    /// Name of the message handler reachable from the browser's isolated content worlds only.16    static let bridgeHandlerName = "orixBridge"17    /// Name of the unprivileged, write-only console mirror handler (page world, opt-in).18    static let consoleHandlerName = "orixConsole"19    /// Scheme of internal pages.20    static let internalScheme = "orix"21}22
Files main
Menu

Theme