Remove allowEvents DOM property from XULElement
Categories
(Core :: XUL, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: ntim, Assigned: ntim)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
This is only about removing the DOM property, not the attribute.
Neither TB or Firefox use it.
Platform code also already reads directly the attribute value.
Assignee | ||
Comment 1•4 years ago
|
||
(Also, there's only one usage of the attribute in m-c, so I suspect encouraging the use isn't great: https://searchfox.org/mozilla-central/search?q=allowevents&path=&case=false®exp=false)
Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
https://searchfox.org/comm-central/search?q=.allowEvents&path=&case=false®exp=false
Turns out I was wrong about TB. There are a few usages. Here are how to convert them:
if (X.allowEvents)
-> `if (X.getAttribute("allowevents") === "true")
X.allowEvents = true;
-> X.setAttribute("allowevents", "true");
X.allowEvents = false;
-> X.removeAttribute("allowevents");
(Note that toggleAttribute()
doesn't work here, because platform code specifically checks for equality to "true"
)
Comment 6•4 years ago
|
||
bugherder |
Description
•