Oddly, I downloaded Firefox ESR 45 and did not experience this problem.
That is probably because Apple added an exception for Firefox <= 48 (which should also help ESR channel releases, but Tor Browser has a different bundle ID so the exception won't help us). See:
https://bugzilla.mozilla.org/show_bug.cgi?id=1284859#c11
Backporting the patches from the following bug should fix this problem:
https://bugzilla.mozilla.org/show_bug.cgi?id=1070710
Hopefully the new code does not require a version of OSX greater than 10.6 (Firefox 49 requires 10.9 or newer).
Kathy and I backported the three Mozilla patches from https://bugzilla.mozilla.org/show_bug.cgi?id=1070710. They did not apply cleanly due to other changes Mozilla has made since ESR 45, but the changes we had to make were not extensive.
So far Kathy and I have only tested these patches with Tor Browser on OSX 10.11.6 (we do not yet have access to a 10.12/Sierra system; Kathy and I will upgrade one of our computers soon). I am posting the patches now because the Tor Messenger team would like to include a fix for this ticket in their next release, which is imminent.
Looks good to me. I take that for the next alpha (commits 4dc2922a3071f1789cb0078809e4b28c48fb3922, 037b95c9574e274274441a17d3f304d529417f7d and 7298e8412e723ff90d74dd06124f8b1ae7e12980 on tor-browser-45.4.0esr-6.5-1) but am not sure about the stable yet. mcs: do you think we should just take those patches there, too, without further testing?
Trac: Resolution: N/Ato fixed Status: needs_review to closed
mcs: do you think we should just take those patches there, too, without further testing?
Yes. This problem is annoying enough to users that I think we should take that risk.
Done with commits 95b008b232fb75f09541ac43e3d1ef5482ad2590, b3e5e45fc43646fa658cd8bbb43389a02e391150, and 8b1f07f31cd04fb157bf99a9e2e600b4422f277f on tor-browser-45.4.0esr-6.0-1.
Repeating comments here that I made on IRC in case they were missed:
Kathy and I do not have as many different OSX versions as I hoped. Here is what we learned though:
on 10.6.8, dragging anywhere in the window (including on the scrollbar) moves the window.
on 10.11.6 and 10.12, the same problem occurs if you load a second page and then go back in history.
We have no way to test on 10.7 - 10.10 at the moment.
I cannot find a Mozilla bug for the 10.11.6 and 10.12 behavior, but I cannot reproduce the problem with Firefox 49 or 50 beta either. I will try ESR 45.4.0.
and a few minutes later:
I cannot reproduce the problem with Firefox ESR 45.4.0
I found https://bugzilla.mozilla.org/show_bug.cgi?id=1070038 which describes similar symptoms, but it was fixed for Firefox 35. I guess the fact that ESR 45 does not show a problem is not that interesting because it does not contain the fixes we backported for this ticket (I keep getting confused by Apple's exception for Firefox <= 48).
Okay, I think the first thing we should do is making sure that really the backported patches are the culprit. I guess doing two builds, one with the latest tor browser 45.4.0esr code and one where just the backported patches are omitted and testing that on 10.11.6 could be a good idea.
If I did not mess up, hrm. I guess opening a new ticket to track our efforts could be helpful. Should we bother with asking Mozilla for help? Strictly speaking it is not their issue.
Okay, I think the first thing we should do is making sure that really the backported patches are the culprit. I guess doing two builds, one with the latest tor browser 45.4.0esr code and one where just the backported patches are omitted and testing that on 10.11.6 could be a good idea.
Doing that would be conclusive, although since we do not see the problem with TB 6.5a3 it is almost certainly caused by the backported patches associated with this ticket.
If I did not mess up, hrm. I guess opening a new ticket to track our efforts could be helpful. Should we bother with asking Mozilla for help? Strictly speaking it is not their issue.
Probably someone just needs to debug it. Firefox 50 current beta does not show the problem. So maybe Kathy and I made a mistake in backporting the patches, or maybe there are other fixes in Firefox 50 that avoid the problem somehow.
For better or for worse, Tor Messenger is composed of several windows (#16493 (closed)). Today I noticed that w/ these patches applied, the "contacts" window suffers from the dragging anywhere symptom (as described in comment:19). This doesn't seem to affect usability as much as not being able to move windows at all, so we may opt to release as is. We're also considering waiting for the next esr release in a couple weeks. Either way, no rush on our part.
Woah, that's subtle, good find. I tested a build with it and it fixes the issue for me. I applied the fixup patch to tor-browser-45.4.0esr-6.5-1 (commit a6b4bb9a9d2769e8be110f2f0486b9ec74882575).
Trac: Resolution: N/Ato fixed Status: needs_review to closed
There is a related bug I just found where clicking on the insertion point in some (multi-line?) editable text fields on macOS Sierra causes the window to be dragged. It's hard to reproduce, and not worth fixing, as it is so rare. But we should check that we don't make it worse with this fix.
There is a related bug I just found where clicking on the insertion point in some (multi-line?) editable text fields on macOS Sierra causes the window to be dragged. It's hard to reproduce, and not worth fixing, as it is so rare. But we should check that we don't make it worse with this fix.
I can't reliably reproduce it in TBB 6.0.5, so my best advice is to type some text in an editable multi-line field (like this one in Trac), and click and drag near the insertion point. Occasionally, the window moves, rather than the text being selected or moving.
Is that nightly build supposed to contain the control socket space fix from #20111 (moved)?
Because it broke, and I had to set extensions.torlauncher.control_port_use_socket to false to get any Tor Browser to work, even 6.0.5. (They all share the same extensions, because the extensions are in Application Support, too.)
I couldn't reproduce the text field window dragging behaviour using the alpha, so it's no worse than 6.0.5. And the window dragging for the titlebar works. Thanks!
Is that nightly build supposed to contain the control socket space fix from #20111 (moved)?
Because it broke, and I had to set extensions.torlauncher.control_port_use_socket to false to get any Tor Browser to work, even 6.0.5. (They all share the same extensions, because the extensions are in Application Support, too.)
sigh, sorry for that. I rebuilt the browser part lately quite often in my nightly setup to test various browser fixes. While reviewing and testing #20111 (moved) I copied the torbutton/tor-launcher .xpi over from a local build to avoid the overhead from our Gitian buils setup. To answer your question directly: no, the fix for #20111 (moved) is not in that bundle yet.