Urgent.News

What's breaking now, across hundreds of outlets.

Tech

I shipped Chrome extensions with an empty permissions list. Here is what that costs you.

Every Chrome extension I install asks for something. Read and change all your data on all websites, usually. So when I built five small developer utilities as extensions, I wanted to know how far I could get with the permissions array empty. All five shipped with this: { "manifest_version" : 3 , "name" : "Base64 Encoder & Decoder" , "version" : "1.0.0" , "description" : "..." , "icons" : { "16" :…

Building small developer tools as Chrome extensions allowed me to explore the impact of empty permissions. All five extensions were shipped with an empty permissions array, meaning no access to the current page, storage, or clipboard. Three main capabilities were sacrificed: the ability to read the selected text or URL, preserving state between sessions, and clipboard functionality.

Despite these limitations, the extensions primarily relied on normal web page functionalities such as Web Crypto, TextEncoder, and DOM APIs. No external requests or network operations were made. No code from npm was bundled, and all tools were hand-written. This approach led to a few hundred lines of custom code for each extension, resulting in each zip file being around 16 KB.

The source code that reviewers see is the same that ships, meaning there's no hidden transitive dependency tree. The tradeoff was worth it for these simple tools, but for more complex applications, a dependency would be preferable to avoid potential bugs and maintain review efficiency.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Knuth reward check

Article URL: https://www.thomas-huehn.com/knuth-reward-check/ Comments URL: https://news.ycombinator.com/item?id=50034081 Points: 198 # Comments: 71

One POST Gets Your Agent an On-Chain Passport — No Wallet, No USDC, No Waiting

Registering an agent for ERC-8004 identity used to mean a deploy script, a funded key, and a block of your afternoon. As of this week it means one line: curl -X POST…

  • One POST API call registers an agent on-chain without wallet or USDC.
  • Returned data includes agentid, mint transaction hash, and usable API key.
  • Observer tier grants limited access API key with 10 requests per minute.

More from Saturday 10 October →