Skip to content

chrome extensions can cause runtime exceptions due to elm.fullscreen  #44

@justgage

Description

@justgage

elm.fullscreen attaches to body. Sadly a lot of chrome extensions actually inject things into the body. This causes errors because the virtual dom goes out so sync with the real dom (that's been messed with). This causes the following error:

(this is an onClick event however anything that changes the dom will mess with it)

error



Main.elm:6446 Uncaught TypeError: Cannot read property 'childNodes' of undefinedaddDomNodesHelp 
@ Main.elm:6446addDomNodesHelp 
@ Main.elm:6454addDomNodesHelp
 @ Main.elm:6454addDomNodesHelp
 @ Main.elm:6454addDomNodes 
@ Main.elm:6400applyPatches 
@ Main.elm:6482updateIfNeeded 
@ Main.elm:5855requestAnimationFrame (async)registerVirtualNode
 @ Main.elm:5834(anonymous function) 
@ Main.elm:3000step 
@ Main.elm:2737work 
@ Main.elm:2793setTimeout (async)enqueue 
@ Main.elm:2782rawSend 
@ Main.elm:2633enqueue
 @ Main.elm:3012eventHandler
 @ Main.elm:6049

I would propose that Elm.fullscreen actually make a "elm-html" div to embed itself into rather using the body itself. I think this would help prevent people from messing with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions