Bug 178845

Summary: Assert that no script is executed during style recalc
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Layout and RenderingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, buildbot, commit-queue, dino, koivisto, rniwa, ryanhaddad, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 178715    
Bug Blocks:    
Attachments:
Description Flags
Adds assertions
none
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
none
Reverted inspector change
none
Patch for landing
none
Patch none

Description Ryosuke Niwa 2017-10-25 21:16:10 PDT
Add NoEventDispatchAssertion to Document::updateStyle and Document::updateStyleIfNeeded.
Comment 1 Ryosuke Niwa 2017-10-25 21:16:25 PDT
<rdar://problem/35106129>
Comment 2 Ryosuke Niwa 2017-10-25 21:56:08 PDT
Created attachment 324956 [details]
Adds assertions
Comment 3 Build Bot 2017-10-25 21:59:11 PDT
Attachment 324956 [details] did not pass style-queue:


ERROR: Source/WebCore/dom/EventDispatcher.cpp:133:  Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION().  [security/assertion] [5]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Build Bot 2017-10-25 22:50:42 PDT
Comment on attachment 324956 [details]
Adds assertions

Attachment 324956 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/4994171

Number of test failures exceeded the failure limit.
Comment 5 Build Bot 2017-10-25 22:50:43 PDT
Created attachment 324960 [details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 6 Ryosuke Niwa 2017-10-25 22:55:13 PDT
mac-wk2 EWS bot is in a really bad shape :(
Comment 7 Ryosuke Niwa 2017-10-25 23:03:30 PDT
Created attachment 324962 [details]
Reverted inspector change
Comment 8 Build Bot 2017-10-25 23:06:14 PDT
Attachment 324962 [details] did not pass style-queue:


ERROR: Source/WebCore/dom/EventDispatcher.cpp:133:  Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION().  [security/assertion] [5]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Antti Koivisto 2017-10-25 23:21:08 PDT
cool, r=me
Comment 10 Ryosuke Niwa 2017-10-25 23:59:46 PDT
Created attachment 324969 [details]
Patch for landing
Comment 11 Ryosuke Niwa 2017-10-26 00:05:01 PDT
Comment on attachment 324969 [details]
Patch for landing

Wait for EWS first.
Comment 12 Build Bot 2017-10-26 00:06:03 PDT
Attachment 324969 [details] did not pass style-queue:


ERROR: Source/WebCore/dom/EventDispatcher.cpp:133:  Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION().  [security/assertion] [5]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 13 WebKit Commit Bot 2017-10-26 01:46:06 PDT
Comment on attachment 324969 [details]
Patch for landing

Clearing flags on attachment: 324969

Committed r224011: <https://trac.webkit.org/changeset/224011>
Comment 14 WebKit Commit Bot 2017-10-26 01:46:08 PDT
All reviewed patches have been landed.  Closing bug.
Comment 15 Ryan Haddad 2017-10-27 14:30:40 PDT
Because I rolled out https://trac.webkit.org/changeset/223999/webkit, xsl LayoutTests are hitting the assert added in this change.

Example:
https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK1%20(Tests)/r224117%20(4523)/results.html
Comment 16 Ryan Haddad 2017-10-27 14:35:20 PDT
Reverted r224011 for reason:

xsl LayoutTests hit an assertion added with this change since r223999 was rolled out.

Committed r224131: <https://trac.webkit.org/changeset/224131>
Comment 17 Ryosuke Niwa 2017-10-28 23:46:04 PDT
Created attachment 325283 [details]
Patch
Comment 18 Build Bot 2017-10-28 23:46:55 PDT
Attachment 325283 [details] did not pass style-queue:


ERROR: Source/WebCore/dom/EventDispatcher.cpp:133:  Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION().  [security/assertion] [5]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 19 Ryosuke Niwa 2017-10-29 02:56:50 PDT
Comment on attachment 325283 [details]
Patch

Relanding the patch since the flakiness of the tests has been fixed.
Comment 20 WebKit Commit Bot 2017-10-29 03:15:59 PDT
Comment on attachment 325283 [details]
Patch

Clearing flags on attachment: 325283

Committed r224159: <https://trac.webkit.org/changeset/224159>
Comment 21 WebKit Commit Bot 2017-10-29 03:16:00 PDT
All reviewed patches have been landed.  Closing bug.