Skip to content

NamedNodeMap check causes Firefox Gecko <34 to crash #65

Description

@schugh

Need to add typeof check before attempting to evaluate NamedNodeMap

var isNamedNodeMap = source && (source.constructor.name === "NamedNodeMap" || source instanceof NamedNodeMap)

to

var isNamedNodeMap = source && (source.constructor.name === "NamedNodeMap" || (typeof NamedNodeMap != 'undefined' && source instanceof NamedNodeMap));

Activity

  1. schugh commented on Jan 11, 2017

    @schugh
    Author

    Any word on this? Should be a direct swap out of the line. We still have number non-trivial number of folks that can't our web app because of this

  2. tocker commented on Jan 15, 2017

    @tocker
    Contributor

    Fixed by #67

  3. schugh commented on Jan 16, 2017

    @schugh
    Author

    Thanks for getting to this; seems that the fix isn't complete though.

    You still need the typeof check in both if blocks (original post) to prevent attempted evaluation of NamedNodeMap object crashing the webpage.

    image

    Do give it a test run in a Mozilla browser pre 34 to reproduce the behavior: https://ftp.mozilla.org/pub/firefox/releases/33.1/

  4. eitanp461 commented on Jan 17, 2017

    @eitanp461
    Contributor

    Hi

    The fix was verified on Firefox 33 before the merge.
    Since we haven't published a release yet, you'll have to adjust your bower.json to install the fixed version manually:

    Replace "cloudinary_ng": "~1.0.0" with "cloudinary_ng": "#c7301f0" in your bower.json and run bower install to get the latest code.

    Let me know if it works for you.

  5. schugh commented on Jan 17, 2017

    @schugh
    Author
  6. schugh commented on Jan 17, 2017

    @schugh
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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