GithubHelp home page GithubHelp logo

Comments (7)

JamesMGreene avatar JamesMGreene commented on May 5, 2024

Please go to AboutMyBrowser.com and paste the info from there into a comment on this issue. Thanks!

from zeroclipboard.

mikeknoop avatar mikeknoop commented on May 5, 2024

Also running Adobe Flash 11,6,602,167

from zeroclipboard.

JamesMGreene avatar JamesMGreene commented on May 5, 2024

Also, a few other questions:

  1. I assume your first code snippet would actually have the parents for the setDefaults call, right?
  2. Is your localhost running on HTTP or HTTPS? The SWF and calling site need to be on the same protocol with the current setup.
  3. Try removing the 'localhost' item from your trustedDomains array. Any improvement?
  4. Since you are using Chrome: do you have PepperFlash disabled? If not, please try disabling it to see if the official Abode Flash Player works for this.

from zeroclipboard.

mikeknoop avatar mikeknoop commented on May 5, 2024
  1. Yes, everything is coded correctly (if I swap the moviePath with a local SWF everything works without error).
  2. localhost on HTTP, remote on HTTPS, I will make these match and see if any improvement.
  3. I tried many combinations of trustedDomains, no luck with any of them (including your suggested one).
  4. PepperFlash is enabled, I will disable and see if any improvement.

from zeroclipboard.

mikeknoop avatar mikeknoop commented on May 5, 2024

(2) Switching to http://d2glos6gx2bw40.cloudfront.net/C8QpR9/images/flash/ZeroClipboard.swf fixed it while served from http://localhost. This would appear to be the crux of the problem which -- I wonder if Flash as a security permission to allow cross-SSL bridges.

(4) Disabling PepperFlash did not improve, I got a slightly different error with the same traceback, though:
Uncaught Error: Error in Actionscript. Use a try/catch block to find error. zeroClipboard.js:178
ZeroClipboard.setSize zeroClipboard.js:178
ZeroClipboard.reposition zeroClipboard.js:256
ZeroClipboard.setCurrent zeroClipboard.js:162
_elementMouseOver zeroClipboard.js:36

Thank you for your help. Our live site is https:// so this issue is closed for me. Hopefully this debugging process will be insightful to folks who stumble across this thread in the future.

from zeroclipboard.

JamesMGreene avatar JamesMGreene commented on May 5, 2024

There is a setting in Flash to control this (allowInsecureDomain) but generally I'd hope we won't have to expose it. For your particular situation, try switching the SWF moviePath URL to a protocol-relative URL, e.g.

ZeroClipboard.setDefaults({
  moviePath: "//d2glos6gx2bw40.cloudfront.net/C8QpR9/images/flash/ZeroClipboard.swf",
  trustedDomains: ['*'],
  allowScriptAccess: "always"
});

This should work on both HTTP and HTTPS by using the same protocol as the page.

from zeroclipboard.

epetre avatar epetre commented on May 5, 2024

I had the same issue, but my problem was an incompatibility with https-everywhere add-on.
It changes to https wherever it can.

They say that chrome should be considered beta at best, so I turned it off.
https://www.eff.org/https-everywhere

from zeroclipboard.

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.