Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Uncaught TypeError: fnRef.apply is not a function #64

@wienczny

Description

@wienczny

When surfing the web while this chrome extensionis active I get a white page and the following result in console:

Uncaught TypeError: fnRef.apply is not a function polydev/vendor/zone-microtask.js:406
fnNames.map.forEach.global.zone.(anonymous function).arguments.(anonymous function) @ polydev/vendor/zone-microtask.js:406
(anonymous function) @ polydev/vendor/zone-microtask.js:98
run @ polydev/vendor/zone-microtask.js:118
zoneBoundFn @ polydev/vendor/zone-microtask.js:91

The page causing this is a login success page and not using polymer at all. It's using a form and javascript to forward a security token to another page. The important parts look like this:

<form method="POST" name="hiddenform" action="..."><input type="hidden" name="wa" value="wsignin1.0" /><input type="hidden" name="wresult" value="..." /><input type="hidden" name="wctx" value="..." /><noscript><p>Script is disabled. Click Submit to continue.</p><input type="submit" value="Submit" /></noscript></form>
<script language="javascript">window.setTimeout('document.forms[0].submit()', 0);</script>

(The sensitive values have been replaced by ...)

Using a breakpoint in zone-microtask:406 you can see that the apply is called on "document.forms[0].submit()"
Is this bug caused by window.setTimeout(...)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions