Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/slic3r/GUI/ConfigWizardWebViewPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,18 @@ case type: \
}

BOOST_LOG_TRIVIAL(error) << "ConfigWizardWebViewPage error: " << category;
load_error_page();

// Don't treat wxWEBVIEW_NAV_ERR_OTHER as fatal - it often occurs for subresources
// or cancelled requests while the main page continues loading successfully.
// Only show error page for serious errors like connection or certificate failures.
int err = evt.GetInt();
if (err == wxWEBVIEW_NAV_ERR_CONNECTION ||
err == wxWEBVIEW_NAV_ERR_CERTIFICATE ||
err == wxWEBVIEW_NAV_ERR_AUTH ||
err == wxWEBVIEW_NAV_ERR_SECURITY) {
load_error_page();
}
// For wxWEBVIEW_NAV_ERR_OTHER, wxWEBVIEW_NAV_ERR_REQUEST, etc. - just log and continue
}

void ConfigWizardWebViewPage::load_error_page() {
Expand Down
13 changes: 12 additions & 1 deletion src/slic3r/GUI/WebViewDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,18 @@ case type: \
}

BOOST_LOG_TRIVIAL(error) << "WebViewDialog error: " << category;
load_error_page();

// Don't treat wxWEBVIEW_NAV_ERR_OTHER as fatal - it often occurs for cancelled
// subresource requests while the main page continues loading successfully.
// Only show error page for serious errors like connection or certificate failures.
int err = evt.GetInt();
if (err == wxWEBVIEW_NAV_ERR_CONNECTION ||
err == wxWEBVIEW_NAV_ERR_CERTIFICATE ||
err == wxWEBVIEW_NAV_ERR_AUTH ||
err == wxWEBVIEW_NAV_ERR_SECURITY) {
load_error_page();
}
// For wxWEBVIEW_NAV_ERR_OTHER, wxWEBVIEW_NAV_ERR_REQUEST, etc. - just log and continue
}

void WebViewDialog::load_error_page()
Expand Down