How Fugu is the Web?-āĻāϰ āφāχāĻŸā§‡āĻŽ āϞ⧋āĻ—ā§‹āϰ āĻ›āĻŦāĻŋ

How Fugu is the Web?

āĻāĻ•ā§āϏāĻŸā§‡āύāĻļāύāĻĄā§‡āϭ⧇āϞāĻĒāĻžāϰ āϟ⧁āĻ˛ā§Šā§Ŧ āĻŦā§āϝāĻŦāĻšāĻžāϰāĻ•āĻžāϰ⧀
How Fugu is the Web?-āĻāϰ āϜāĻ¨ā§āϝ āφāχāĻŸā§‡āĻŽ āĻŽāĻŋāĻĄāĻŋ⧟āĻž ⧍ (āĻ¸ā§āĻ•ā§āϰāĻŋāύāĻļāϟ)
How Fugu is the Web?-āĻāϰ āϜāĻ¨ā§āϝ āφāχāĻŸā§‡āĻŽ āĻŽāĻŋāĻĄāĻŋ⧟āĻž ā§§ (āĻ¸ā§āĻ•ā§āϰāĻŋāύāĻļāϟ)
How Fugu is the Web?-āĻāϰ āϜāĻ¨ā§āϝ āφāχāĻŸā§‡āĻŽ āĻŽāĻŋāĻĄāĻŋ⧟āĻž ⧍ (āĻ¸ā§āĻ•ā§āϰāĻŋāύāĻļāϟ)
How Fugu is the Web?-āĻāϰ āϜāĻ¨ā§āϝ āφāχāĻŸā§‡āĻŽ āĻŽāĻŋāĻĄāĻŋ⧟āĻž ā§§ (āĻ¸ā§āĻ•ā§āϰāĻŋāύāĻļāϟ)
How Fugu is the Web?-āĻāϰ āϜāĻ¨ā§āϝ āφāχāĻŸā§‡āĻŽ āĻŽāĻŋāĻĄāĻŋ⧟āĻž ā§§ (āĻ¸ā§āĻ•ā§āϰāĻŋāύāĻļāϟ)
How Fugu is the Web?-āĻāϰ āϜāĻ¨ā§āϝ āφāχāĻŸā§‡āĻŽ āĻŽāĻŋāĻĄāĻŋ⧟āĻž ⧍ (āĻ¸ā§āĻ•ā§āϰāĻŋāύāĻļāϟ)

āĻ…āĻŦāϞ⧋āĻ•āύ

An extension to shine light on the Project Fugu 🐡 APIs web apps want to use.

How it works API data The raw data for the different Project Fugu 🐡 APIs is curated in a spreadsheet, which is then turned into JavaScript, so keeping the list of APIs updated is hopefully a straightforward task. API detection The extension monitors the requests a page makes via the chrome.webRequest.onBeforeRequest.addListener() API. Each response body, grouped by main frame, JavaScript, and Web App Manifest response bodies, is then run through a set of regular expressions like /navigator\.hid\.requestDevice\s*\(/g to determine if the code hints at a Project Fugu 🐡 API potentially being used. Browser support detection Most Project Fugu 🐡 APIs are easily feature-detectable by checking for the existence of interfaces or properties, for example, as in 'BarcodeDetector' in window. Other APIs require a ServiceWorkerRegistration, but luckily the popup window in Manifest V3 extensions uses a service worker, so it can be used via an IIFE that can be run in the client or the service worker. An example is (async () => 'periodicSync' in (await navigator.serviceWorker?.ready || self.registration))(). The support categories are listed below: âœ”ī¸ Supported by your browser. đŸšĢ Not supported by your browser. 🤷 Support unknown for your browser. (The only way to know would be user-agent sniffing.) Deep-linking The extension makes use of Text Fragment URLs to deep-link to the occurrence of a detected API, for example https://airhorner.com/scripts/main.min.js#:~:text=navigator.setAppBadge(. For main frame documents, the source code gets rendered in a helper HTML page controlled by the extension, since it is impossible to link to view-source: protocol links. Limitations â€ĸ The chrome.webRequest.onBeforeRequest.addListener() API unfortunately does not "see" requests that are handled by a service worker (crbug.com/766433). There are three possible workarounds for this: - Hard-reload via ⌘/ctrl+shift+r. - Open DevTools and check the Bypass for network checkbox in the Service Worker section of the Application tab. - Clear storage in the Storage section of the Application tab. â€ĸ The extension only does static code analysis, that is, there is no guarantee that the app actually uses the code snippet where a Project Fugu 🐡 API was detected. â€ĸ Heavily minified code will not be detected. For example, if an app minifies navigator.clipboard.write() to const nav = navigator; nav.clipboard.write(), the extension will not detect this. License Apache 2.0.

ā§Ģ-āĻāϰ āĻŽāĻ§ā§āϝ⧇ ā§Ļāϕ⧋āύāĻ“ āϰ⧇āϟāĻŋāĻ‚ āύ⧇āχ

āĻĢāϞāĻžāĻĢāϞ āĻāĻŦāĻ‚ āϰāĻŋāĻ­āĻŋāω āϏāĻŽā§āĻĒāĻ°ā§āϕ⧇ āφāϰāĻ“ āϜāĻžāύ⧁āύāĨ¤

āĻŦāĻŋāĻļāĻĻ āĻŦāĻŋāĻŦāϰāĻŖ

  • āĻ­āĻžāĻ°ā§āϏāύ
    1.24.0
  • āφāĻĒāĻĄā§‡āϟ āĻ•āϰāĻž āĻšā§Ÿā§‡āϛ⧇
    ā§§ā§Ļ āĻĄāĻŋāϏ⧇āĻŽā§āĻŦāϰ, ⧍ā§Ļ⧍ā§Ģ
  • āύāĻŋā§Ÿā§‡ āĻāϏ⧇āϛ⧇
    Thomas Steiner
  • āϏāĻžāχāϜ
    125KiB
  • āĻ­āĻžāώāĻžāϏāĻŽā§‚āĻš
    English
  • āĻĄā§‡āϭ⧇āϞāĻĒāĻžāϰ
    Thomas Steiner
    Neanderstr. 3 Hamburg 20459 Germany
    āχāĻŽā§‡āϞ
    steiner.thomas@gmail.com
  • āĻŦā§āϝāĻŦāϏāĻžā§Ÿā§€ āύāύ
    āĻāχ āĻĄā§‡āϭ⧇āϞāĻĒāĻžāϰ āύāĻŋāĻœā§‡āϕ⧇ āĻāĻ•āϜāύ āĻŦā§āϝāĻŦāϏāĻžāϝāĻŧā§€ āĻšāĻŋāϏ⧇āĻŦ⧇ āĻļāύāĻžāĻ•ā§āϤ āĻ•āϰ⧇āύāύāĻŋāĨ¤ āχāωāϰ⧋āĻĒā§€āϝāĻŧ āχāωāύāĻŋāϝāĻŧāύ⧇āϰ āĻ—ā§āϰāĻžāĻšāĻ•āĻĻ⧇āϰ āϜāĻ¨ā§āϝ, āĻŽāύ⧇ āϰāĻžāĻ–āĻŦ⧇āύ āϝ⧇ āĻ—ā§āϰāĻžāĻšāϕ⧇āϰ āĻ…āϧāĻŋāĻ•āĻžāϰ āφāĻĒāύāĻžāϰ āĻāĻŦāĻ‚ āĻāχ āĻĄā§‡āϭ⧇āϞāĻĒāĻžāϰ⧇āϰ āĻŽāĻ§ā§āϝ⧇ āϚ⧁āĻ•ā§āϤāĻŋāϰ āĻ•ā§āώ⧇āĻ¤ā§āϰ⧇ āĻĒā§āϰāϝ⧋āĻœā§āϝ āύ⧟āĨ¤

āĻ—ā§‹āĻĒāĻ¨ā§€ā§ŸāϤāĻž

āĻāĻ•ā§āϏāĻŸā§‡āύāĻļāύ āĻŽā§āϝāĻžāύ⧇āϜ āĻ•āϰ⧁āύ āĻāĻŦāĻ‚ āφāĻĒāύāĻžāϰ āĻĒā§āϰāϤāĻŋāĻˇā§āĻ āĻžāύ⧇ āϤāĻž āϕ⧀āĻ­āĻžāĻŦ⧇ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻ•āϰāĻž āĻšā§Ÿ āϏ⧇āχ āϏāĻŽā§āĻĒāĻ°ā§āϕ⧇ āϜāĻžāύ⧁āύ
āĻĄā§‡āϭ⧇āϞāĻĒāĻžāϰ āϜāĻžāύāĻŋā§Ÿā§‡āϛ⧇āύ āϝ⧇ āφāĻĒāύāĻžāϰ āĻĄā§‡āϟāĻž āϏāĻ‚āĻ—ā§āϰāĻš āĻŦāĻž āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻ•āϰāĻž āĻšāĻŦ⧇ āύāĻžāĨ¤ āφāϰāĻ“ āϜāĻžāύāϤ⧇, āĻĄā§‡āϭ⧇āϞāĻĒāĻžāϰ⧇āϰ privacy policy āĻĻ⧇āϖ⧁āύāĨ¤

āĻāχ āĻĄā§‡āϭ⧇āϞāĻĒāĻžāϰ āφāĻĒāύāĻžāϰ āĻĄā§‡āϟāĻž āĻĒā§āϰāϏāĻ™ā§āϗ⧇ āϝāĻž āĻ˜ā§‹āώāĻŖāĻž āĻ•āϰ⧇āϛ⧇āύ

  • āĻ…āύ⧁āĻŽā§‹āĻĻāĻŋāϤ āĻŦā§āϝāĻŦāĻšāĻžāϰ⧇āϰ āĻ•ā§āώ⧇āĻ¤ā§āϰ āĻ›āĻžāĻĄāĻŧāĻž āĻŦāĻžāχāϰ⧇āϰ āϕ⧋āύāĻ“ āĻĨāĻžāĻ°ā§āĻĄ-āĻĒāĻžāĻ°ā§āϟāĻŋāϰ āĻ•āĻžāϛ⧇ āĻĄā§‡āϟāĻž āĻŦāĻŋāĻ•ā§āϰāĻŋ āĻ•āϰāĻž āĻšā§Ÿ āύāĻž
  • āφāχāĻŸā§‡āĻŽā§‡āϰ āĻŽā§āĻ–ā§āϝ āĻ•āĻžāĻ°ā§āϝāĻ•āĻžāϰāĻŋāϤāĻžāϰ āϏāĻžāĻĨ⧇ āϏāĻŽā§āĻĒāĻ°ā§āĻ• āύ⧇āχ āĻāĻŽāύ āϕ⧋āύāĻ“ āωāĻĻā§āĻĻ⧇āĻļā§āϝ⧇ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻŦāĻž āĻŸā§āϰāĻžāĻ¨ā§āϏāĻĢāĻžāϰ āĻ•āϰāĻž āĻšāĻšā§āϛ⧇ āύāĻž
  • āϧāĻžāϰ āύ⧇āĻ“ā§ŸāĻžāϰ āϝ⧋āĻ—ā§āϝāϤāĻž āύāĻŋāĻ°ā§āϧāĻžāϰāĻŖ āĻŦāĻž āϧāĻžāϰ āĻĻ⧇āĻ“ā§ŸāĻžāϰ āωāĻĻā§āĻĻ⧇āĻļā§āϝ⧇ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻŦāĻž āĻŸā§āϰāĻžāĻ¨ā§āϏāĻĢāĻžāϰ āĻ•āϰāĻž āĻšāĻšā§āϛ⧇ āύāĻž

āϏāĻŽāĻ°ā§āĻĨāύ

āĻĒā§āϰāĻļā§āύ, āϏāĻžāĻœā§‡āĻļāύ āĻŦāĻž āϏāĻŽāĻ¸ā§āϝāĻžāϰ āϜāĻ¨ā§āϝ āϏāĻžāĻšāĻžāĻ¯ā§āϝ⧇āϰ āĻĒā§āĻ°ā§Ÿā§‹āϜāύ āĻšāϞ⧇, āφāĻĒāύāĻžāϰ āĻĄā§‡āĻ¸ā§āĻ•āϟāĻĒ āĻŦā§āϰāĻžāωāϜāĻžāϰ⧇ āĻāχ āĻĒ⧃āĻˇā§āĻ āĻž āϖ⧁āϞ⧁āύ

Google āĻ…ā§āϝāĻžāĻĒā§āϞāĻŋāϕ⧇āĻļāĻžāύāϗ⧁āϞāĻŋ