-
Notifications
You must be signed in to change notification settings - Fork 1k
ZeroClipboard intermittently fails in Firefox showing deactivated=true in state dump #661
Comments
That is very strange. From docs/api/ZeroClipboard.md#errorname--flash-deactivated:
|
I'm waiting to reproduce this. I've added the following code to my site:
|
This problem was reproduced on a Windows machine with the following console.dir of the error object:
Refreshing the page made it work again. This is part of a web application called myplaceonline.com which uses a Single Page Application model using JQueryMobile so that all page navigations are intercepted, executed as AJAX, and then the contents of the DOM are replaced. These DOM replacements may include ZeroClipboard objects and scripts, so I suspect that under some conditions, Flash gets confused. One Adobe engineer agrees that this is likely the driver of a bug in Flash that's causing a crash on my Linux machine. In this case, I was watching the user do this and I didn't see any evidence that Flash crashed. So I guess the question is: how can we diagnose whether this is an issue in ZeroClipboard or in Flash? Is there a debug version of the SWF that prints some sort of debug log? |
As a follow-up to my last comment, I realized the Adobe engineer's comment wasn't in that forum thread, so here it is from a private message:
|
I have a single page application with a constantly changing DOM and sometimes, ZC fails to work. Running
console.log( JSON.stringify( ZeroClipboard.state(), null, 2 ) );
in the failing case shows deactivated=true:If I do a full refresh on the same exact page, it works fine and a diff with the state dump shows that the only changes are that deactivated=false (and ready=true).
How do I debug this further? What causes Flash to be deactivated?
The text was updated successfully, but these errors were encountered: