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

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

Open
wienczny opened this issue Sep 17, 2015 · 2 comments
Open

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

wienczny opened this issue Sep 17, 2015 · 2 comments

Comments

@wienczny
Copy link

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(...)?

@shield-9
Copy link

I'm having same issue with Chrome 47.0.2526.73 beta-m

@ebidel
Copy link

ebidel commented Nov 30, 2015

This extension is deprecated in favor of https://github.com/PolymerLabs/polydev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants