Implement "Copy Link to Highlight" links
Categories
(Firefox :: Menus, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox137 | --- | fixed |
People
(Reporter: mjurgens, Assigned: jabramson)
References
(Depends on 2 open bugs, Blocks 1 open bug, Regressed 1 open bug)
Details
(Keywords: parity-chrome, parity-safari, Whiteboard: [fidefe-quality-foundations])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
It would be extremely useful if Firefox would support Chrome's "Copy Link to Highlight" feature.
Leaving this feature out of Firefox gives users one more reason to switch to a Chromium-based browser and stay there.
https://support.google.com/chrome/answer/10256233?hl=en&co=GENIE.Platform%3DDesktop
This appears to have been implemented as an extension here https://addons.mozilla.org/en-US/firefox/addon/link-to-text-fragment/ but is only somewhat useful as it does not have guaranteed ubiquity - you need to have both parties involved in the link sharing/viewing with this ability.
| Reporter | ||
Comment 1•3 years ago
|
||
What is the best way to submit this enhancement request for all Firefox platforms/editions/versions/platforms eg Firefox for Android?
Duplicate item and change Product/platform?
As previously stated this is most useful if it is ubiquitous
Comment 2•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Note that this depends on bug 1753933 for us to be able to load the generated links, and the frontend code, when it exists, should verify that the document policy for the page allows loading text fragment links before offering to generate them.
Updated•3 years ago
|
Comment 4•2 years ago
|
||
Per comment 3, this is a front-end feature which depends on bug 1753933 for the underlying platform support.
Comment 5•1 year ago
|
||
I would add that when Chrome generates "Copy link to Highlight" URLs, like this one: https://ised-isde.canada.ca/cc/lgcy/popMsg.html#bsnssnmbr:~:text=The%20Business%20Number%20(BN)%20is%20part, it also includes the anchor, but Firefox does not recognize the anchor either (presumably because it is including everything after the '#'?).
Perhaps an intermediate step is to support just jumping to anchor, while waiting for the full feature.
Comment 6•1 year ago
|
||
Hi Kyle,
thank you for the suggestion. I've filed Bug 1890733 for this, this should ride the next release train.
Comment 7•1 year ago
|
||
Could I also recommend alongside this feature the complimentary "Remove highlight" context menu item? It simply unhighlights the fragment when visiting a page with one, much like the Chrome implementation.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 10•1 year ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1779688#a71336434_430528
cpeterson@mozilla.com, this isn't a duplicate. Fragment directives direct the user to a string, which can vary at any time for any reason. IDs on a lot pages are deliberarely persistent.
Comment 11•1 year ago
|
||
*deliberately
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 12•1 year ago
|
||
Comment 14•11 months ago
|
||
This patch adds context menu entries to create a link to the current selection
of a site ("Text Fragment") and copies it to the clipboard.
Furthermore, if any Text Fragments are visible on the page,
it adds a context menu entry to remove these highlights.
This patch was mostly written by :jabramson.
Comment 15•10 months ago
|
||
Comment 16•10 months ago
|
||
Backed out for causing mochitests failures in browser_copy_link_to_highlight.js.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js | uncaught exception - NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIIOService.createExposableURI] at copyStrippedLink@chrome://browser/content/nsContextMenu.sys.mjs:2314:19
Comment 17•10 months ago
|
||
Try run with a fix: https://treeherder.mozilla.org/jobs?repo=try&revision=73c821f7515dce19e321551627c344e0b0a9a5fa
Comment 18•10 months ago
|
||
Comment 19•10 months ago
|
||
Backed out for causing devtools failures in browser_jsterm_autocomplete_mapped_variables.js.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | devtools/client/webconsole/test/browser/browser_jsterm_autocomplete_mapped_variables.js | Autocomplete popup displays original variable name when entering a complete variable name -
Comment 20•10 months ago
|
||
Updated•10 months ago
|
Comment 21•10 months ago
|
||
| bugherder | ||
Comment 22•10 months ago
|
||
Please consider requesting a release note for this feature.
Comment 23•10 months ago
|
||
This is still behind dom.text_fragments.create_text_fragment.enabled which is disabled by default everywhere, so maybe too early to have a release note?
Comment 24•10 months ago
|
||
Yes, this is currently behind a pref and will likely require QA testing before being released.
Description
•