Bug 1322938 - Put <dialog> element behind preference.

Tag #1343
This commit is contained in:
Gaming4JC 2020-01-07 09:10:56 -05:00 committed by Roy Tam
commit a77fa3ec13
11 changed files with 45 additions and 5 deletions

View file

@ -26,6 +26,8 @@ public:
virtual nsresult Clone(mozilla::dom::NodeInfo* aNodeInfo, nsINode** aResult) const override;
static bool IsDialogEnabled();
bool Open() const { return GetBoolAttr(nsGkAtoms::open); }
void SetOpen(bool aOpen, ErrorResult& aError)
{