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

www.virustotal.com - Selected text copied adds a whitespace when pasted #46965

Closed
webcompat-bot opened this issue Dec 21, 2019 · 4 comments
Closed
Labels
browser-firefox engine-gecko The browser uses the Gecko rendering engine priority-normal severity-minor The site has a cosmetic issue.
Milestone

Comments

@webcompat-bot
Copy link

URL: https://www.virustotal.com/gui/file/a4270ab091360d45ad089295c8a638125f3dbc710c0af6104fa554396f4c6636/details

Browser / Version: Firefox 71.0
Operating System: Mac OS X 10.14
Tested Another Browser: Yes

Problem type: Something else
Description: Selected text copied in Firefox has whitespace
Steps to Reproduce:
Select and copy a hash text in Firefox (see screenshot)

In Firefox, the copied text has leading and trailing whitespace even though the selection was just on text.

In Chrome, only the text is copied as expected

The whitespace from Firefox can cause unexpected behaviour when pasting the text into other places
Screenshot Description

Browser Configuration
  • None

Submitted in the name of @wesinator

From webcompat.com with ❤️

@webcompat-bot webcompat-bot added this to the needstriage milestone Dec 21, 2019
@webcompat-bot webcompat-bot added browser-firefox engine-gecko The browser uses the Gecko rendering engine priority-normal labels Dec 21, 2019
@softvision-oana-arbuzov softvision-oana-arbuzov added the severity-minor The site has a cosmetic issue. label Dec 23, 2019
@softvision-oana-arbuzov softvision-oana-arbuzov changed the title www.virustotal.com - see bug description www.virustotal.com - Selected text copied adds a whitespace when pasted Dec 23, 2019
@softvision-oana-arbuzov
Copy link
Member

Thanks for the report, I was able to reproduce the issue. Pasting the coped text in the "Search" field, adds a white space after the text.

Tested with:
Browser / Version: Firefox Nightly 73.0a1 (2019-12-22)
Operating System: Windows 10 Pro

Moving to Needsdiagnosis for further investigation.

@karlcow
Copy link
Member

karlcow commented Jan 2, 2020

This is the HTML as rendered in Gecko.

<a class="">
                          <div hidden="">
                            
                          </div>
                          a4270ab091360d45ad089295c8a638125f3dbc710c0af6104fa554396f4c6636
                        </a>

And this is what is returned with two different methods:

temp0.innerText
"a4270ab091360d45ad089295c8a638125f3dbc710c0af6104fa554396f4c6636"
temp0.textContent
"
                          
                            
                          
                          a4270ab091360d45ad089295c8a638125f3dbc710c0af6104fa554396f4c6636
                        "

When I double click on it and copy/paste:

 a4270ab091360d45ad089295c8a638125f3dbc710c0af6104fa554396f4c6636 

I get a leading space and a trailing space which are both not visible on the selection

Screenshot Description

There is an open issue about this.

@karlcow
Copy link
Member

karlcow commented Jan 2, 2020

Close as duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1043118

@lock
Copy link

lock bot commented Jan 17, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue at https://webcompat.com/issues/new if you are experiencing a similar problem.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
browser-firefox engine-gecko The browser uses the Gecko rendering engine priority-normal severity-minor The site has a cosmetic issue.
Projects
None yet
Development

No branches or pull requests

3 participants