Skip to content

Commit

Permalink
Add debugging for Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
fedejeanne committed Feb 3, 2025
1 parent a88e6fb commit a0f1595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class WebViewWrapper {
class WebViewProvider {

private CompletableFuture<WebViewWrapper> webViewWrapperFuture = wakeDisplayAfterFuture(new CompletableFuture<>());
private CompletableFuture<Void> lastWebViewTask = webViewWrapperFuture.thenRun(() -> {});;
private final CompletableFuture<Void> lastWebViewTask = webViewWrapperFuture.thenRun(() -> {});;

ICoreWebView2 initializeWebView(ICoreWebView2Controller controller) {
long[] ppv = new long[1];
Expand Down Expand Up @@ -603,6 +603,7 @@ private IUnknown createControllerInitializationCallback(int previousAttempts) {
initializationRollback.run();
};
return newCallback((resultAsLong, pv) -> {
System.out.println(System.currentTimeMillis() + "- Edge.createControllerInitializationCallback()");
int result = (int) resultAsLong;
if (browser.isDisposed()) {
initializationAbortion.run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public ICoreWebView2Environment(long address) {
}

public int CreateCoreWebView2Controller(long parentWindow, IUnknown handler) {
System.out.println(System.currentTimeMillis() + " - ICoreWebView2Environment.CreateCoreWebView2Controller()");
return COM.VtblCall(3, address, parentWindow, handler.address);
}

Expand Down

0 comments on commit a0f1595

Please sign in to comment.