We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The PDF content should be displayed.
Only the gray screen is displayed.
Load any PDF file using browserWindowInstance.loadURL / browserWindowInstance.loadFile methods.
browserWindowInstance.loadURL / browserWindowInstance.loadFile
Main process code sample if needed:
const {app, BrowserWindow} = require("electron"); app.whenReady().then(() => { app.on("web-contents-created", (...[, webContents]) => { webContents.on("did-fail-load", (...[, errorCode, errorDescription, validatedURL, isMainFrame]) => { console.log({errorCode, errorDescription, validatedURL, isMainFrame}); }); }); // loading via "loadURL" call also affected new BrowserWindow().loadFile("path-to-pdf-file.pdf"); });
Possibly similar to #22286. CC @nornagon.
The text was updated successfully, but these errors were encountered:
The did-fail-load event setup this way:
did-fail-load
app.on("web-contents-created", (...[, webContents]) => { webContents.on("did-fail-load", (...[/* event */, errorCode, errorDescription, validatedURL, isMainFrame]) => { console.log({errorCode, errorDescription, validatedURL, isMainFrame}); }); });
Gets triggered with the following data:
{ errorCode: -6, errorDescription: 'ERR_FILE_NOT_FOUND', validatedURL: 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/index.html', isMainFrame: true }
Sorry, something went wrong.
@vladimiry that should be #27499 - i'll see that it gets back to v12.x
v12.x
bisected to v12.0.0-nightly.20201026...v12.0.0-nightly.20201030, probably bf89237 is the cause.
ah @codebytere already fixed this. Can we close this out now?
codebytere
No branches or pull requests
Expected Behavior
The PDF content should be displayed.
Actual Behavior
Only the gray screen is displayed.
To Reproduce
Load any PDF file using
browserWindowInstance.loadURL / browserWindowInstance.loadFile
methods.Main process code sample if needed:
Additional Information
Possibly similar to #22286. CC @nornagon.
The text was updated successfully, but these errors were encountered: