-
Notifications
You must be signed in to change notification settings - Fork 25
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
#7228: Add support for sidePanel in the MV3 build #7354
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #7354 +/- ##
==========================================
- Coverage 72.58% 72.52% -0.07%
==========================================
Files 1204 1211 +7
Lines 37650 37827 +177
Branches 7060 7101 +41
==========================================
+ Hits 27330 27433 +103
- Misses 10320 10394 +74 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preliminary self-review.
await rehydrateSidebar({ | ||
tabId, | ||
}); | ||
updateSidebar(contentScriptTarget); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to double-check:
- Is
updateSidebar
equivalent torehydrateSidebar
- Is
updateSidebar
equivalent to the optional part ofshowSidebar
?
<div className="mt-2"> | ||
Looking for the Extension Console?{" "} | ||
<a | ||
href="#" | ||
onClick={async () => { | ||
await browser.runtime.openOptionsPage(); | ||
}} | ||
> | ||
Open the Extension Console | ||
</a> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this was removed by mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was merged into the other component because it was 70% duplicate code and I had to further customize the on click handler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conditionally approved on:
- Extension Console link restored in the restricted browser popup
No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack. Do not edit this comment manually. |
chrome.sidePanel
POC 3 #7320The MV3 sidePanel PR seems stable and working, so the setup seems to be correct.
In this PR I will restore MV2 support on top of the new sidePanel setup.
Next steps
Graham is preparing: https://www.notion.so/pixiebrix/MV3-Side-Panel-Regression-Tests-12495993574541afa987e6d3f9762b67
Plus:
What's not part of this PR