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

Enable Context Menu on Chrome to inspect React Component #18939

Closed
wants to merge 3 commits into from
Closed

Enable Context Menu on Chrome to inspect React Component #18939

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 17, 2020

Towards #18822

This PR adds a context menu on chrome. Clicking on the menu, react component is selected on Components tab.

It is my first PR, will need guidance.

TrimmedVideo

@facebook-github-bot
Copy link

Hi @asheshvidyut7!

Thank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@ghost ghost changed the title Chrome right click inspect React component Chrome right click Inspect React component Context Menu May 17, 2020
@ghost ghost changed the title Chrome right click Inspect React component Context Menu Chrome right click 'Inspect React component' Context Menu May 17, 2020
@ghost ghost changed the title Chrome right click 'Inspect React component' Context Menu Enable Context Menu on Chrome to inspect React component May 17, 2020
@ghost ghost changed the title Enable Context Menu on Chrome to inspect React component Enable Context Menu on Chrome to inspect React Component May 17, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented May 17, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8f40aad:

Sandbox Source
React Configuration

@sizebot
Copy link

sizebot commented May 17, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 8f40aad

@sizebot
Copy link

sizebot commented May 17, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 8f40aad

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@ghost ghost marked this pull request as ready for review May 17, 2020 07:11
Copy link

@rmdias rmdias left a comment

Choose a reason for hiding this comment

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

That’s a nice improvement for developer experience 🙂

@bvaughn bvaughn self-assigned this Jul 13, 2020
@@ -40,7 +40,7 @@
"persistent": false
},

"permissions": ["file:///*", "http://*/*", "https://*/*"],
"permissions": ["file:///*", "http://*/*", "https://*/*", "contextMenus"],
Copy link
Contributor

Choose a reason for hiding this comment

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

New permission added only to the Chrome manifest? How does this impact Firefox and Edge?

Can we add this new permission as an optional_permissions instead?

Maybe we could add an item to the settings menu, e.g. "Enable context menu", that prompts the user to grant the permission. It's not as convenient or discoverable but I'm wary about adding new required permissions. Might cause problems or complaints for people updating.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes that's true. I think chrome will disable the extension, saying that the extension has been disabled as it requires additional permissions. Have to check if contextMenus can be requested as an optional permission. I think it should be

Copy link
Member

Choose a reason for hiding this comment

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

@sktguha any update?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh hi @rickhanlonii , actually I didn't work on this, I was just giving some PR comments.
I think @asheshvidyut7 is the author of the PR.

But I think contextMenu permission can be an optional permission as per the text below
https://developer.chrome.com/docs/extensions/reference/permissions/#step-2-declare-optional-permissions-in-the-manifest:~:text=Most%20Chrome%20extension%20permissions%20can%20be%20specified%20as%20optional%2C%20with%20the%20following%20exceptions.

@stale
Copy link

stale bot commented Jun 11, 2021

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Jun 11, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

@stale stale bot closed this Jan 9, 2022
@nt294
Copy link

nt294 commented Oct 1, 2024

Is this still planned at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Resolution: Stale Automatically closed due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants