#app emptied after middle mouse button click on an image

in #utopian-io8 years ago (edited)

Introduction

I have stumbled upon a strange bug while using Busy, that makes the whole app disappear and can be very dangerous, i.e. it can lead to loss of any data that user entered into comment field under an article.

Steps to reproduce

The problem occurs on Firefox Quantum on Ubuntu. I have checked it, and everything works fine on Chromium. Did not test other combinations. Exact versions available below.

  1. Open any article on Busy that has got some images in the content.
  2. Use the middle mouse button (the scroll wheel) click on the image (by default this is a shortcut to open a link in a new tab).

Upon doing that, all the page content will disappear and you'll only be able to see a white background.

I have also looked up the source of the website, and the #app container is just an empty div—everything gets removed from it.

Additional information

The bug only appears to be happening when the image is also a link. When the image is only inserted and not wrapped in a link, then everything works as expected and a lightbox-like gallery opens up.

The bug is present when using Firefox Quantum 57.0.4 64-bit on Ubuntu 17.10 with X.org as the display manager (I doubt it has anything to do with it, but anyway).

As said before, I tested it on Chromium 62.0.3202.94 64-bit and the bug is not present. I haven't tested it on other browsers nor other operating systems, but I might if you cannot reproduce the bug.

Edit

I have tested in on Windows 10 operating system with Firefox 57.0.4 and the bug is also present.

Demonstration

The post from the demonstration: 27 Spectacular Sports Photos by @photocontests



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thanks for reporting that bug.
I managed to reproduce the issue. I will try to fix this as soon as possible.

Hey @mciszczon I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • This is your first accepted contribution here in Utopian. Welcome!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Could you post the link aswell ? for me to check

Added the link to the post, just below the demonstration video. Posting it also here in the comment: https://busy.org/sportsphotography/@photocontests/photocontests-selection-201801091600021433

The bug is present in other posts too, not just this one.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]