Bug 1470191 - use mainthread atomize for 'is' attribute, r=mrbkap
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 21 Jun 2018 21:04:57 +0300
changeset 477512 9483bb48c57a4da7f9dfeba01d1573038a49d9c2
parent 477511 cc4b83096613ad445e0951e98dfd2b6fcc24bb63
child 477513 ea5d5eea145b32eea1b0a055f07a53033d3af331
push id9385
push userdluca@mozilla.com
push dateFri, 22 Jun 2018 15:47:18 +0000
treeherdermozilla-beta@82a9a1027e2b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs1470191
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1470191 - use mainthread atomize for 'is' attribute, r=mrbkap
dom/base/nsNameSpaceManager.cpp
--- a/dom/base/nsNameSpaceManager.cpp
+++ b/dom/base/nsNameSpaceManager.cpp
@@ -181,17 +181,17 @@ nsNameSpaceManager::GetNameSpaceID(nsAto
 nsresult
 NS_NewElement(Element** aResult,
               already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
               FromParser aFromParser,
               const nsAString* aIs)
 {
   RefPtr<mozilla::dom::NodeInfo> ni = aNodeInfo;
   int32_t ns = ni->NamespaceID();
-  RefPtr<nsAtom> isAtom = aIs ? NS_Atomize(*aIs) : nullptr;
+  RefPtr<nsAtom> isAtom = aIs ? NS_AtomizeMainThread(*aIs) : nullptr;
   if (ns == kNameSpaceID_XHTML) {
     return NS_NewHTMLElement(aResult, ni.forget(), aFromParser, isAtom);
   }
 #ifdef MOZ_XUL
   if (ns == kNameSpaceID_XUL) {
     return NS_NewXULElement(aResult, ni.forget(), aFromParser, isAtom);
   }
 #endif