thlorenz / brace

📔 browserify compatible version of the ace editor.
http://thlorenz.github.io/brace/
MIT License
1.06k stars 304 forks source link

Ace worker creates multiple blob urls #112

Open mrshawn191 opened 6 years ago

mrshawn191 commented 6 years ago

skarmavbild 2017-12-12 kl 11 33 23

Hi i am having an issue where im making an ajax call to my api, and it returns a list of something, but in my chrome debugger in network i can see that corresponding blob urls are created.

I'm not sure i understand the issue, also seems to only have this problem with chrome and not firefox. Any help on diagnosing the issue?

thlorenz commented 6 years ago

Which version of brace does this happen with? We had a recent related change, hoping it didn't introduce a bug?

@nightwing do you know if this could be related?

mrshawn191 commented 6 years ago

@thlorenz Aha hmm im using "brace": "^0.7.0" also with knockout js framework.

mrshawn191 commented 6 years ago

Tried upgrading to brace 0.11.0 still same problem.. all ajax calls seems to produce a bloburl on chrome only.

nightwing commented 6 years ago

@thlorenz the worker client creates new blob every time mode is set to the editor, and it was behaving the same way before 7e33fe7ac2034c069d05b6ad52c52680c3c0bc79.

@mrshawn191 do you create new session, or call setMode after making the ajax call?