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 am using PDF.js and I have come across the debugger.js file, which is used for debugging purposes. I have a few questions regarding its functionality and compatibility with Content Security Policy (CSP).
Functionality of debugger.js:
Could you please provide a detailed explanation of the debugger.js file used in PDF.js?
Usage in viewer.js:
I noticed that in viewer.js, the debuggerScriptPath is set as ./debugger.js. Could you explain how this path is used within the application and the significance of this configuration?
How does the loadAndEnablePDFBug function utilize this path to dynamically load and initialize the debugger tools?
Compatibility with Content Security Policy (CSP):
Is debugger.js compatible with CSP? Specifically, does loading the script dynamically using document.createElement('script') and appending it to the document cause any CSP violations?
Are there any recommended configurations or modifications to ensure that debugger.js can be used without issues in an environment with strict CSP settings?
Additional Information:
PDF.js Version: 1.6.366
I would greatly appreciate any insights or documentation you could provide regarding these questions.
This discussion was converted from issue #18459 on July 19, 2024 10:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using PDF.js and I have come across the debugger.js file, which is used for debugging purposes. I have a few questions regarding its functionality and compatibility with Content Security Policy (CSP).
Functionality of debugger.js:
Could you please provide a detailed explanation of the debugger.js file used in PDF.js?
Usage in viewer.js:
I noticed that in viewer.js, the debuggerScriptPath is set as ./debugger.js. Could you explain how this path is used within the application and the significance of this configuration?
How does the loadAndEnablePDFBug function utilize this path to dynamically load and initialize the debugger tools?
Compatibility with Content Security Policy (CSP):
Is debugger.js compatible with CSP? Specifically, does loading the script dynamically using document.createElement('script') and appending it to the document cause any CSP violations?
Are there any recommended configurations or modifications to ensure that debugger.js can be used without issues in an environment with strict CSP settings?
Additional Information:
PDF.js Version: 1.6.366
I would greatly appreciate any insights or documentation you could provide regarding these questions.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions