-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Wrap copy clean link hotkey replacement to a feature flag #29177
Comments
Yes, please! That would solve the issue #29128 :) |
I would argue it should be the other way around: 'ctrl+c' should copy by default, and the feature flag should enable switching to 'copy sanitized links' - thanks! |
@brave/qa-team should verify this on Win, Linux and macOS. On macOS should verify on both Intel and M1. |
The above requires |
Verified with
Confirmed flag is available with Default - PASSEDRan through the below steps to confirm expected locations of "Copy clean link" option from macOS app menu, context menu, share menu, and keyboard shortcut (Cmd + C on macOS):
Disabled - PASSEDCase A: Ran through appropriate cases on https://fmarier.github.io/brave-testing/copy-clean-link.html to confirm functionality still works with the keyboard shortcut disabled. (spot check of "Copy clean link" functionality) Case B: Ran through the below steps to confirm expected locations of "Copy clean link" option and confirm that keyboard shortcut (Cmd + C on macOS) is not used for "Copy clean link":
Enabled - PASSEDCase A: Ran through appropriate cases on https://fmarier.github.io/brave-testing/copy-clean-link.html to confirm functionality works as expected with the keyboard shortcut enabled. (spot check of "Copy clean link" functionality) Case B: Ran through the below steps to confirm expected locations of "Copy clean link" option and confirm that keyboard shortcut (Cmd + C on macOS) is used for "Copy clean link":
|
Verification passed on
Default - PASSEDRan through the below steps to confirm expected locations of "Copy clean link" option from, context menu, share menu, and keyboard shortcut:
Disabled - PASSEDCase A: Ran through appropriate cases on https://fmarier.github.io/brave-testing/copy-clean-link.html to confirm functionality still works with the keyboard shortcut disabled. (spot check of "Copy clean link" functionality) Case B: Ran through the below steps to confirm expected locations of "Copy clean link" option and confirm that keyboard shortcut is not used for "Copy clean link":
Enabled - PASSEDCase A: Ran through appropriate cases on https://fmarier.github.io/brave-testing/copy-clean-link.html to confirm functionality works as expected with the keyboard shortcut enabled. (spot check of "Copy clean link" functionality) Case B: Ran through the below steps to confirm expected locations of "Copy clean link" option and confirm that keyboard shortcut is used for "Copy clean link":
|
Verified with
Confirmed flag is available with Default - PASSEDRan through the below steps to confirm expected locations of "Copy clean link" option from macOS app menu, context menu, share menu, and keyboard shortcut (Cmd + C on macOS):
Disabled - PASSEDCase A: Ran through appropriate cases on https://fmarier.github.io/brave-testing/copy-clean-link.html to confirm functionality still works with the keyboard shortcut disabled. (spot check of "Copy clean link" functionality) Case B: Ran through the below steps to confirm expected locations of "Copy clean link" option and confirm that keyboard shortcut (Cmd + C on macOS) is not used for "Copy clean link":
Enabled - PASSEDCase A: Ran through appropriate cases on https://fmarier.github.io/brave-testing/copy-clean-link.html to confirm functionality works as expected with the keyboard shortcut enabled. (spot check of "Copy clean link" functionality) Case B: Ran through the below steps to confirm expected locations of "Copy clean link" option and confirm that keyboard shortcut (Cmd + C on macOS) is used for "Copy clean link":
|
Verification
|
Brave | 1.49.128 Chromium: 111.0.5563.110 (Official Build) (64-bit) |
---|---|
Revision | 3da375c9e9e5ad9b556af5df708a6e6c01d8cfb1-refs/branch-heads/5563@{#1202} |
OS | Windows 10 Version 22H2 (Build 19045.2728) |
Confirmed flag is available with 1.49.128
. Note, flag name/title is different than PR description. Confirmed what is shown in browser is correct:
Default - PASSED
Ran through the below steps to confirm expected locations of "Copy clean link" option from context menu, share menu, and keyboard shortcut (Ctrl + C on Windows):
- Confirmed value of
Default
forbrave://flags/#brave-copy-clean-link-by-default
- Visited
https://dev-pages.bravesoftware.com/clean-urls/?brave_testing1=foo&brave_testing2=bar&brave_testing3=keep&&;b&d&utm_content=removethis&e=&f=g&=end
- Right-clicked the URL and confirmed "Copy clean link" with Ctrl +C as the shortcut in the context menu
- Confirmed "Copy clean link" is displayed in the share menu from URL bar
- Used "Ctrl + C" while the URL bar is in focus to copy the URL
- Opened a new tab and pasted the copied URL
- Confirmed link is
https://dev-pages.bravesoftware.com/clean-urls/?brave_testing3=keep&&;b&d&e=&f=g&=end
as per the original issue verification from "Copy clean URL" feature #23315 - Opened a new tab and visited
https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
- Used "Ctrl + C" while the URL bar is in focus to copy the URL
- Opened a new tab and pasted the copied link
- Confirmed link pasted is
https://twitter.com/LBC/status/1577628501364146176
as per the original issue verification from "Copy clean URL" feature #23315
Step 0 | Step 2 | Step 3 | Step 6 | Step 7 | Step 10 |
---|---|---|---|---|---|
Disabled - PASSED
Case A: Ran through appropriate cases on https://fmarier.github.io/brave-testing/copy-clean-link.html to confirm functionality still works with the keyboard shortcut disabled. (spot check of "Copy clean link" functionality)
Case B: Ran through the below steps to confirm expected locations of "Copy clean link" option and confirm that keyboard shortcut (Ctrl + C on Windows) is not used for "Copy clean link":
- Confirmed value of
Disabled
forbrave://flags/#brave-copy-clean-link-by-default
- Visited
https://dev-pages.bravesoftware.com/clean-urls/?brave_testing1=foo&brave_testing2=bar&brave_testing3=keep&&;b&d&utm_content=removethis&e=&f=g&=end
- Right-clicked the URL and confirmed "Copy clean link" is in the context menu
- Confirmed "Copy clean link" is displayed in the share menu from URL bar
- Used "Ctrl + C" while the URL bar is in focus to copy the URL
- Opened a new tab and pasted the copied URL
- Confirmed link pasted is the original URL with all parameters:
https://dev-pages.bravesoftware.com/clean-urls/?brave_testing1=foo&brave_testing2=bar&brave_testing3=keep&&;b&d&utm_content=removethis&e=&f=g&=end
- Opened a new tab and visited
https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
- Used "Ctrl + C" while the URL bar is in focus to copy the URL
- Opened a new tab and pasted the copied link
- Confirmed link pasted is the original URL with all parameters
https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
Step 0 | Step 2 | Step 3 | Step 6 | Step 7 | Step 10 |
---|---|---|---|---|---|
Enabled - PASSED
Case A: Ran through appropriate cases on https://fmarier.github.io/brave-testing/copy-clean-link.html to confirm functionality works as expected with the keyboard shortcut enabled. (spot check of "Copy clean link" functionality)
Case B: Ran through the below steps to confirm expected locations of "Copy clean link" option and confirm that keyboard shortcut (Ctrl + C on Windows) is used for "Copy clean link":
- Confirmed value of
Default
forbrave://flags/#brave-copy-clean-link-by-default
- Visited
https://dev-pages.bravesoftware.com/clean-urls/?brave_testing1=foo&brave_testing2=bar&brave_testing3=keep&&;b&d&utm_content=removethis&e=&f=g&=end
- Right-clicked the URL and confirmed "Copy clean link" is in the context menu
- Confirmed "Copy clean link" is displayed in the share menu from URL bar
- Used "Ctrl + C" while the URL bar is in focus to copy the URL
- Opened a new tab and pasted the copied URL
- Confirmed link is
https://dev-pages.bravesoftware.com/clean-urls/?brave_testing3=keep&&;b&d&e=&f=g&=end
as per the original issue verification from "Copy clean URL" feature #23315 - Opened a new tab and visited
https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
- Used "Ctrl + C" while the URL bar is in focus to copy the URL
- Opened a new tab and pasted the copied link
- Confirmed link pasted is
https://twitter.com/LBC/status/1577628501364146176
as per the original issue verification from "Copy clean URL" feature #23315
Step 0 | Step 2 | Step 3 | Step 6 | Step 7 | Step 10 |
---|---|---|---|---|---|
100% We've already had multiple users ditch Brave because of this change. |
Totally agree. You can't just switch universally used shortcut to something only a handful people find useful. I lost productive time and sanity and almost switched back to Chrome before finding this thread and the flag. Whoever thought this was a good idea didn't have their brightest moment. |
This is coming in a follow-up PR: brave/brave-core#17752 |
We replace default
ctrl+c
hotkey to copy sanitized links by default, need to add a feature flag to let users use default logic if needed.The text was updated successfully, but these errors were encountered: