rogershen / chrome-regex-search

Other
267 stars 56 forks source link

Chrome bug preventing search from working #40

Open cxw42 opened 4 years ago

cxw42 commented 4 years ago

Today for the first time https://bugs.chromium.org/p/chromium/issues/detail?id=490915 negatively affected me (version below).

Steps: Run a regex search from the popup on any Internet page for text on that page

Expected: Search result count listed in the popup

Observed: Result count stays at 0 of 0

Request: Would you be willing to update the search function to test for the case described below, warn, and still perform a search using the default settings? Thanks for considering this request!

Analysis

Here, the extension (reasonably) assumes Chrome will behave as documented :) . However, Chrome instead returns undefined.

MCVE (in the developer console, with "Chrome Regex Search" selected, after the above error occurs):

chrome.storage.local.get(null,(r)=>{console.log(chrome.runtime.lastError); console.log(r);})
undefined
{}
    message: "IO error: .../LOCK: Access denied. (ChromeMethodBFE: 15::LockFile::5)"
    get message: ƒ ()
    __proto__: Object
undefined

Browser

Chromium 76.0.3809.87 (Official Build) snap (64-bit) Revision 111fe1e15d5ced26080a7dc239bcfe70f6c49aad-refs/branch-heads/3809@{#967} OS Linux (Ubuntu 18.04.2 LTS) JavaScript V8 7.6.303.27 Flash (Disabled) User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36 Command Line /snap/chromium/813/usr/lib/chromium-browser/chrome --no-default-browser-check --no-first-run --password-store=basic --profile-directory=Default --flag-switches-begin --disable-smooth-scrolling --disable-features=HardwareMediaKeyHandling --flag-switches-end Executable Path /snap/chromium/813/usr/lib/chromium-browser/chrome Profile Path /home/cwhite/snap/chromium/813/.config/chromium/Default