« Movies on the Grass: The VisitorI'm not going to #OhioLinuxFest, but I wish I was... »

Password AutoFill on Password form's with disabled Username field

08/26/09

  11:26:03 pm, by The Dreamer   , 109 words  
Categories: Software

Password AutoFill on Password form's with disabled Username field

In addition to previous hack to nsLoginManager.js -- Remember Password Override for Firefox 3.0

I came up with another hack to do:

Change:

        // If the fields are disabled or read-only, there's nothing to do.
        if (passwordField.disabled || passwordField.readOnly ||
            usernameField && (usernameField.disabled ||
                              usernameField.readOnly)) {
            this.log("not filling form, login fields disabled");
            return [false, foundLogins];
        }

To:

        // If the fields are disabled or read-only, there's nothing to do.
        if (passwordField.disabled || passwordField.readOnly) {
            this.log("not filling form, login fields disabled");
            return [false, foundLogins];
        }

Because there's a certain site and prompts for Username first, and then on the second page provides a disabled Username field prefilled in and prompts for password. The disabled Username field was preventing autofill of saved password....

No feedback yet

Now instead of subjecting some poor random forum to a long rambling thought, I will try to consolidate those things into this blog where they can be more easily ignored profess to be collected thoughts from my mind.

Latest Poopli Updaters -- http://lkc.me/poop

bloglovin

There are 20 years 1 month 24 days 7 hours 14 minutes and 4 seconds until the end of time.
And, it has been 4 years 11 months 3 days 6 hours 48 minutes and 52 seconds since The Doctor saved us all from the end of the World!

Search

November 2017
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
Google

Linkblog

  XML Feeds

Who's Online?

  • Guest Users: 0
This seal is issued to lawrencechen.net by StopTheHacker Inc.
powered by b2evolution free blog software

hosted by
Green Web Hosting! This site hosted by DreamHost.

monitored by
Monitored by eXternalTest
SiteUptime Web Site Monitoring Service
website uptime