RESOLVED FIXED182489
Temporarily replace RELEASE_ASSERT with ASSERT in FrameLoader::stopAllLoaders.
https://bugs.webkit.org/show_bug.cgi?id=182489
Summary Temporarily replace RELEASE_ASSERT with ASSERT in FrameLoader::stopAllLoaders.
Per Arne Vollan
Reported 2018-02-05 09:03:56 PST
On trunk, we currently have a release assert that asserts that scripts are allowed when calling FrameLoader::stopAllLoaders. This is correct since stopAllLoaders might dispatch events. We should continue to have the release assert in trunk, because we should catch when this happens. However, there still might be cases where the assert fails, but the backtrace will turn out to be one where scripting could be allowed. The release assert in trunk will help us catch these cases. On the branch, however, we should avoid crashing in these cases, and replace the release assert with a debug assert. If approved, this patch should only land on a branch, not on trunk.
Attachments
Patch (2.05 KB, patch)
2018-02-05 09:08 PST, Per Arne Vollan
rniwa: review+
Per Arne Vollan
Comment 1 2018-02-05 09:08:29 PST
EWS Watchlist
Comment 2 2018-02-05 09:10:47 PST
Attachment 333085 [details] did not pass style-queue: ERROR: Source/WebCore/loader/FrameLoader.cpp:1681: Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(). [security/assertion] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Note You need to log in before you can comment on or make changes to this bug.