Bug 1984006 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Copy Name on the show bug page works for me.

It doesn’t work on User Profile and other pages because `#clip-container` and `#clip` only exist on the Show Bug page. It fails silently because of jQuery.

- [edituser_menu.js#L41-L42](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BMO/web/js/edituser_menu.js#L41-L42)
- [edit.html.tmpl#L176](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl#L176)

These elements are unnecessary because we can instead use the modern [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard) instead of `document.execCommand("copy")`.

I can fix it.
Copy Name on the Show Bug page works for me.

It doesn’t work on User Profile and other pages because `#clip-container` and `#clip` only exist on the Show Bug page. It fails silently because of jQuery.

- [edituser_menu.js#L41-L42](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BMO/web/js/edituser_menu.js#L41-L42)
- [edit.html.tmpl#L176](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl#L176)

These elements are unnecessary because we can use the modern [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard) instead of `document.execCommand("copy")`.

I can fix it.
Copy Name on the Show Bug page works for me.

It doesn’t work on User Profile and other pages because `#clips` only exists on the Show Bug page. It fails silently because of jQuery.

- [edituser_menu.js#L42](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BMO/web/js/edituser_menu.js#L42)
- [edit.html.tmpl#L176](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl#L176)

These elements are unnecessary because we can use the modern [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard) instead of `document.execCommand("copy")`.

I can fix it.
Copy Name on the Show Bug page works for me.

It doesn’t work on User Profile and other pages because `#clip` only exists on the Show Bug page. It fails silently because of jQuery.

- [edituser_menu.js#L42](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BMO/web/js/edituser_menu.js#L42)
- [edit.html.tmpl#L176](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl#L176)

These elements are unnecessary because we can use the modern [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard) instead of `document.execCommand("copy")`.

I can fix it.
Copy Name on the Show Bug page works for me.

It doesn’t work on User Profile and other pages because `#clip` only exists on the Show Bug page. It fails silently because of jQuery.

- [edituser_menu.js#L42](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BMO/web/js/edituser_menu.js#L42)
- [edit.html.tmpl#L176](https://github.com/mozilla-bteam/bmo/blob/cfa7a569cd3e483c4acba07f28d1beb8f19bc08a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl#L176)

These elements are unnecessary because we can use the modern [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard) instead of `document.execCommand("copy")`.

I can volunteer to fix it.

Back to Bug 1984006 Comment 3