Bug 182489 - Temporarily replace RELEASE_ASSERT with ASSERT in FrameLoader::stopAllLoaders.
Summary: Temporarily replace RELEASE_ASSERT with ASSERT in FrameLoader::stopAllLoaders.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Per Arne Vollan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-05 09:03 PST by Per Arne Vollan
Modified: 2018-02-22 08:35 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.05 KB, patch)
2018-02-05 09:08 PST, Per Arne Vollan
rniwa: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Per Arne Vollan 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.
Comment 1 Per Arne Vollan 2018-02-05 09:08:29 PST
Created attachment 333085 [details]
Patch
Comment 2 EWS Watchlist 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.