Skip to content

Commit f8084b8

Browse files
committed
[Edge] Add link to Edge FAQ with information on installing runtime eclipse-platform#2000
When the OS lacks a WebView2 runtime installation, an error is shown once a browser is initialized since Edge is used as the default browser on Windows. This change adds a link to the according FAQ page with information on how to install such a runtime to the error message. Resolves eclipse-platform#2000
1 parent 111b874 commit f8084b8

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ WebViewEnvironment createEnvironment() {
599599
pBrowserDir, pDataDir, options.getAddress(), completion.getAddress()));
600600
options.Release();
601601
if (hr == OS.HRESULT_FROM_WIN32(OS.ERROR_FILE_NOT_FOUND)) {
602-
SWT.error(SWT.ERROR_NOT_IMPLEMENTED, null, " [WebView2 runtime not found]");
602+
SWT.error(SWT.ERROR_NOT_IMPLEMENTED, null, " [WebView2 runtime not found. For details, see https://github.com/eclipse-platform/eclipse.platform/blob/master/docs/FAQ/FAQ_How_do_I_use_Edge-IE_as_the_Browser's_underlying_renderer.md]");
603603
}
604604
if (hr != COM.S_OK) error(SWT.ERROR_NO_HANDLES, hr);
605605
ICoreWebView2Environment environment = new ICoreWebView2Environment(ppv[0]);

0 commit comments

Comments
 (0)