I’d tag this beta10, but that tag doesn’t exist yet. Thankyou @downey
Anyway, if you have two tabs open, and both tabs have their composers open, pasting an image from the clipboard in one tab pastes the image in both tabs’ composers.
Tested on Windows 8.1, Chrome 43; not sure if this is a Chrome thing or a Discourse thing yet.
Update: Also appears to happen on Firefox 38 on Windows 7
Out of interest, could this issue also cause a Chrome instance to crash? I’ve not been able to trigger it myself, but @yamikuronue has seen her Chrome window disappear sometimes when trying to paste an image. Since the upload/paste action is able to cross tabs, could it cross to a tab for an unrelated website, try to treat it like a Discourse tab, and trigger a browser crash as a result?
That’s not possible. The composers listen to the same channel via the Message Bus, that’s why they both get the uploaded file. Other sites can’t possibly be affected.
The trick is to post MessageBus.clientId up to the server with the upload then you can include it in the final message. It would be nice to add clientId filtering to message bus. Eg this would be cool