mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1927517 - Assertion failure: !(result & nsContentUtils::eParseHTMLInteger_ErrorOverflow), at /builds/worker/checkouts/gecko/docshell/base/nsDocShell.cpp:5231. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D227520
This commit is contained in:
parent
c618fda03b
commit
11b2d4633a
1
docshell/base/crashtests/1927517-1.html
Normal file
1
docshell/base/crashtests/1927517-1.html
Normal file
@ -0,0 +1 @@
|
||||
<meta http-equiv="refresh" content="9223372036854775808">
|
1
docshell/base/crashtests/1927517-2.html
Normal file
1
docshell/base/crashtests/1927517-2.html
Normal file
@ -0,0 +1 @@
|
||||
<meta http-equiv="refresh" content="01234567">
|
1
docshell/base/crashtests/1927517-3.html
Normal file
1
docshell/base/crashtests/1927517-3.html
Normal file
@ -0,0 +1 @@
|
||||
<meta http-equiv="refresh" content="09223372036854775808">
|
@ -23,3 +23,6 @@ pref(dom.disable_open_during_load,false) load 1690169-1.html
|
||||
load 1672873.html
|
||||
load 1753136.html
|
||||
HTTP load 1804803.html
|
||||
load 1927517-1.html
|
||||
load 1927517-2.html
|
||||
load 1927517-3.html
|
||||
|
@ -5186,8 +5186,7 @@ void nsDocShell::SetupRefreshURIFromHeader(Document* aDocument,
|
||||
const char16_t* position = aHeader.BeginReading();
|
||||
const char16_t* end = aHeader.EndReading();
|
||||
|
||||
// See
|
||||
// https://html.spec.whatwg.org/#pragma-directives:shared-declarative-refresh-steps.
|
||||
// See https://html.spec.whatwg.org/#shared-declarative-refresh-steps.
|
||||
|
||||
// 3. Skip ASCII whitespace
|
||||
position = SkipASCIIWhitespace(position, end);
|
||||
@ -5219,7 +5218,10 @@ void nsDocShell::SetupRefreshURIFromHeader(Document* aDocument,
|
||||
// The spec assumes no errors here (since we only pass ASCII digits in),
|
||||
// but we can still overflow, so this block should deal with that (and
|
||||
// only that).
|
||||
MOZ_ASSERT(!(result & nsContentUtils::eParseHTMLInteger_ErrorOverflow));
|
||||
MOZ_ASSERT(
|
||||
!(result & ~(nsContentUtils::eParseHTMLInteger_DidNotConsumeAllInput |
|
||||
nsContentUtils::eParseHTMLInteger_Error |
|
||||
nsContentUtils::eParseHTMLInteger_ErrorOverflow)));
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(
|
||||
|
Loading…
Reference in New Issue
Block a user