Bug 1496312 - Don't release URLExtraData::{mBaseURI,mReferrer} on the main thread r=emilio
authorCameron McCormack <cam@mcc.id.au>
Thu, 04 Oct 2018 07:15:03 +0000
changeset 495491 473800ca49cd18a62383189e7c1f65b7d93d6ebf
parent 495490 3b7ba9bbad14f88db8f6cb11680f57b6278f6896
child 495492 5f734ee8bbdb5faf76de55f945be1d792aa1724c
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1496312
milestone64.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 1496312 - Don't release URLExtraData::{mBaseURI,mReferrer} on the main thread r=emilio Differential Revision: https://phabricator.services.mozilla.com/D7683
layout/style/URLExtraData.cpp
--- a/layout/style/URLExtraData.cpp
+++ b/layout/style/URLExtraData.cpp
@@ -31,18 +31,14 @@ URLExtraData::InitDummy()
 URLExtraData::ReleaseDummy()
 {
   sDummy = nullptr;
 }
 
 URLExtraData::~URLExtraData()
 {
   if (!NS_IsMainThread()) {
-    NS_ReleaseOnMainThreadSystemGroup("URLExtraData::mBaseURI",
-                                      mBaseURI.forget());
-    NS_ReleaseOnMainThreadSystemGroup("URLExtraData::mReferrer",
-                                      mReferrer.forget());
     NS_ReleaseOnMainThreadSystemGroup("URLExtraData::mPrincipal",
                                       mPrincipal.forget());
   }
 }
 
 } // namespace mozilla