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

Disable Copy Clean link hotkeys for OSX #29303

Closed
spylogsster opened this issue Mar 24, 2023 · 6 comments · Fixed by brave/brave-core#17752
Closed

Disable Copy Clean link hotkeys for OSX #29303

spylogsster opened this issue Mar 24, 2023 · 6 comments · Fixed by brave/brave-core#17752

Comments

@spylogsster
Copy link

Disable feature kBraveCopyCleanLinkByDefault on osx by default

@LaurenWags
Copy link
Member

@brave/qa-team added QA/Test-All-Platforms since we should confirm the following:

  • disabled by default on macOS
  • enabled by default on Windows and Linux

See #29177 verification notes for for examples.

@kjozwiak
Copy link
Member

The above requires 1.49.131 or higher for 1.49.x verification 👍

@LaurenWags
Copy link
Member

LaurenWags commented Mar 27, 2023

Verified with

Brave | 1.49.131 Chromium: 111.0.5563.116 (Official Build) (arm64)
-- | --
Revision | ade86b9472831e26d87fd569e04b404be01e1e2b-refs/branch-heads/5563@{#1209}
OS | macOS Version 12.6.3 (Build 21G419)

Using 1.49.131, confirmed default for brave://flags/#brave-copy-clean-link-by-default was disabled:

0

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 (Cmd + C on macOS) is not used for "Copy clean link":

  1. Confirmed value of "Default" for brave://flags/#brave-copy-clean-link-by-default
  2. 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
  3. Clicked the URL bar and confirmed "Copy clean link" available from macOS app menu and it does NOT have the cmd + C keyboard shortcut (⌘C) listed next to it, this is listed next to "Copy" as expected
  4. Right-clicked the URL and confirmed "Copy clean link" is in the context menu
  5. Confirmed "Copy clean link" is displayed in the share menu from URL bar
  6. Used "Cmd + C" while the URL bar is in focus to copy the URL
  7. Opened a new tab and pasted the copied URL
  8. 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
  9. Opened a new tab and visited https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
  10. Used "Cmd + C" while the URL bar is in focus to copy the URL
  11. Opened a new tab and pasted the copied link
  12. 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 4 Step 7 Step 8 Step 11
0 2 3 4 7 8 11

@stephendonner
Copy link

stephendonner commented Mar 27, 2023

Verification PASSED using

Brave 1.49.131 Chromium: 111.0.5563.116 (Official Build) (x86_64)
Revision ade86b9472831e26d87fd569e04b404be01e1e2b-refs/branch-heads/5563@{#1209}
OS macOS Version 11.7.4 (Build 20G1120)

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 (Command + C on macOS) is not used for "Copy clean link":

  1. Confirmed value of Default for brave://flags/#brave-copy-clean-link-by-default
  2. 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
  3. Clicked the URL and confirmed Copy clean link available from macOS app menu and it does NOT have the "command+c" keyboard shortcut next to it
  4. Right-clicked the URL bar and confirmed Copy clean link is in the context menu
  5. Confirmed "Copy clean link" is displayed in the share menu from URL bar
  6. Used "Command + C" while the URL bar is in focus to copy the URL
  7. Opened a new tab and pasted the copied URL
  8. 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
  9. Opened a new tab and visited https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
  10. Used "Command + C" while the URL bar is in focus to copy the URL
  11. Opened a new tab and pasted the copied link
  12. 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 4 Step 7 Step 8 Step 11
Screen Shot 2023-03-27 at 1 33 32 PM Screen Shot 2023-03-27 at 1 40 40 PM Screen Shot 2023-03-27 at 1 43 35 PM Screen Shot 2023-03-27 at 1 44 49 PM Screen Shot 2023-03-27 at 1 46 02 PM Screen Shot 2023-03-27 at 1 47 35 PM Screen Shot 2023-03-27 at 1 48 45 PM

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Mar 28, 2023

Verification PASSED on

Brave | 1.49.132 Chromium: 111.0.5563.147 (Official Build) (64-bit)
-- | --
Revision | 029fd65a4dd711d1078468ed2206999cec86066b-refs/branch-heads/5563@{#1239}
OS | Windows 10 Version 21H2 (Build 19044.2728)

Verified the comments from #29303 (comment) and ensured Copy clean link is enabled by default on Windows

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):

  1. Confirmed value of Default for brave://flags/#brave-copy-clean-link-by-default
  2. 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
  3. Right-clicked the URL and confirmed "Copy clean link" with Ctrl +C as the shortcut in the context menu
  4. Confirmed "Copy clean link" is displayed in the share menu from URL bar
  5. Used "Ctrl + C" while the URL bar is in focus to copy the URL
  6. Opened a new tab and pasted the copied URL
  7. 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
  8. Opened a new tab and visited https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
  9. Used "Ctrl + C" while the URL bar is in focus to copy the URL
  10. Opened a new tab and pasted the copied link
  11. 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
image image image image image image
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":

  1. Confirmed value of Disabled for brave://flags/#brave-copy-clean-link-by-default
  2. 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
  3. Right-clicked the URL and confirmed "Copy clean link" is in the context menu
  4. Confirmed "Copy clean link" is displayed in the share menu from URL bar
  5. Used "Ctrl + C" while the URL bar is in focus to copy the URL
  6. Opened a new tab and pasted the copied URL
  7. 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
  8. Opened a new tab and visited https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
  9. Used "Ctrl + C" while the URL bar is in focus to copy the URL
  10. Opened a new tab and pasted the copied link
  11. 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
image image image image image image

@btlechowski
Copy link

Verification passed on

Brave 1.49.128 Chromium: 111.0.5563.110 (Official Build) (64-bit)
Revision 3da375c9e9e5ad9b556af5df708a6e6c01d8cfb1-refs/branch-heads/5563@{#1202}
OS Ubuntu 18.04 LTS
Default - PASSED

Ran through the below steps to confirm expected locations of "Copy clean link" option from, context menu, share menu, and keyboard shortcut:

  1. Confirmed value of "Default" for brave://flags/#brave-copy-clean-link-by-default
  2. 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
  3. Right-clicked the URL and confirmed "Copy clean link" is in the context menu
  4. Confirmed "Copy clean link" is displayed in the share menu from URL bar
  5. Used "Control + C" while the URL bar is in focus to copy the URL
  6. Opened a new tab and pasted the copied URL
  7. 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
  8. Opened a new tab and visited https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
  9. Used "Control + C" while the URL bar is in focus to copy the URL
  10. Opened a new tab and pasted the copied link
  11. Confirmed link pasted is https://twitter.com/LBC/status/1577628501364146176 as per the original issue verification from "Copy clean URL" feature #23315
image image image image image
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 is not used for "Copy clean link":

  1. Confirmed value of "Disabled" for brave://flags/#brave-copy-clean-link-by-default
  2. 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
  3. Right-clicked the URL and confirmed "Copy clean link" is in the context menu
  4. Confirmed "Copy clean link" is displayed in the share menu from URL bar
  5. Used "control + C" while the URL bar is in focus to copy the URL
  6. Opened a new tab and pasted the copied URL
  7. 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
  8. Opened a new tab and visited https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
  9. Used "control + C" while the URL bar is in focus to copy the URL
  10. Opened a new tab and pasted the copied link
  11. Confirmed link pasted is the original URL with all parameters https://twitter.com/LBC/status/1577628501364146176?s=20&t=fpVMBMSfgI_pNGQxxpV6bw
image image image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment