Git Product home page Git Product logo

Comments (6)

wbamberg avatar wbamberg commented on June 9, 2024

One alternative to using a sidebar would be to inject an iframe into the page using a content script, and host the add-on's interface there.

In general this isn't a very good idea, because uncooperative/hostile pages could subvert the add-on (by drawing stuff over the iframe, for example) but in this case that's not an issue because we can expect pages from developer.mozilla.org to be cooperative :).

from doc-linter-webextension.

MatonAnthony avatar MatonAnthony commented on June 9, 2024

Another solution would be to add it to the developer panels when the browser doesn't support SidebarAction API.

from doc-linter-webextension.

wbamberg avatar wbamberg commented on June 9, 2024

Yes. See also Elchi3/mdn-doc-tests#230 for some more discussion of that :).

from doc-linter-webextension.

MatonAnthony avatar MatonAnthony commented on June 9, 2024

Following a conversation with mixedpuppy from the addons team.
It will not be possible to open the sidebar without user interaction due to a design choice.

It will be possible to open the sidebar programmatically but always with an user interaction.

Making this bug unfixable.

from doc-linter-webextension.

SebastianZ avatar SebastianZ commented on June 9, 2024

It will not be possible to open the sidebar without user interaction due to a design choice.

Yes, very sadly I was not able to convince people that this should work without user interaction.

It will be possible to open the sidebar programmatically but always with an user interaction.

That would be a good compromise. Though please note bug 1343817, where opening it programmatically was rejected, and new bugs for APIs requiring user interaction didn't get filed yet, as far as I can see (or they are just not referred to from that bug).

Sebastian

from doc-linter-webextension.

MatonAnthony avatar MatonAnthony commented on June 9, 2024

This bug https://bugzilla.mozilla.org/show_bug.cgi?id=1341126 is about opening the sidebar with user interaction.

from doc-linter-webextension.

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.