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
Unable to edit page on mzh.moegirl.org.cn, blank in annotation editor with Content Security Policy errors (but open success, saved with smaller size)
#1458
Open
SineObama opened this issue
May 19, 2024
· 2 comments
Unable to edit page on mzh.moegirl.org.cn, but it may be OK on other website.
In annotation editor, it has lots of console error like: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem:". Either the 'unsafe-inline' keyword, a hash ('sha256-l242OUtjusUMGZVX2kId1Cju50oEaNyqlG4aUhIjSZQ='), or a nonce ('nonce-...') is required to enable inline execution.
I found it may be related to the settings: NOT blocking javascript, saving as self-extracting ZIP (universal).
Click context menu "Annotate and save the page..."
When annotation editor was opened, the page displays content instantly after opening, but immediately turns blank.
Save the page. I found the file size is smaller than saving directly.
The page can be opened and displays correctly.
Expected behavior
Able to edit the page content. Actually at the beginning I want to remove the message popup on the top when not blocking javascript. (But I fail hiding the element on the page before saving.)
Actually, the problem is that the scripts in the page are not supported in the annotation editor. Moreover, I was unable to save the page properly (by clicking on the SingleFile button). You have to block scripts when saving this page.
Actually, the problem is that the scripts in the page are not supported in the annotation editor. Moreover, I was unable to save the page properly (by clicking on the SingleFile button). You have to block scripts when saving this page.
but I can save the page (by clicking on the SingleFile button or after using annotation editor), it's confuseing.
Describe the bug
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem:". Either the 'unsafe-inline' keyword, a hash ('sha256-l242OUtjusUMGZVX2kId1Cju50oEaNyqlG4aUhIjSZQ='), or a nonce ('nonce-...') is required to enable inline execution.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Able to edit the page content. Actually at the beginning I want to remove the message popup on the top when not blocking javascript. (But I fail hiding the element on the page before saving.)
Screenshots
Environment
Additional context
My settings:
singlefile-settings-2024-05-19T07_03_54.660Z.json
The text was updated successfully, but these errors were encountered: