Skip to content

"InternalError: too much recursion" in Firefox during print #409

@williammck

Description

@williammck

Hi! I noticed that when printing in Firefox, InternalError: too much recursion is thrown twice, at the beforeprint and afterprint events. Printing still works fine, but only after about a second of delay once the JS engine stops the infinite recursion.

It's happening here: https://github.com/mkoryak/floatThead/blob/master/src/jquery.floatThead.js#L139, as triggerHandler then again calls the handlers set in that if statement.

This isn't personally causing me an issue (other than filling up my Sentry logs), but I'd imagine for sites with some functionality in the before/after print handlers it could create some trouble.

Reproduction URL: https://mkoryak.github.io/floatThead/ (it occurs on any normal install of floatThead from what I can tell)

Browser: Firefox 59
OS: Windows 10, macOS 10.13
jQuery version: 3.3.1 (latest)
floatThead version: 2.1.1 (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions