Giter Site home page Giter Site logo

Comments (3)

KOLANICH avatar KOLANICH commented on September 13, 2024 1

TabFS needs to work with the browser you already have running; it can't require that you start up the browser in a special mode, or use a headless browser, or anything like that.

https://searchfox.org/mozilla-central/source/browser/app/winlauncher/LauncherProcessWin.cpp#89

Yeah, it requires to start a browser in a special mode. It can be done either by flags, or by env variables.

(can you even manage tabs and windows in WebDriver? it looks like it's meant for automation of an individual page. what about browser history? persistent storage?)

To some extent. One can open and close tabs. About windows - I have not used this functionality, so IDK.

Marionette allows even more, since it is an internal protocol Mozilla used to test Firefox itself.

I prefer not to add any more dependencies (third-party client library, browser extension stub, programming languages that those are written in, dependencies they themselves have, etc).

For Firefox the external dependency is an app starting Firefox in a certain mode (--marionette flag), setting up a temporary profile (damn damn damn slow and inefficient and making my system swap, but can be disabled) and translating between WebDriver and marionette. But one can use marionette protocol directly (it is a socket + JSON, the lib in rust implementing it is available), but this defeats the purpose of using WebDriver.

from tabfs.

osnr avatar osnr commented on September 13, 2024 1

Thanks for the report. I'm going to close this for now, since I don't think we will adopt it, but I think this page will be a useful resource if this question comes up in future; appreciate you bringing it up.

from tabfs.

osnr avatar osnr commented on September 13, 2024

I spent a while looking up WebDriver just now, and… I still basically have no idea what it is or how the user experience or installation process works.

But I will say that these are some red lines I have, and it seems like WebDriver (or implementations of it, or whatever) may violate them:

  • I prefer not to add any more dependencies (third-party client library, browser extension stub, programming languages that those are written in, dependencies they themselves have, etc).

  • I prefer not to have extra abstraction layers between us and the browser. By using the extension APIs, we can do whatever the browser lets us do (can you even manage tabs and windows in WebDriver? it looks like it's meant for automation of an individual page. what about browser history? persistent storage?), we can fix anything that goes wrong ourselves, and we don't need to hack around limitations in tooling. (If we need to have special cases for Firefox or Safari, so be it -- I'd rather do that than involve an extra third-party layer)

  • TabFS needs to work with the browser you already have running; it can't require that you start up the browser in a special mode, or use a headless browser, or anything like that.

from tabfs.

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.