-
Notifications
You must be signed in to change notification settings - Fork 279
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
DataCloneError on IE11 #598
Comments
This appears to be an instance of us trying to use an object (probably a NOTE: you still use |
Just to clarify, this only happens on Windows 8.1 IE 11. Works fine on WIndows 10 IE 11 |
@humphd so it breaks here: https://github.com/mozilla/brackets/blob/master/src/bramble/ChannelUtils.js#L49 (I can't get any more info than |
I'm trying to reproduce now. I have a VM with Windows 8.1 and IE11 (11.0.9600.16384). So far I can't hit it. After fixing #717, I see this: When I run full Thimble, everything seems to work, except I don't see any files in the Filetree (no errors related to this): If I manually add an HTML file, it works, and shows up. Not sure what this is all about. Something is silently failing and not writing files to the fs. No |
@humphd can you try loading https://brackets-testing.herokuapp.com/src/hosted.html in your vm? That's where I get the error. |
I wonder if you're hitting this: https://connect.microsoft.com/IE/feedback/details/783468/ie10-window-postmessage-throws-datacloneerror-for-transferrable-arraybuffers That's exactly what we do. Why does it work for me, though? |
So I'm running with 11.0.9600.16384 and you have 11.0.9600.16663, so your'e ahead of me. Maybe they broke something in a later update? |
Not sure. I also noticed that you're using Edge's devtools. I wonder if it isn't showing the datacloneerror while IE11's devtools is. |
Do you want to try a test? This code is basically testing to see if it's possible to use try {
port.postMessage({buffer: buffer}, [buffer]);
} catch(e) {
port.postMessage({buffer: buffer});
} |
I filed a bug in Thimble on the filetree being empty. It's possible that these are connected. I think it's unlikely (but not impossible) that I'm hitting this |
Ran the test, it goes into the catch block and then breaks here: https://github.com/mozilla/brackets/blob/master/src/filesystem/impls/filer/RemoteFiler.js#L70 |
OK, try this please: try {
port.postMessage({buffer: buffer}, [buffer]);
} catch(e) {
callback(null, false);
} |
I get this when I try to run Brackets on IE11:
Not sure what's happening but it seems to be something wrong with
postMessage
(which I thought we fixed by usingMessageChannel
).@humphd any ideas?
The text was updated successfully, but these errors were encountered: