Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Opera for Windows does not ask to save password

  • Opera for linux does ask to save the password, I followed almost all rules about browsers' algorithms to detect a login form.

    I host this locally on my developing workstation and others can reach me using the local ip + port (dev is over http, not https)

    Sample of form that should ask for saving credentials:

    Basically there is an event.preventDefault() on the submit event of the form and the actual login process is done using socket.io

    <form>
        <div class="form-group">
            <div class="input-group">
                <div class="input-group-prepend"><span class="input-group-text"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-user fa-w-14"><path fill="currentColor" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z" class=""></path></svg></span></div>
                <input name="username" autocomplete="username" class="form-control">
            </div>
        </div>
        <div class="form-group">
            <div class="input-group">
                <div class="input-group-prepend"><span class="input-group-text"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="lock" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-lock fa-w-14"><path fill="currentColor" d="M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" class=""></path></svg></span></div>
                <input type="password" name="password" required="required" autocomplete="current-password" class="form-control">
            </div>
        </div>
        <div class="form-group">
            <button class="btn btn-primary btn-block">Login</button>
        </div>
        <p class="text-center"><a href="#" class="btn">Forgot password?</a></p>
    </form>
    
  • What do Chrome and Vivaldi on Windows do for the same situation? If Opera's different, I'd consider that a bug, especially since it works on Linux in Opera.

    Any difference if you use <input type="submit"... instead of a button?

    Mabye https://stackoverflow.com/questions/2382329/how-can-i-get-browser-to-prompt-to-save-password will help.

Log in to reply