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

add context menu support #731

Merged
merged 6 commits into from
Sep 19, 2021
Merged

add context menu support #731

merged 6 commits into from
Sep 19, 2021

Conversation

Sneezry
Copy link
Member

@Sneezry Sneezry commented Sep 2, 2021

No description provided.

@codecov
Copy link

codecov bot commented Sep 2, 2021

Codecov Report

Merging #731 (03ba41f) into dev (c4ebe87) will increase coverage by 0.03%.
The diff coverage is 17.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #731      +/-   ##
==========================================
+ Coverage   18.34%   18.37%   +0.03%     
==========================================
  Files          17       17              
  Lines        1532     1540       +8     
  Branches      335      337       +2     
==========================================
+ Hits          281      283       +2     
- Misses       1219     1223       +4     
- Partials       32       34       +2     
Impacted Files Coverage Δ
src/popup.ts 5.79% <0.00%> (-0.05%) ⬇️
src/store/Menu.ts 47.36% <0.00%> (-2.64%) ⬇️
src/store/Accounts.ts 9.89% <23.07%> (+0.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4ebe87...03ba41f. Read the comment docs.

@@ -47,6 +47,7 @@
"optional_permissions": [
"<all_urls>",
"clipboardWrite",
"contextMenus",
Copy link
Member

Choose a reason for hiding this comment

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

This is not an allowed optional permission in Firefox. I think it may be best to just remove Firefox support for this feature rather than adding a required permission.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

onclick: (_, tab) => {
let popupUrl = "view/popup.html?popup=true";
if (tab.url && tab.title) {
popupUrl +=
Copy link
Member

Choose a reason for hiding this comment

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

Inconsistent behavior with filtering on example.com:

Screenshot from 2021-09-04 13-31-41

Copy link
Member Author

@Sneezry Sneezry Sep 15, 2021

Choose a reason for hiding this comment

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

Updated

image

return resolve([title, null]);
}

const urlParser = document.createElement("a");
urlParser.href = tab.url;
urlParser.href = url;
Copy link
Member

Choose a reason for hiding this comment

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

We should convert this to URL.hostname rather than messing with the DOM.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

@mymindstorm mymindstorm merged commit 9e9286e into dev Sep 19, 2021
@mymindstorm mymindstorm deleted the context-menu branch September 19, 2021 02:04
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