Skip to content

Commit cda4f1f

Browse files
Warchamp7RytoEX
authored andcommitted
Revert custom scheme handler protocol
1 parent b59127a commit cda4f1f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

browser-app.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ CefRefPtr<CefBrowserProcessHandler> BrowserApp::GetBrowserProcessHandler()
5050

5151
void BrowserApp::OnRegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar)
5252
{
53-
registrar->AddCustomScheme("obsbrowser", CEF_SCHEME_OPTION_STANDARD | CEF_SCHEME_OPTION_CORS_ENABLED |
54-
CEF_SCHEME_OPTION_FETCH_ENABLED);
53+
registrar->AddCustomScheme("http", CEF_SCHEME_OPTION_STANDARD | CEF_SCHEME_OPTION_CORS_ENABLED);
5554
}
5655

5756
void BrowserApp::OnBeforeChildProcessLaunch(CefRefPtr<CefCommandLine> command_line)

obs-browser-plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static void BrowserInit(void)
389389
}
390390

391391
// Register custom scheme handler for local browser sources
392-
CefRegisterSchemeHandlerFactory("obsbrowser", "file", new BrowserSchemeHandlerFactory());
392+
CefRegisterSchemeHandlerFactory("http", "absolute", new BrowserSchemeHandlerFactory());
393393

394394
os_event_signal(cef_started_event);
395395
}

obs-browser-source.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ void BrowserSource::Update(obs_data_t *settings)
499499
n_url.replace(n_url.find("%2F"), 3, "/");
500500

501501
// Local files are routed through our custom scheme handler to give them acess to other local files
502-
n_url = "obsbrowser://file/" + n_url;
502+
n_url = "http://absolute/" + n_url;
503503
}
504504

505505
if (n_is_local == is_local && n_fps_custom == fps_custom && n_fps == fps &&

0 commit comments

Comments
 (0)