Giter Club home page Giter Club logo

Comments (3)

cmarcelo avatar cmarcelo commented on June 12, 2024

@tmpsantos, when you come back, could you add the results of your investigation here?

from crosswalk.

tmpsantos avatar tmpsantos commented on June 12, 2024

The current status of the Chromium Extensions subsystem makes it difficult to use it "as it is" on the Crosswalk project. Each attempt of import a file makes you pull several others in a chain reaction. Maintaining a patched copy of the Chromium code sounds unmaintainable to me.

Google engineers stated that they wanted the system modular enough that it could be used on the content_shell, but I don't see this happening soon, as the major bug tracking this development is moving slowly:
https://code.google.com/p/chromium/issues/detail?id=159265

Extension currently depends on Profile, they take Incognito windows into account and the ExtensionSystem class which has deep roots on the Chromium Browser internals. The Chromium Extensions also includes content scripts, which we don't really care about at the moment (we only want js API's) and would be just a burden/dead code.

What we can try to extract from the current Extensions is the mechanism of generating code out from IDL's and exposing these API's on the renderer process and serializing data to the backend.

from crosswalk.

cmarcelo avatar cmarcelo commented on June 12, 2024

For the record:

Our goals for Crosswalk Extensions were different from Chrome Extensions. We were focused mainly on providing a way to add new JS APIs backed with non-sandboxed native code. Chrome Extensions were about two things: extending the browser using JS/HTML (and chrome-specific APIs), as well as the notion of chrome packaged apps.

As noted above the code for Chrome extensions is still inside chrome/. Work started for moving it out but not much. The parts that we could consider reusing are not moved yet at the moment. While we could try to dig some internal classes to share, this wouldn't be practical, since we are using older-than-trunk Chromium versions and code is in high flux.

Last but not least, having our own code for extensions allowed us to experiment with things like: running separated extensions in threads or different processes, lazily loading our bindings, among others.

from crosswalk.

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.