Skip to content

Broken on firefox under unknown circumstances #101

@dawagner

Description

@dawagner

On Ubuntu 24.04, firefox snap 135.0, on the "mobile" version, I can't generate any password and I'm getting the following error in the console:

Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data
    x https://chriszarate.github.io/supergenpass/mobile/:105
    dispatch https://chriszarate.github.io/supergenpass/mobile/:103
    handle https://chriszarate.github.io/supergenpass/mobile/:103
    add https://chriszarate.github.io/supergenpass/mobile/:103
    w https://chriszarate.github.io/supergenpass/mobile/:102
    each https://chriszarate.github.io/supergenpass/mobile/:102
    each https://chriszarate.github.io/supergenpass/mobile/:102
    w https://chriszarate.github.io/supergenpass/mobile/:102
    on https://chriszarate.github.io/supergenpass/mobile/:103
    [101]< https://chriszarate.github.io/supergenpass/mobile/:105
    e https://chriszarate.github.io/supergenpass/mobile/:101
    a https://chriszarate.github.io/supergenpass/mobile/:101
    <anonymous> https://chriszarate.github.io/supergenpass/mobile/:101

Seems to be caused by JSON.parse(b.data) with b.data:

data:
​​​    command: "getPageColorScheme"

Seems related to

$.each(JSON.parse(post.data), function (key, value) {
/ listenForBookmarklet . Maybe that is blocked by firefox for security reasons ? But I tried to disable everything I could think of and still couldn't make it work. I don't use the bookmarklet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions