Summary: | RELEASE_ASSERT(static_cast<size_t>(enumerationValue) < WTF_ARRAY_LENGTH(values)) hit in convertEnumerationToJS<WebCore::History::ScrollRestoration>() | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, ggaren, joepeck, mark.lam, simon.fraser, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | 173267 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Chris Dumez
2017-06-06 14:21:16 PDT
Created attachment 312122 [details]
Patch
Comment on attachment 312122 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312122&action=review > Source/WebKit2/Shared/SessionState.h:100 > + float pageScaleFactor { 1.0 }; We use pageScaleFactor = 0 to indicate "don't restore page scale" in history code, so I don't know if this 1 is correct. Comment on attachment 312122 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312122&action=review >> Source/WebKit2/Shared/SessionState.h:100 >> + float pageScaleFactor { 1.0 }; > > We use pageScaleFactor = 0 to indicate "don't restore page scale" in history code, so I don't know if this 1 is correct. This will always be override this in practice so it likely does not change behavior at the moment. However, given the default value in HistoryItem, I agree it makes more sense to use 0 here. Created attachment 312124 [details]
Patch
Comment on attachment 312124 [details] Patch Clearing flags on attachment: 312124 Committed r217867: <http://trac.webkit.org/changeset/217867> All reviewed patches have been landed. Closing bug. |