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

Chromium support #38

Merged
merged 31 commits into from
Jan 23, 2022
Merged

Chromium support #38

merged 31 commits into from
Jan 23, 2022

Conversation

Stvad
Copy link
Collaborator

@Stvad Stvad commented Dec 19, 2021

#13 Currently at the level of PoC (that works)

Relies on #34, so would become more legible when that is merged

Todo

Blocking:

  • Fix Chrome Store svg issue
  • Update repo description & wikidata page for extension
  • Update readme
  • Interfaces for opening/closing sidebar
    • Shortcut to toggle sidebar (configurable, Alt-3 is a default value
    • Show/hide on extension button
  • Decide on approach to cross-compatibility with proper FF sidebar
  • Handle all navigation cases (rn only match_event is handled)
  • Fix all todos and incompatibilities
  • Coordinate on publishing to Chrome store

Follow-up:

Issues

  • Overlay captures all mouse events for some reason
  • image

@Stvad Stvad force-pushed the chromium branch 2 times, most recently from 0fa63b1 to d28753a Compare December 19, 2021 20:35
@Stvad
Copy link
Collaborator Author

Stvad commented Dec 20, 2021

As part of the gradual deprecation of Manifest V2, the Chrome Web Store will stop accepting submissions of new Manifest V2 extensions after January 17, 2022

v3 has a bunch of breaking changes without much benefit afaik, so would be nice if we can publish some version before Jan 17 to avoid having to deal with that for a while

@Stvad
Copy link
Collaborator Author

Stvad commented Dec 21, 2021

Also hitting https://stackoverflow.com/questions/36478250/cannot-access-wikidata-api because in the context of content-script fetch becomes a CORS request and wikidata api blocks those for some reason.
Still figuring out what can be done here without having to do all the fetching in the background or something which would be painful 🤔

Seems they broke it in Chrome specifically and kind of recently =\ https://www.chromium.org/Home/chromium-security/extension-content-script-fetches

@Stvad
Copy link
Collaborator Author

Stvad commented Dec 21, 2021

ah, so apparently can work around that by adding &origin=* urlstring param. From https://phabricator.wikimedia.org/T62835

@Stvad Stvad force-pushed the chromium branch 4 times, most recently from e7fa033 to 5711c13 Compare December 25, 2021 20:24
tabStates[tid].sidebarOpen = false;
}
} else {
openEnitiyInNewTab(tabStates[tid].entity);
//todo need better handling here if we actually want "open in new tab" behavior in some cases
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fuddl do we want that behavior?
I see a few commits on having "an alternative to sidebar" but I'm note entirely sure what was the overall vision there 🤔

@fuddl fuddl mentioned this pull request Dec 28, 2021
@Stvad Stvad force-pushed the chromium branch 2 times, most recently from 03f730e to 5b4cb0d Compare December 30, 2021 22:52
@Stvad Stvad changed the title [WIP] Chromium support #13 Chromium support #13 Jan 22, 2022
@Stvad Stvad mentioned this pull request Jan 22, 2022
@Stvad Stvad changed the title Chromium support #13 Chromium support Jan 23, 2022
@fuddl fuddl merged commit 33c94e0 into fuddl:master Jan 23, 2022
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

Successfully merging this pull request may close these issues.

2 participants