Closed
Bug 328248
Opened 20 years ago
Closed 15 years ago
JavaScript prevents saving passwords in the Keychain
Categories
(Camino Graveyard :: OS Integration, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino2.1
People
(Reporter: shane.fenton, Assigned: alqahira)
References
()
Details
(Whiteboard: [camino-2.0.6])
Attachments
(1 file)
|
1.21 KB,
patch
|
stuart.morgan+bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: http://www.mozilla.org/projects/camino/ [Version 2006021400 (1.0)]
I've been unable to get autofill to work on howardforums.com, macosx.com/forums, and several other forums. It is specifically on forum sites.
Reproducible: Always
Steps to Reproduce:
1.Go to howardforums.com, and attempt to login and allow name/password save to keychain, then return to login.
2.Go to macosx.com/forums, and attempt to login and allow name/password save to keychain, then return to login.
3.
Actual Results:
You have to login manually
Expected Results:
Keychain/autofill fills it in
Comment 1•20 years ago
|
||
Both the links you provided are vBulletin-powered fora, which indicates to me that vBulletin is doing something that prevents our "detection" of username and password fields from working.
I'm tempted to call this tech evangelism or invalid, but I'll let some other folks take a look at it.
cl
Comment 2•20 years ago
|
||
I can't get it to save passwords at all (unless I turn off JavaScript, at which point the form-fill works fine). When the form is submitted some JavaScript is running that takes the password, md5-hashes it, sticks the result in a hidden form field, and deletes the password from the password field. By the time Camino's password-saving code has a chance to run, there is no password to save, so it gives up. There's really nothing that can be done at the browser end if the page is erasing form data.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Assignee | ||
Updated•20 years ago
|
Status: RESOLVED → VERIFIED
Comment 3•19 years ago
|
||
Firefox actually fixed this case in bug 257781, so maybe we can get hooks in earlier at the point they (I haven't looked yet to see if it's a hook embedders have access to). Reopening for investigation based on that.
Status: VERIFIED → UNCONFIRMED
Component: HTML Form Controls → OS Integration
Resolution: INVALID → ---
Greasemonkey workaround script from Mozillazine thread:
"I have identified the nasty bit of code responsible for this issue. It's in the vBulletin backwards compatibility engine, they had to leave in this automatic form reset for some reason (it just says "for backwards compatibility with old forum templates"). And although you are able to disable javascript and thereby login and save the password, I find that troublesome (going into Options and disabling it, then going back and enabling it). So instead, I decided to use Greasemonkey to inject a fix that bypasses the form clearing.
Get it from here: http://userscripts.org/scripts/show/8021
"It works seamlessly and transparently on all forums. And in case their particular url (the forum) does not have *forum* in their name, you just have to add it to the list of included sites."
Comment 5•19 years ago
|
||
Greasemonkey is a Firefox extension; this is a Camino bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 6•18 years ago
|
||
Mass-reassign of bugs still assigned to pinkerton to nobody; filter on "NoMoPinkBugsInCamino".
Assignee: mikepinkerton → nobody
QA Contact: os.integration
Comment 8•17 years ago
|
||
Worked for me:
Disable Javascript once and enter your username and password.
Thank you Mardeg!
| Assignee | ||
Updated•16 years ago
|
Summary: Autofill for logins and passwords doesn't work on many forum sites → JavaScipt prevents saving passwords in the Keychain
| Assignee | ||
Updated•16 years ago
|
Hardware: PowerPC → All
Summary: JavaScipt prevents saving passwords in the Keychain → JavaScript prevents saving passwords in the Keychain
| Assignee | ||
Comment 10•15 years ago
|
||
(In reply to comment #3)
> Firefox actually fixed this case in bug 257781, so maybe we can get hooks in
> earlier at the point they (I haven't looked yet to see if it's a hook embedders
> have access to). Reopening for investigation based on that.
It's more complex than bug 257781 (given that bug 257781 just changed something in content/html/content/src/nsHTMLFormElement.cpp).
What happened is that because of regressions like bug 343182 (and bug 343264, which was a regression from fill-during-pageload, which landed at the same time), they started listening for NS_EARLYFORMSUBMIT_SUBJECT instead of NS_FORMSUBMIT_SUBJECT.
In simplest terms, that's a find/replace in http://mxr.mozilla.org/camino/source/camino/src/formfill/KeychainService.mm#137
However, bz warns in bug 343182 comment 6 and bug 343182 comment 14 about the action URI getting lost/being wrong. I'm not sure how Firefox may have compensated for this when fixing bug 360493 (aka our bug 361463 and friends). The Firefox current code still listens for NS_EARLYFORMSUBMIT_SUBJECT (or, rather, its JS equivalent, earlyformsubmit), but Stuart would have to look at the patch in bug 360493 to see if any compensation is needed for the action URL.
Aside from that, though, this looks like a trivial fix :P
| Assignee | ||
Comment 11•15 years ago
|
||
(If it does turn out to be that easy, or even just slightly more complex, this would be a good thing to get for 2.1 and for whatever branch release is current when we feel comfortable with the code.)
Flags: camino2.1?
Flags: camino2.0.5?
| Assignee | ||
Comment 12•15 years ago
|
||
(In reply to comment #10)
> time), they started listening for NS_EARLYFORMSUBMIT_SUBJECT instead of
> NS_FORMSUBMIT_SUBJECT.
>
> In simplest terms, that's a find/replace in
> http://mxr.mozilla.org/camino/source/camino/src/formfill/KeychainService.mm#137
FWIW, when I make that change, I successfully save a password at macosx.com, with
<key>macosx.com</key>
<array>
<string>macosx.com</string>
</array>
as my AllowedActionHosts.plist <dict>.
| Assignee | ||
Comment 13•15 years ago
|
||
Doesn't appear to fix the NYU case (bug 457590), but
1) that appears to have changed, since disabling JS doesn't work now, either and
2) Firefox doesn't work, either
(at least with dummy login info, which got me a prompt on both macosx.com and tvcampus.net).
Also, I notice we're passing PR_FALSE, whereas Firefox (and every other place bug 343182 patched) was using PR_TRUE; I have no idea if that's important, but I noticed it was different.
| Assignee | ||
Comment 14•15 years ago
|
||
Stuart had a look at this this morning, and his conclusion was that the action URI might be wrong on pages with JS submission hooks, but we only care about the action URI (host) for security, and that whole security model only works when the attacker can't run JS on the page.
So, it really is this simple.
Assignee: nobody → alqahira
Status: NEW → ASSIGNED
Attachment #482278 -
Flags: superreview?(stuart.morgan+bugzilla)
Comment 15•15 years ago
|
||
Comment on attachment 482278 [details] [diff] [review]
Fix
sr=smorgan
Attachment #482278 -
Flags: superreview?(stuart.morgan+bugzilla) → superreview+
| Assignee | ||
Comment 16•15 years ago
|
||
http://hg.mozilla.org/camino/rev/56b2d55697b8
I'm a bit wary about taking this on 2.0.x right before a release, in the event there's some case we've missed or misunderstood.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago → 15 years ago
Flags: camino2.1?
Resolution: --- → FIXED
Target Milestone: --- → Camino2.1
| Assignee | ||
Comment 17•15 years ago
|
||
> I'm a bit wary about taking this on 2.0.x right before a release, in the event
> there's some case we've missed or misunderstood.
There was agreement with this sentiment at the meeting. We'll renominate for 2.0.6 and look at it then when it will have been in use in the nightlies for a while.
Flags: camino2.0.5? → camino2.0.5-
| Assignee | ||
Updated•15 years ago
|
Flags: camino2.0.6?
| Assignee | ||
Comment 18•15 years ago
|
||
Per irc discussions, no one's seen/complained about regressions for the ~month this has been in 2.1a1pre nightlies, so we're taking this for 2.0.6.
Landed on CAMINO_2_0_BRANCH in advance of 2.0.6.
Flags: camino2.0.6? → camino2.0.6+
Whiteboard: [camino-2.0.6]
You need to log in
before you can comment on or make changes to this bug.
Description
•