When a custom scheme is handled with protocol.handle, it is treated as a network request. This behavior prevents the resolution of relative paths within the loaded file, which is crucial for handling ...