-
Notifications
You must be signed in to change notification settings - Fork 1k
useNoCache: false -- Uncaught Error: Error calling method on NPObject #379
Comments
What browser? Many of them unfortunately have issues loading cached Flash objects correctly, it seems. :( |
Namely IE and Chrome for sure. Not positive on Firefox, Safari, Opera, etc. That's why we keep the default as |
Chrome 33. Thanks. |
I was experiencing this error with flash version greater than |
@jonrohan: O RLY? o_O Hmm, I'll have to take a closer look at what changed for the Flash object (if anything...?). |
I don't see any obvious issue. The only change to the SWF at all was the rudimentary attempt to only trust parameters if they were FlashVars rather than query params: |
I have further anecdotal evidence regarding this issue: I had exactly this problem in both Chrome 36, 37 (OS X) and Firefox 31 (OS X) (although the error message differs of course) when serving the SWF from a CDN with Everything works fine under the following conditions:
And it doesn't work with:
In my case, the CDN was at My understanding is that the root cause is that the flash vars configuration is never executed when retrieving the SWF from the cache -- in the eventuality that
|
@mjtko: Sorry I never responded to this but I don't see how I guess the alternative is to put the FlashVars on the SWF URL but that stinks too as the resource will need to be re-fetched whenever any config option critical to the SWF's instantiation is changed, even though the SWF binary itself has not changed. All that said, I think that, if anything can legitimately fix this, I think I would've covered it with my Flash changes that listen for the stage to be its initialization to be done. |
Hmm, I forget exactly what I was driving at now (eek, is it almost December already? 😿) but I think I felt that the appropriate code path wasn't being executed when the SWF was pulled from the cache against a cross-origin request and was wondering aloud whether setting While it sure is frustrating, It's not a big deal tbh -- in the end I changed the code so it always loads the SWF from the asset server by using Thanks for getting back in any case! Edit: I also wouldn't put it past Adobe to reuse |
@mjtko @jonrohan: Any chance that you have tried The change I was referring to is src/flash/ZeroClipboard.as#L55-62, which has been present since |
P.S. Interesting thoughts on |
Unfortunately I haven't been able to try 2.x yet -- we incorporated ZeroClipboard in our app in May and elected to use 1.x as 2.x wasn't released at that time. I'll try to squeeze an upgrade to 2.x into a near future dev iteration and get back to you. |
@mjtko @jonrohan @nodesocket: Can you guys take a peek at PR #521? I believe the changes I've made there would solve pretty much every caching issue possible... for better or worse. 😝 |
Using version
1.3.5
anduseNoCache: false
getting:Once I flip
useNoCache: true
the error goes away.The text was updated successfully, but these errors were encountered: