smartup icon indicating copy to clipboard operation
smartup copied to clipboard

最新版Firefox鼠标右键手势失效

Open orzogc opened this issue 3 years ago • 18 comments

在Firefox 98.0.1里鼠标右键手势失效,鼠标中键手势正常

orzogc avatar Mar 17 '22 16:03 orzogc

I can confirm this. Using Firefox 99.0b4 under macOS.

Frederick888 avatar Mar 17 '22 23:03 Frederick888

请提供下smartup的版本号

zimocode avatar Mar 18 '22 00:03 zimocode

@zimocode 7.1.382.1148 I'm using.

Frederick888 avatar Mar 18 '22 02:03 Frederick888

@Frederick888 can you send me your configuration?

zimocode avatar Mar 18 '22 03:03 zimocode

@zimocode Of cos:

{
  "about": {
    "donatedev": {
      "ad": true
    }
  },
  "apps": {
    "appslist": {
      "n_closebox": true
    }
  },
  "ctm": {
    "settings": {
      "disable": true,
      "opt": true,
      "fnswitch": false,
      "homepage": true
    },
    "actions": [
      {
        "name": "newtab",
        "selects": [
          {
            "type": "n_optype",
            "value": "n_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      }
    ]
  },
  "drg": {
    "settings": {
      "holdkey": "ctrl",
      "holdimgkey": "alt",
      "drgbox": false,
      "drgtobox": true,
      "drgurl": true,
      "drgimg": true,
      "txt": true,
      "lnk": true,
      "img": true,
      "draggable": true
    },
    "ui": {
      "line": {
        "enable": false,
        "color": "#008080",
        "width": 3,
        "opacity": 90
      },
      "direct": {
        "enable": false,
        "color": "#8e9bd5",
        "width": 32,
        "opacity": 80,
        "style": "center"
      },
      "tip": {
        "enable": true,
        "color": "#000000",
        "bgcolor": "#cbc8f9",
        "width": 18,
        "opacity": 80,
        "style": "follow",
        "withdir": true
      },
      "note": {
        "enable": true,
        "color": "#f75620",
        "opacity": 90,
        "width": 12,
        "style": "hover"
      },
      "allaction": {
        "enable": false,
        "color": "#ffffff",
        "bgcolor": "#576f71",
        "width": 24,
        "opacity": 70,
        "style": "ui_bottom"
      }
    },
    "tdrg": [
      {
        "direct": "L",
        "name": "txtsearch",
        "mydes": {
          "type": true,
          "value": "Search texts in background"
        },
        "selects": [
          {
            "type": "n_txtengine",
            "value": "0"
          },
          {
            "type": "n_encoding",
            "value": "s_uri"
          },
          {
            "type": "n_optype",
            "value": "s_back"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "R",
        "name": "txtsearch",
        "selects": [
          {
            "type": "n_txtengine",
            "value": "0"
          },
          {
            "type": "n_encoding",
            "value": "s_uri"
          },
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "LDR",
        "name": "copytxt"
      }
    ],
    "ldrg": [
      {
        "direct": "L",
        "name": "openlnk",
        "mydes": {
          "type": true,
          "value": "Open link in background"
        },
        "selects": [
          {
            "type": "n_optype",
            "value": "s_back"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "R",
        "name": "openlnk",
        "selects": [
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "LDR",
        "name": "copylnkurl"
      }
    ],
    "idrg": [
      {
        "direct": "L",
        "name": "imgsearch",
        "mydes": {
          "type": true,
          "value": "Search image in background"
        },
        "selects": [
          {
            "type": "n_imgengine",
            "value": "0"
          },
          {
            "type": "n_encoding",
            "value": "s_uri"
          },
          {
            "type": "n_optype",
            "value": "s_back"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "R",
        "name": "imgsearch",
        "selects": [
          {
            "type": "n_imgengine",
            "value": "0"
          },
          {
            "type": "n_encoding",
            "value": "s_uri"
          },
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "U",
        "name": "openimg",
        "selects": [
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "LDR",
        "name": "copyimgurl"
      }
    ]
  },
  "general": {
    "settings": {
      "timeout": true,
      "timeoutvalue": 2000,
      "timeout_nomenu": true,
      "minlength": 10,
      "autosave": true,
      "icon": true,
      "theme": "colorful",
      "notif": false,
      "appnotif": false,
      "esc": true
    },
    "fnswitch": {
      "fnmges": true,
      "fnsdrg": true,
      "fndrg": false,
      "fnrges": false,
      "fnwges": false,
      "fnpop": false,
      "fnicon": false,
      "fnctm": false
    },
    "engine": {
      "txtengine": [
        {
          "name": "Google",
          "content": "https://www.google.com/search?q=%s"
        },
        {
          "name": "Bing",
          "content": "http://www.bing.com/search?q=%s"
        }
      ],
      "imgengine": [
        {
          "name": "Google Images",
          "content": "https://www.google.com/searchbyimage?image_url=%s"
        },
        {
          "name": "Bing Images",
          "content": "http://www.bing.com/images/searchbyimage?&imgurl=%s"
        }
      ]
    },
    "script": {
      "script": [
        {
          "name": "Test Script",
          "content": "alert('test script 1.')"
        },
        {
          "name": "Test Script2",
          "content": "alert('test script 2.')"
        }
      ]
    },
    "linux": {
      "cancelmenu": false
    },
    "sync": {
      "autosync": true
    }
  },
  "icon": {
    "settings": {
      "type": "back",
      "tip": true
    },
    "actions": [
      {
        "name": "newtab",
        "selects": [
          {
            "type": "n_optype",
            "value": "n_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      }
    ]
  },
  "mges": {
    "settings": {
      "model": 2,
      "holdkey": "none",
      "txttourl": true,
      "lnktoimg": false
    },
    "ui": {
      "line": {
        "enable": true,
        "color": "#3369E8",
        "width": 3,
        "opacity": 90
      },
      "direct": {
        "enable": false,
        "color": "#8e9bd5",
        "width": 32,
        "opacity": 80,
        "style": "center"
      },
      "tip": {
        "enable": true,
        "color": "#ffffff",
        "bgcolor": "#5677fc",
        "width": 18,
        "opacity": 80,
        "style": "follow",
        "withdir": false
      },
      "note": {
        "enable": true,
        "color": "#f75620",
        "opacity": 90,
        "width": 12,
        "style": "hover"
      },
      "allaction": {
        "enable": false,
        "color": "#ffffff",
        "bgcolor": "#576f71",
        "width": 24,
        "opacity": 70,
        "style": "ui_bottom"
      }
    },
    "actions": [
      {
        "direct": "L",
        "name": "back"
      },
      {
        "direct": "R",
        "name": "forward"
      },
      {
        "direct": "U",
        "name": "scroll",
        "mydes": {
          "type": true,
          "value": "Scroll top"
        },
        "selects": [
          {
            "type": "n_scroll",
            "value": "s_top"
          },
          {
            "type": "n_effect",
            "value": "s_on"
          }
        ],
        "checks": [
          {
            "type": "n_effect",
            "value": true
          }
        ]
      },
      {
        "direct": "D",
        "name": "scroll",
        "mydes": {
          "type": true,
          "value": "Scroll bottom"
        },
        "selects": [
          {
            "type": "n_scroll",
            "value": "s_bottom"
          },
          {
            "type": "n_effect",
            "value": "s_on"
          }
        ],
        "checks": [
          {
            "type": "n_effect",
            "value": true
          }
        ]
      },
      {
        "direct": "LR",
        "name": "newtab",
        "selects": [
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ],
        "type": "action"
      },
      {
        "direct": "DR",
        "name": "close",
        "mydes": {
          "type": true,
          "value": "Close current tab"
        },
        "selects": [
          {
            "type": "n_tab",
            "value": "s_current"
          },
          {
            "type": "n_close_sel",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_close_keep",
            "value": false
          },
          {
            "type": "n_closePin",
            "value": false
          },
          {
            "type": "n_closeConfirm",
            "value": true
          }
        ],
        "type": "action"
      },
      {
        "direct": "UL",
        "name": "switchtab",
        "mydes": {
          "type": true,
          "value": "Switch to left tab"
        },
        "selects": [
          {
            "type": "n_tab_lrhl",
            "value": "s_left"
          }
        ]
      },
      {
        "direct": "UR",
        "name": "switchtab",
        "mydes": {
          "type": true,
          "value": "Switch to right tab"
        },
        "selects": [
          {
            "type": "n_tab_lrhl",
            "value": "s_right"
          }
        ]
      },
      {
        "direct": "RL",
        "name": "reopen",
        "type": "action"
      },
      {
        "direct": "LU",
        "name": "txtsearch",
        "selects": [
          {
            "type": "n_txtengine",
            "value": "0"
          },
          {
            "type": "n_encoding",
            "value": "s_uri"
          },
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "LD",
        "name": "txtsearch",
        "mydes": {
          "type": true,
          "value": "Search texts in background"
        },
        "selects": [
          {
            "type": "n_txtengine",
            "value": "0"
          },
          {
            "type": "n_encoding",
            "value": "s_uri"
          },
          {
            "type": "n_optype",
            "value": "s_back"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "UD",
        "name": "reload",
        "mydes": {
          "type": true,
          "value": "Reload current tab"
        },
        "selects": [
          {
            "type": "n_tab",
            "value": "s_current"
          }
        ],
        "checks": [
          {
            "type": "n_reload_clear",
            "value": false
          }
        ],
        "type": "action"
      },
      {
        "direct": "UDU",
        "name": "reload",
        "mydes": {
          "type": true,
          "value": "Reload current tab without cache"
        },
        "selects": [
          {
            "type": "n_tab",
            "value": "s_current"
          }
        ],
        "checks": [
          {
            "type": "n_reload_clear",
            "value": true
          }
        ]
      },
      {
        "direct": "DRU",
        "name": "appslist",
        "type": "action"
      },
      {
        "direct": "RDLU",
        "name": "optionspage"
      }
    ]
  },
  "plus": {},
  "pop": {
    "settings": {
      "type": "front",
      "last": false
    },
    "actions": [
      {
        "name": "reload",
        "mydes": {
          "type": true,
          "value": "Reload current tab"
        },
        "selects": [
          {
            "type": "n_tab",
            "value": "s_current"
          }
        ],
        "checks": [
          {
            "type": "n_reload_clear",
            "value": false
          }
        ]
      },
      {
        "name": "newtab",
        "selects": [
          {
            "type": "n_optype",
            "value": "n_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      }
    ]
  },
  "rges": {
    "actions": [
      {
        "name": "switchtab",
        "mydes": {
          "type": true,
          "value": "Switch to right tab"
        },
        "selects": [
          {
            "type": "n_tab_lrhl",
            "value": "s_right"
          }
        ]
      },
      {
        "name": "switchtab",
        "mydes": {
          "type": true,
          "value": "Switch to left tab"
        },
        "selects": [
          {
            "type": "n_tab_lrhl",
            "value": "s_left"
          }
        ]
      }
    ]
  },
  "sdrg": {
    "settings": {
      "holdkey": "ctrl",
      "holdimgkey": "alt",
      "drgbox": false,
      "drgtobox": true,
      "drgurl": true,
      "drgimg": true,
      "txt": true,
      "lnk": true,
      "img": true,
      "draggable": true
    },
    "tsdrg": [
      {
        "direct": "L",
        "name": "txtsearch",
        "mydes": {
          "type": true,
          "value": "Search texts in background"
        },
        "selects": [
          {
            "type": "n_txtengine",
            "value": "0"
          },
          {
            "type": "n_encoding",
            "value": "s_uri"
          },
          {
            "type": "n_optype",
            "value": "s_back"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "U",
        "name": "none"
      },
      {
        "direct": "R",
        "name": "txtsearch",
        "selects": [
          {
            "type": "n_txtengine",
            "value": "0"
          },
          {
            "type": "n_encoding",
            "value": "s_uri"
          },
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ],
        "type": "action"
      },
      {
        "direct": "D",
        "name": "copytxt"
      },
      {
        "direct": "l",
        "name": "none"
      },
      {
        "direct": "u",
        "name": "none"
      },
      {
        "direct": "r",
        "name": "none"
      },
      {
        "direct": "d",
        "name": "none"
      }
    ],
    "lsdrg": [
      {
        "direct": "L",
        "name": "openlnk",
        "mydes": {
          "type": true,
          "value": "Open link in background"
        },
        "selects": [
          {
            "type": "n_optype",
            "value": "s_back"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ],
        "type": "action"
      },
      {
        "direct": "U",
        "name": "none"
      },
      {
        "direct": "R",
        "name": "openlnk",
        "selects": [
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ],
        "type": "action"
      },
      {
        "direct": "D",
        "name": "none"
      },
      {
        "direct": "l",
        "name": "none"
      },
      {
        "direct": "u",
        "name": "none"
      },
      {
        "direct": "r",
        "name": "none"
      },
      {
        "direct": "d",
        "name": "none"
      }
    ],
    "isdrg": [
      {
        "direct": "L",
        "name": "openimg",
        "mydes": {
          "type": true,
          "value": "Open image in background"
        },
        "selects": [
          {
            "type": "n_optype",
            "value": "s_back"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "U",
        "name": "none"
      },
      {
        "direct": "R",
        "name": "openimg",
        "selects": [
          {
            "type": "n_optype",
            "value": "s_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "D",
        "name": "none"
      },
      {
        "direct": "l",
        "name": "none"
      },
      {
        "direct": "u",
        "name": "none"
      },
      {
        "direct": "r",
        "name": "none"
      },
      {
        "direct": "d",
        "name": "none"
      }
    ]
  },
  "touch": {
    "settings": {
      "txttourl": true,
      "lnktoimg": false
    },
    "ui": {
      "line": {
        "enable": false,
        "color": "#808080",
        "width": 5,
        "opacity": 50
      },
      "direct": {
        "enable": false,
        "color": "#8e9bd5",
        "width": 32,
        "opacity": 80,
        "style": "center"
      },
      "tip": {
        "enable": true,
        "color": "#ffffff",
        "bgcolor": "#5677fc",
        "width": 18,
        "opacity": 80,
        "style": "leftbottom",
        "withdir": false
      },
      "note": {
        "enable": false,
        "color": "#f75620",
        "opacity": 90,
        "width": 12,
        "style": "hover"
      },
      "allaction": {
        "enable": false,
        "color": "#ffffff",
        "bgcolor": "#576f71",
        "width": 24,
        "opacity": 70,
        "style": "ui_bottom"
      }
    },
    "actions": [
      {
        "direct": "DL",
        "name": "newtab",
        "selects": [
          {
            "type": "n_optype",
            "value": "n_new"
          },
          {
            "type": "n_position",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_pin",
            "value": false
          }
        ]
      },
      {
        "direct": "DR",
        "name": "close",
        "mydes": {
          "type": true,
          "value": "Close current tab"
        },
        "selects": [
          {
            "type": "n_tab",
            "value": "s_current"
          },
          {
            "type": "n_close_sel",
            "value": "s_default"
          }
        ],
        "checks": [
          {
            "type": "n_close_keep",
            "value": false
          }
        ]
      },
      {
        "direct": "DRL",
        "name": "reopen"
      },
      {
        "direct": "DRU",
        "name": "appslist"
      },
      {
        "direct": "RDLU",
        "name": "optionspage"
      }
    ]
  },
  "version": 46,
  "wges": {
    "actions": [
      {
        "name": "none"
      },
      {
        "name": "none"
      },
      {
        "name": "switchtab",
        "mydes": {
          "type": true,
          "value": "Switch to left tab"
        },
        "selects": [
          {
            "type": "n_tab_lrhl",
            "value": "s_left"
          }
        ]
      },
      {
        "name": "switchtab",
        "mydes": {
          "type": true,
          "value": "Switch to right tab"
        },
        "selects": [
          {
            "type": "n_tab_lrhl",
            "value": "s_right"
          }
        ]
      }
    ]
  }
}

Frederick888 avatar Mar 18 '22 04:03 Frederick888

image @Frederick888 just drag the exported file to here, and, the file will be uploaded automatically.

zimocode avatar Mar 18 '22 04:03 zimocode

@zimocode smartup.config.zip GitHub didn't like the file extension so I zipped it.

Frederick888 avatar Mar 18 '22 07:03 Frederick888

@zimocode smartup.config.zip GitHub didn't like the file extension so I zipped it.

@Frederick888 It works. any more infos?

zimocode avatar Mar 18 '22 09:03 zimocode

@zimocode I just re-installed the extension. It's still not working, and in about:debugging#/runtime/this-firefox I can see the following errors:

Reading manifest: Warning processing optional_permissions: Error processing optional_permissions.1: Value "downloads.shelf" must either: must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse.serviceWorkerScript"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/], or match the pattern /^resource:\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$|^about:/]
Reading manifest: Warning processing optional_permissions: Error processing optional_permissions.8: Value "pageCapture" must either: must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse.serviceWorkerScript"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/], or match the pattern /^resource:\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$|^about:/]
Reading manifest: Warning processing optional_permissions: Error processing optional_permissions.9: Value "background" must either: must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse.serviceWorkerScript"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/], or match the pattern /^resource:\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$|^about:/]
Reading manifest: Warning processing permissions: Error processing permissions.6: Value "tts" must either: must either [must either [must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse.serviceWorkerScript"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["captivePortal"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["normandyAddonStudy"], be one of ["geckoProfiler"], be one of ["urlbar"], be one of ["contextualIdentities"], be one of ["dns"], be one of ["activityLog"], be one of ["networkStatus"], be one of ["telemetry"], or be one of ["theme"]], must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse.serviceWorkerScript"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], or match the pattern /^experiments(\.\w+)+$/], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/], or match the pattern /^resource:\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$|^about:/]
image

Also saw a few errors in extension console:

image

Frederick888 avatar Mar 18 '22 12:03 Frederick888

It works if I enable Use double right-click button to popup context menu. If I try to switch on Try to set context menu popup after mouseup, I get the warning below:

image

I didn't need to switch on either of these and I was able to use gesture and context menu by a single right click.

Frederick888 avatar Mar 18 '22 12:03 Frederick888

Oh, I think I found the cause. The latest Firefox package didn't follow manifest_note and used Chrome permissions.

I checked out the repo, updated manifest to

{
	"manifest_version": 2,
	"minimum_chrome_version": "22",
	"name": "__MSG_ext_name__",
	"short_name":"smartUp",
	"version": "7.1.382.1148",
	"description": "__MSG_ext_des__",
	"default_locale": "en",
	"author":"zimo",
	"icons": {
		"16": "icon.png",
		"48": "icon.png",
		"128": "icon.png"
	},
	"background": {
		"scripts": ["js/purify.js","js/gbk.js","js/background.js"],
		"persistent": true
	},
	"content_scripts": [
		{
			"js": ["js/event.js"],
			"matches": ["<all_urls>"],
			"run_at": "document_start",
			"all_frames":true,
			"match_about_blank":true
		}
	],
	"browser_action": {
		"default_icon": {
			"19": "icon.png",
			"38": "icon.png"
		},
		"default_title": "smartUp",
		"default_popup": "html/popup.html"
	},
	"options_ui": {
		"open_in_tab": true,
		"page": "html/options.html"
	},
	"web_accessible_resources": [
		"image/*",
		"icon.png"
	],
	"permissions": [
		"tabs",
		"<all_urls>",
		"notifications",
		"storage",
		"contextMenus",
		"unlimitedStorage",
		"management",
		"sessions"
	],
	"optional_permissions": [
		"browserSettings",
		"downloads",
		"clipboardRead",
		"clipboardWrite",
		"bookmarks",
		"history",
		"topSites"
	],
	"browser_specific_settings": {
		"gecko": {
			"id": "{77b19bb0-313b-49c8-9e58-cef2e4ebf317}"
		}
	}
}

...and it's working now.

Frederick888 avatar Mar 18 '22 13:03 Frederick888

我平台是Arch Linux,smartUp版本是7.1.382.1148,Use double right-click button to popup context menu的选项有效,但选择Try to set context menu popup after mouseup这个选项会提示申请权限失败

orzogc avatar Mar 19 '22 06:03 orzogc

Oh, I think I found the cause. The latest Firefox package didn't follow manifest_note and used Chrome permissions.

I checked out the repo, updated manifest to

{
	"manifest_version": 2,
	"minimum_chrome_version": "22",
	"name": "__MSG_ext_name__",
	"short_name":"smartUp",
	"version": "7.1.382.1148",
	"description": "__MSG_ext_des__",
	"default_locale": "en",
	"author":"zimo",
	"icons": {
		"16": "icon.png",
		"48": "icon.png",
		"128": "icon.png"
	},
	"background": {
		"scripts": ["js/purify.js","js/gbk.js","js/background.js"],
		"persistent": true
	},
	"content_scripts": [
		{
			"js": ["js/event.js"],
			"matches": ["<all_urls>"],
			"run_at": "document_start",
			"all_frames":true,
			"match_about_blank":true
		}
	],
	"browser_action": {
		"default_icon": {
			"19": "icon.png",
			"38": "icon.png"
		},
		"default_title": "smartUp",
		"default_popup": "html/popup.html"
	},
	"options_ui": {
		"open_in_tab": true,
		"page": "html/options.html"
	},
	"web_accessible_resources": [
		"image/*",
		"icon.png"
	],
	"permissions": [
		"tabs",
		"<all_urls>",
		"notifications",
		"storage",
		"contextMenus",
		"unlimitedStorage",
		"management",
		"sessions"
	],
	"optional_permissions": [
		"browserSettings",
		"downloads",
		"clipboardRead",
		"clipboardWrite",
		"bookmarks",
		"history",
		"topSites"
	],
	"browser_specific_settings": {
		"gecko": {
			"id": "{77b19bb0-313b-49c8-9e58-cef2e4ebf317}"
		}
	}
}

...and it's working now.

Linux?

zimocode avatar Mar 19 '22 06:03 zimocode

@zimocode Linux & macOS, same fix :)

Under Linux I had to roll back my Firefox profile data to an earlier snapshot when it had smartUp v6 before upgrading to my patched v7 tho. Some data migration issue I guess.

Frederick888 avatar Mar 19 '22 08:03 Frederick888

我平台是Arch Linux,smartUp版本是7.1.382.1148,Use double right-click button to popup context menu的选项有效,但选择Try to set context menu popup after mouseup这个选项会提示申请权限失败

感觉上还是权限问题。许久没使用Linux的桌面版本了,也很少有人反馈Linux方面的问题,所以都没怎么注意过这方面情况。 能不能给个这个位置的截图?:通用选项》权限管理

zimocode avatar Mar 20 '22 01:03 zimocode

Screenshot_20220320_131902

Screenshot_20220320_131835

orzogc avatar Mar 20 '22 05:03 orzogc

@orzogc 你这截图也没看出来哪里有问题呀。我换Ubuntu测试也是正常的,简直奇了怪了。你是按楼上哥们修改manifest后能运行了么?

zimocode avatar Mar 20 '22 05:03 zimocode

@orzogc 你这截图也没看出来哪里有问题呀。我换Ubuntu测试也是正常的,简直奇了怪了。你是按楼上哥们修改manifest后能运行了么?

修改manifest后选择Try to set context menu popup after mouseup能正常申请权限,右键手势正常

orzogc avatar Mar 20 '22 12:03 orzogc

现在应该是修复好了

orzogc avatar Sep 07 '22 16:09 orzogc