mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 860648 - shouldn't be able to dnd tabs in customize mode, r=mconley
This commit is contained in:
parent
4c3460e225
commit
b5c1655e3c
@ -3383,6 +3383,14 @@
|
||||
<field name="_afterHoveredTab">null</field>
|
||||
<field name="_hoveredTab">null</field>
|
||||
|
||||
<property name="_isCustomizing" readonly="true">
|
||||
<getter>
|
||||
let root = document.documentElement;
|
||||
return root.getAttribute("customizing") == "true" ||
|
||||
root.getAttribute("customize-exiting") == "true";
|
||||
</getter>
|
||||
</property>
|
||||
|
||||
<method name="_setPositionalAttributes">
|
||||
<body><![CDATA[
|
||||
let visibleTabs = this.tabbrowser.visibleTabs;
|
||||
@ -4273,7 +4281,7 @@
|
||||
|
||||
<handler event="dragstart"><![CDATA[
|
||||
var tab = this._getDragTargetTab(event);
|
||||
if (!tab)
|
||||
if (!tab || this._isCustomizing)
|
||||
return;
|
||||
|
||||
let dt = event.dataTransfer;
|
||||
@ -4517,7 +4525,7 @@
|
||||
|
||||
var dt = event.dataTransfer;
|
||||
var draggedTab = dt.mozGetDataAt(TAB_DROP_TYPE, 0);
|
||||
if (dt.mozUserCancelled || dt.dropEffect != "none") {
|
||||
if (dt.mozUserCancelled || dt.dropEffect != "none" || this._isCustomizing) {
|
||||
delete draggedTab._dragData;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user