topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 2:40 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Chromium bug... turned into a game?  (Read 2559 times)

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
Chromium bug... turned into a game?
« on: September 22, 2015, 07:52 PM »
Courtesy of Make Use Of:

Chrome’s Terrible Bug Turned Into a Game

As of Monday, Chrome is vulnerable to a bug that can crash any tab, just by hovering over links with certain characters in succession. This is obviously terrible, but you know the old saying: when life gives you bugs, make bug-based games.

3030 is a simple game where you move your mouse through a maze of potentially browser-crashing links. Don’t touch a tree!

browser-game.png

https://github.com/szhu/3030/tree/master

From the page
Mouse your way through the map without touching the deadly trees! (Chrome, Opera, etc. only)

WARNING: Do you have important, unsaved work open in other tabs?
You need to close this tab RIGHT NOW. Go save your work. Come back. Enjoy!

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,192
    • View Profile
    • Donate to Member
Re: Chromium bug... turned into a game?
« Reply #1 on: September 22, 2015, 10:51 PM »
My Chrome tab goes to "Aw snap" as soon as I hover anywhere on those images. Tree or not.

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
Re: Chromium bug... turned into a game?
« Reply #2 on: September 23, 2015, 07:24 AM »
My Chrome tab goes to "Aw snap" as soon as I hover anywhere on those images. Tree or not.

Mine did it as advertised.  Not sure why yours is different behaviour.  The code and the rationale behind it is really simple too.

From https://github.com/szhu/3030/blob/master/src/game.py

Code: Python [Select]
  1. yield '[ohai]: http://www.berkeley.edu/'
  2. yield '[onoe]: http://www.stanford.edu/%%30%30'

That's the two lines that replicate the bug.  The bears are linked to berkeley, and the trees are linked to stanford.  And I'm sure there's something behind that. :)

Those are arranged by a python script into arrays with the images, using a map file to position them in markdown.  So with it being that simple, not sure why it wouldn't work.

One caution that I found out the hard way... if you do this too many times, you can corrupt your chrome for any other tabs you have open.  That's why they said close all tabs, even though it only messes with one.  After that, since I had amazon up, when I tried to browse, Amazon would lock up my machine.  I cleared the cache for the last hour... and it started working again.
« Last Edit: September 23, 2015, 07:30 AM by wraith808 »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,747
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Chromium bug... turned into a game?
« Reply #3 on: September 23, 2015, 12:46 PM »
Interesting and clever. :)