Closed Bug 216324 Opened 22 years ago Closed 22 years ago

Javascript prompt default value is ignored

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

VERIFIED FIXED
Firebird0.7

People

(Reporter: ts, Assigned: bryner)

References

()

Details

(Keywords: regression)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030813 Mozilla Firebird/0.6.1+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030813 Mozilla Firebird/0.6.1+ A javascript looking like this: var my_link = prompt("Enter URL:","http://"); Will not show the default value (http://) when the prompt is displayed. The default option is simply ignored and the user is faced with a clean&empty input box. I expect this to be regression from another bug, since this problem is recent and clearly not intended Reproducible: Always Steps to Reproduce: Check URL Actual Results: Nothing is displayed in the initial input box Expected Results: The input box should contain the specified default value
wfm with win2k build 20030815.. (Mozilla) -> Firebird for triage
Assignee: rogerl → blake
Component: JavaScript Engine → General
Product: Browser → Firebird
QA Contact: pschwartau → asa
Version: Trunk → unspecified
Confirming this bug on Windows 98 using Mozilla Firebird (20030823). Works normally in Mozilla 1.4 (20030624) and Netscape 7.1 (20030624).
I hit this bug when I use the "validate html" bookmarklet on a local file. I'm using an Aug 23 Firebird nightly.
Keywords: regression
Status: UNCONFIRMED → NEW
Ever confirmed: true
works in firebird 08/11 works in firebird 08/12 domi does not work in firebird 08/13
I suspect the "new password manager" checkin on 08/11 because of previous bugs involving prompt() and passwords (bug 147022, bug 148520, bug 184436). My 08/12 build has the new password manager without having this bug, but it's an unofficial build from http://forums.mozillazine.org/viewtopic.php?t=19698, so there could be strange differences. There was no official Windows nightly on 08/12. If this is related to password manager, it could be a security hole like two of the bugs I linked in the previous paragraph.
I can confirm this is still a problem using on Windows 2000 using this build: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030829 Firebird/0.6.1+ It's also an unofficial build from MozillaZine, however there haven't been any official builds in the past few days to try on.
Severity: major → critical
webmaster@tsn.dk: can you explain why you set the severity to critical?
The bug is something which breaks web-standards and breaks a javascript function - in Firebird alone. This is not acceptable and should be fixed soon. The bug cannot fade in with the rest, because it blocks the usage of a *very* common javascript function on all websites. The prompt() function is perfectly supported on all other common browsers: Mozilla Suite, IE etc. It would be a shame if Firebird had this bug for too long and thereby not allow the use of websites at the same level as Mozilla Suite. In other words: It needs to get fixed - It needs attention
Here's a test case if developers want one so they don't have to make their own. This is definitely a biggie in my book because so many bookmarklets use this.
Marking a bug critical isn't going to get prompt action on its own. Reverting to correct severity. Flagging for 0.7, assigning provisionally to bryner. bryner, this is apparently related to your checkins for the new password manager, can you take a look?
Assignee: blake → bryner
Severity: critical → major
QA Contact: asa → mpconnor
Target Milestone: --- → Firebird0.7
checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030908 Firebird/0.6.1+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: