Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NS_ERROR_FAILURE in Firefox #105

Closed
arvinsim opened this issue Mar 26, 2015 · 2 comments
Closed

NS_ERROR_FAILURE in Firefox #105

arvinsim opened this issue Mar 26, 2015 · 2 comments
Labels

Comments

@arvinsim
Copy link

I have somewhat the same problem with the other guy.

I am using version 3.1.1
I get an NS_ERROR_FAILURE error on line 361 in the unminified version of the file. This only
happens in Firefox only and not in Chrome.

...
    // Force updating CTM
    this.updateCTMOnNextFrame()

    this.options.svg.removeAttribute('viewBox')
} else {
    var bBox = this.viewport.getBBox(); // <-- error is triggered here.

    // Cache viewbox sizes
    this.viewBox.x = bBox.x;
    this.viewBox.y = bBox.y;
    this.viewBox.width = bBox.width
    this.viewBox.height = bBox.height
...

This fiddle might be a clue on what is going on.

@bumbu bumbu added the bug label Mar 26, 2015
@bumbu
Copy link
Owner

bumbu commented Mar 26, 2015

Thanks for this bug report but from what I can see it is not related to svg-pan-zoom library.

From what I found there are similar reports on bugzilla.mozilla.org. Some of them are related to this error when element is not displayed display="none". Now I don't see why you would want to have your viewport hidden. The sole reason of viewport is to interact with it.

Maybe you want to achieve something specific that may be done in some other way?

p.s. You should be able to safely update to 3.1.3 (3.1.2 contains a bug fix for Firefox). There are no breaking changes from 3.1.1 to 3.1.3

@bumbu bumbu closed this as completed Mar 26, 2015
@arvinsim
Copy link
Author

After further investigation, you are right. I styled the root attribute to overflow:hidden; and it is the cause of this error.

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

No branches or pull requests

2 participants