You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
20.0.0-beta.3
What operating system are you using?
Windows
Operating System Version
Windows 11 version 22H2
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
The promise returned by webContents.insertCSS should resolve with the key.
Actual Behavior
When the webContents loads a Chromium-provided page (eg: view-source page(like view-source:https://google.com), xml viewer, image viewer) and I try inserting CSS to the page,
the promise returned by webContents.insertCSS keeps pending and never resolves.
Some instructions of the gist: There are two webviews on the window, and I try using insertCSS("body { background: red; }") to make the background red, but only one of them succeed.
and there is only one promise resolved, too.
The text was updated successfully, but these errors were encountered:
FlysoftBeta
changed the title
[Bug]: webContents.insertCSS doesn't work when it is in view-source page
[Bug]: webContents.insertCSS doesn't work when it is in Chromium-provided page
Jul 3, 2022
Unfortunately, without a way to reproduce this issue, we're unable to continue investigation. This issue has been closed and will not be monitored further. If you're able to provide a minimal test case that reproduces this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
Preflight Checklist
Electron Version
20.0.0-beta.3
What operating system are you using?
Windows
Operating System Version
Windows 11 version 22H2
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
The promise returned by webContents.insertCSS should resolve with the key.
Actual Behavior
When the webContents loads a Chromium-provided page (eg: view-source page(like view-source:https://google.com), xml viewer, image viewer) and I try inserting CSS to the page,
the promise returned by webContents.insertCSS keeps pending and never resolves.
Testcase Gist URL
https://gist.github.com/81b8b61d974173cb9f73c67aaa03a8fd
Additional Information
Some instructions of the gist: There are two webviews on the window, and I try using insertCSS("body { background: red; }") to make the background red, but only one of them succeed.
and there is only one promise resolved, too.
The text was updated successfully, but these errors were encountered: