~sircmpwn/pages.sr.ht#21: 
prompt() does nothing on hosted sites

Typing prompt() in browser console returns null immediately. it doesn't work in scripts either.

It doesn't work in either Librewolf or Palemoon, and no errors either.

To reproduce:

  1. Go to https://srht.site/ , https://www.1a-insec.net/ , or other sites hosted with pages.sr.ht.
  2. Type prompt() in your browser's Console.

I suspect this has something to do with CSP.

Status
RESOLVED CLOSED
Submitter
~iacore
Assigned to
No-one
Submitted
8 months ago
Updated
6 months ago
Labels
No labels applied.

~sircmpwn REPORTED CLOSED 8 months ago

Yes, this is by design.

~iacore 8 months ago

Why is allow-modals disabled by design? It is used in this quantum circuit editor to prompt for user input.

~iacore 6 months ago*

~sircmpwn I don't understand the design. allow-popups is currently enabled, which offers more possibility to display information. Functions like window.alert are used by actual applications; they are also useful during prototyping. Please reconsider.

Register here or Log in to comment, or comment via email.