kentonv changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Have a question but no one is here? Try asking in the discussion group: https://groups.google.com/group/sandstorm-dev
<isd>
So I just hit a really bizarre bug affecting my dnd grid app on firefox.
<isd>
I implemented drag and drop, and when you "drop" a unit onto a different square... the grain pops out of the iframe!
<isd>
like, the browser reloads the tab with no iframe around the grain.
<isd>
Doesn't happen in chromium. Page doesn't refresh if I do this not already in the iframe.
<isd>
Not sure what to make of it.
<kentonv>
isd, I'm guessing that when you "drag" from the grain, firefox is interpreting it as dragging a link, and when you drop, it's intepreting it as "please open the link in this window"
<kentonv>
it's pretty normal for browsers to interpret dragging and dropping a link into another browser window as "open link here"
<kentonv>
if the drag "source" happens to be an <a> element, this seems likely. You may be able to fix it by making it not an <a> element.
<isd>
That makes a certain amount of sense.
<kentonv>
if I'm right, it is still a firefox bug in that normally that behavior shouldn't apply when dragging within a window
<isd>
(though in this case it's dropping into the same browser window)
<isd>
It seems to work to use preventDefault() on the drop event.
sesscon has quit [Quit: Connection closed]
wings has joined #sandstorm
wings has quit [Client Quit]
wings has joined #sandstorm
xet7 has quit [Quit: Leaving]
xet7 has joined #sandstorm
vertigo_38 has quit [Ping timeout: 256 seconds]
vertigo_38 has joined #sandstorm
vertigo_38 has quit [Ping timeout: 258 seconds]
vertigo_38 has joined #sandstorm
vertigo_38 has quit [Ping timeout: 256 seconds]
vertigo_38 has joined #sandstorm
vertigo_38 has quit [Ping timeout: 256 seconds]
dckc has quit [Ping timeout: 260 seconds]
dckc has joined #sandstorm
vertigo_38 has joined #sandstorm
frigginglorious has joined #sandstorm
frigginglorious1 has joined #sandstorm
frigginglorious has quit [Ping timeout: 272 seconds]
frigginglorious1 is now known as frigginglorious
<abliss>
pty update: the gvisor codebase includes a bunch of tests for linux's pty functionality, which is awesome. i've managed to build them (ugh, bazel) and can run them with my shim. After a bit of hacking I was even able to make the first one pass. (The second currently hangs, but I'm pretty thrilled with this progress).
<abliss>
(ah, it's hanging because it expects an extra \n to be generated by the line discipline, which is currently still stubbed out. good!)
<abliss>
now I need to figure out how to wire up the go backend daemon (which my LD_PRELOAD shim talks to) to the line discipline and ioctl support provided in the gvisor codebase