summaryrefslogtreecommitdiffstats
path: root/dom/base
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2019-05-24 22:55:23 +0300
committerGitHub <noreply@github.com>2019-05-24 22:55:23 +0300
commit7214f08148d3d93a7f89bb50dec0c558f0e444de (patch)
tree86a770a2754561745a2e885a07050547a2a7ac67 /dom/base
parenta371a69a73ebcd542ceb42927ce2859b0d326c98 (diff)
downloadUXP-7214f08148d3d93a7f89bb50dec0c558f0e444de.tar
UXP-7214f08148d3d93a7f89bb50dec0c558f0e444de.tar.gz
UXP-7214f08148d3d93a7f89bb50dec0c558f0e444de.tar.lz
UXP-7214f08148d3d93a7f89bb50dec0c558f0e444de.tar.xz
UXP-7214f08148d3d93a7f89bb50dec0c558f0e444de.zip
Add missing NS_AtomizeMainThread(nameToUse);
nsCOMPtr<nsIAtom> nameAtom = NS_AtomizeMainThread(nameToUse);
Diffstat (limited to 'dom/base')
-rw-r--r--dom/base/Element.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp
index f787e4d21..0054f4800 100644
--- a/dom/base/Element.cpp
+++ b/dom/base/Element.cpp
@@ -1316,7 +1316,7 @@ Element::SetAttribute(const nsAString& aName,
nsAutoString nameToUse;
const nsAttrName* name = InternalGetAttrNameFromQName(aName, &nameToUse);
if (!name) {
- nsCOMPtr<nsIAtom> nameAtom = NS_Atomize(nameToUse);
+ nsCOMPtr<nsIAtom> nameAtom = NS_AtomizeMainThread(nameToUse);
if (!nameAtom) {
aError.Throw(NS_ERROR_OUT_OF_MEMORY);
return;