Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use page action instead of browser action #7

Open
MaybeThisIsRu opened this issue May 14, 2021 · 1 comment
Open

Use page action instead of browser action #7

MaybeThisIsRu opened this issue May 14, 2021 · 1 comment

Comments

@MaybeThisIsRu
Copy link
Contributor

I'm new to web extensions. While working on #5, I came across the difference between a page action and a browser action. This MDN page section lists the differences.

Key to note is that linkding bookmarks current page: that neatly fits into the definition of a page action. Especially once you look at the table presented on the MDN page itself:

image

I'm unsure how Chrome would handle this, or how it translates to mobile browsers. I'll follow up soon with some more research. In the meantime, curious to hear more thoughts on this from the community.

One thing a page action would definitely require is a monochrome icon like these other ones (Pocket, Firefox's native bookmark page icon):

image

@sissbruecker
Copy link
Owner

I have no opinions on this, however seeing that things "just work" ATM, I don't see an issue. Definitely needs checking with Chrome, I don't think I've seen anything like this in their URL bar. In general web extensions are not really a standard, and the recommendations on MDN may only refer to best practices for Firefox addon developers. At some point Mozilla decided to move away from their old extension model and then adapted like 99% of what Chrome already had as API while adding some of their own stuff. So while most of it works in both there are differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants