Closed
Bug 1020578
Opened 11 years ago
Closed 4 years ago
Ticking "Prevent this page from creating additional dialogs" causes code to break
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: steigemannp, Unassigned)
Details
(Whiteboard: DUPEME)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140506152807
Steps to reproduce:
Happening on every web form.
When validating user input I like to use alerts to inform users of incorrect input.
On submit, when a required field is empty or an email address is in a wrong format, an error class gets applied to the input field, an alert appears and "return false" gets executed to prevent the triggering of server side code (OnClick event).
All working fine until "Prevent this page from creating additional dialogs" is ticked.
Here's a test form (click Search without specifying any search parameters):
http://www.pukeariki.com/Research/Taranaki-Research-Centre/Passenger-List
Actual results:
When "Prevent this page from creating additional dialogs" is ticked no alert occurs anymore (what is fine) but also the "return false" statement doesn't get executed anymore and server-side code gets triggered.
Expected results:
I would expect the same behavior as in Chrome (35): "Prevent this page from creating additional dialogs" stops the alert from appearing but "return false" still gets executed and no server-side code gets triggered.
Comment 1•11 years ago
|
||
Once the user selects that option, alert() starts throwing.
Whiteboard: DUPEME
| Reporter | ||
Comment 2•11 years ago
|
||
Hi Boris,
don't understand your reply.
Can you be more specific?
Any other comments?
Peter
Comment 3•11 years ago
|
||
You can try/catch around the alert if you want to keep going even if the alert is blocked.
Updated•4 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•