Bug 1456995 - give InternalRequest::mMozErrors a default initializer r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D44514

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Perry Jiang 2019-10-08 23:47:36 +00:00
Родитель 2f362be636
Коммит 398ea07602
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -95,7 +95,6 @@ InternalRequest::InternalRequest(const nsACString& aURL,
mResponseTainting(LoadTainting::Basic),
mCacheMode(RequestCache::Default),
mRedirectMode(RequestRedirect::Follow),
mMozErrors(false),
mAuthenticationFlag(false),
mPreserveContentCodings(false)
// FIXME(nsm): This should be false by default, but will lead to the
@ -131,7 +130,6 @@ InternalRequest::InternalRequest(
mCacheMode(aCacheMode),
mRedirectMode(aRequestRedirect),
mIntegrity(aIntegrity),
mMozErrors(false),
mAuthenticationFlag(false),
mPreserveContentCodings(false)
// FIXME See the above comment in the default constructor.

Просмотреть файл

@ -406,7 +406,7 @@ class InternalRequest final {
RequestCache mCacheMode;
RequestRedirect mRedirectMode;
nsString mIntegrity;
bool mMozErrors;
bool mMozErrors = false;
nsCString mFragment;
MOZ_INIT_OUTSIDE_CTOR bool mAuthenticationFlag;
MOZ_INIT_OUTSIDE_CTOR bool mPreserveContentCodings;