Giter Site home page Giter Site logo

Comments (16)

fgnass avatar fgnass commented on June 11, 2024

Can you send me a link to an example?
Is the content of your iframe loaded from the same domain as spin.js?

from spin.js.

dhaval2025 avatar dhaval2025 commented on June 11, 2024

Hey I am sorry but I don't have a public link yet, but I can tell you that the iframe url is www.Adomain.com,

but all the markup, scripts and stylesheets within the iFrame load from www.Bdomain.com.

Also this works great on chrome and ie7+

from spin.js.

dhaval2025 avatar dhaval2025 commented on June 11, 2024

Update::

Hi,
Just wanted to give you an update that It hasn't been working on any firefox, Till now I was just trying on 7.0.x but I just tried on other Firefox versions and haven been getting the same security error on Line 64 of spin.js

Thanks
Dhaval

from spin.js.

runtalan avatar runtalan commented on June 11, 2024

I'm also having the same issue.

I think this is happening on Line 58 for me -- with respect to "sheet.insertRule"

It looks like a Cross-Domain issue. In my specific case, my JS/CSS are hosted on CDN (different domain).

from spin.js.

fgnass avatar fgnass commented on June 11, 2024

Hm, I wonder if inserting <style type="text/css">/* CSS rules here */</style> would make any difference.

from spin.js.

fgnass avatar fgnass commented on June 11, 2024

Hi everyone! Could you please try this again with the current HEAD? It contains a fix for issue #39 which is probably related to this error.

I noticed that in FF documents.styleSheets[documents.styleSheets.length-1] always is the Firebug CSS (if installed), which might also explain the security error. If that's the case, the patch for issue #39 should fix this, too.

from spin.js.

runtalan avatar runtalan commented on June 11, 2024

While it fixes the error in Firefox, this creates a new issue in Safari.

. line: 61
. message: "'undefined' is not an object (evaluating 'sheet.insertRule')"
. sourceId: 4743268672
. sourceURL: "http://localhost/lib/Javascript/spin.js"

from spin.js.

fgnass avatar fgnass commented on June 11, 2024

Unfortunately I still can't reproduce this issue. Viewing example.html (from the master branch) works in Safari (5.1.1) even if I load spin.js from another domain (raw.github.com vs. localhost) or include an external stylesheet. @phishbot Any chance you could post a link to a non-working example?

from spin.js.

eych avatar eych commented on June 11, 2024

One more idea how this can be fixed — 974cdd3#commitcomment-681824

from spin.js.

fgnass avatar fgnass commented on June 11, 2024

I pushed another version to the master branch which uses the sheet or styleSheet property of the inserted style element. Still needs some more cross-browser testing. Let me know whether this works for you.

from spin.js.

runtalan avatar runtalan commented on June 11, 2024

This is still an issue for me in Firefox 7.0; it works fine in Firefox 3.6 , Chrome, and Safari.

You can see it broken here:

http://beta.tumblecloud.com/cloudpage/?cloud=438

from spin.js.

runtalan avatar runtalan commented on June 11, 2024

One note : it works if you have Firebug up, but is broken without it.

from spin.js.

runtalan avatar runtalan commented on June 11, 2024

here is another test link which is more accurate
http://unstable.dev.tumblecloud.com/cloudpage/?cloud=4705&

from spin.js.

eych avatar eych commented on June 11, 2024

@phishbot http://unstable.dev.tumblecloud.com/lib/Javascript/spin.js doesn't seem to contain the fix from 930bae7

from spin.js.

runtalan avatar runtalan commented on June 11, 2024

woops! it looks like it did fix all our issues with it. Thanks eych!

from spin.js.

christianhaller avatar christianhaller commented on June 11, 2024

thx

from spin.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.