Closed Bug 1368149 Opened 9 years ago Closed 9 years ago

window confirm always returns false

Categories

(Core :: DOM: Core & HTML, defect)

53 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: penanders.it, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 Build ID: 20170518000419 Steps to reproduce: From some versions in Firefox on Windows if i test the window confirm, it always returns false regardless of pressing Ok or Cancel. Actual results: This code <!DOCTYPE html> <html> <body> <p>Click the button to display a confirm box.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { if (!confirm("Press a button!")) { alert('Cancel'); } } </script> </body> </html> Always returns false Expected results: Pressing OK in the confirmation should return true and pressing Cancel should return false
Component: Untriaged → DOM
Product: Firefox → Core
I cannot reproduce this issue either with Released version (FF53) or Night 55 on Win10. When I pressed OK, NO alert dialog popped out.
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1) > I cannot reproduce this issue either with Released version (FF53) or Night > 55 on Win10. When I pressed OK, NO alert dialog popped out. Hi Penanders, would you mind testing it again, or offering more information to help us reproduce your problem? Thank you very much.
Flags: needinfo?(penanders.it)
Hi After your answer I've tested again the code disabling / enabling all the extensions that I've installed. The issue came from this extension https://addons.mozilla.org/it/firefox/addon/enable-rightclick-and-copy/?src=api Removing the extension solve the problem. It's fine now Many thanks
Flags: needinfo?(penanders.it)
Thanks Penanders for verifying this. :)
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.