Code Monkey home page Code Monkey logo

Comments (2)

kickscondor avatar kickscondor commented on August 23, 2024 1

Ok, this situation is getting worse: e08f800#diff-051a8a7bcae8db1e4cee8eb09b52e619

Added: webRequest and webRequestBlocking

The problem is that, up until now, I've been using the chrome-extension:// URL to run the browser app. So the background page runs the fetch requests and the app shows the state. The sendMessage API is used to communicate between the two.

Unfortunately, this setup causes #1 - the issue where a large feed can park the browser app until it completes. The problem is that the background page is also a chrome-extension:// URL, so it shares a VM with the app. In order to separate them, I moved the app to https://fraidyc.at/s/. This now solves #1 - which is a key issue for me.

I tried using Web workers - but I need the fetch API and the DOMParser() in the worker - so it's a no go.

In all, I feel like the extension API is a poor fit for Fraidycat in this regard. The only permissions I should actually need are:

  • Making anonymous HTTP(S) requests.
  • Hosting a browser app somewhere that doesn't share a VM with the background script.
  • Unlimited storage.

Only the third one should require permissions! There is no way to ask for the first two.

from fraidycat.

kickscondor avatar kickscondor commented on August 23, 2024

On the first permission I listed (access to browser history and tabs), it looks like there is a possible solution by using an iframe: http://www.airovic.com/itsjustaniframe.html

However, one issue here is that JavaScript will run and the page will render. So this could result in drastically different HTML from the stuff gotten by fetch. Still, an option!

from fraidycat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.