WebKit Bugzilla
Attachment 341449 Details for
Bug 185979
: REGRESSION: Assertion failure compiling 1Blocker
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-185979-20180528103345.patch (text/plain), 5.28 KB, created by
Tadeu Zagallo
on 2018-05-28 01:33:47 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Tadeu Zagallo
Created:
2018-05-28 01:33:47 PDT
Size:
5.28 KB
patch
obsolete
>Subversion Revision: 231953 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index a1436ce64f3c27850ca0e5ad58db34c4dd623446..2a1bf8d97defe2d1b0e20ad6f69dead04bc9cdff 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,21 @@ >+2018-05-27 Tadeu Zagallo <tzagallo@apple.com> >+ >+ Don't assert on m_actionsStart when setting actions on DFA nodes >+ https://bugs.webkit.org/show_bug.cgi?id=185979 >+ <rdar://problem/39669458> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ DFANode::setActions is called immediately after the node is created, and once again to set >+ the actions of catch-all regular expressions (.*) on the root node. That works because >+ m_actionsStart is initially 0, since the root was the first node to be created, but may fail >+ after minimizing the DFA, when the root may no longer be the first node, and therefore >+ m_actionsStart would not be 0, even if there are no actions attached to that node. >+ >+ Test: http/tests/contentextensions/root-actions.html >+ >+ * contentextensions/DFANode.h: >+ > 2018-05-18 Zalan Bujtas <zalan@apple.com> > > [LFC] Implement height computation for replaced elements. >diff --git a/Source/WebCore/contentextensions/DFANode.h b/Source/WebCore/contentextensions/DFANode.h >index 342ef916719af2fbbc04e22d7d5407753a532b00..3fbc8480bf667c5a056dc267e250c8e6b17ace9a 100644 >--- a/Source/WebCore/contentextensions/DFANode.h >+++ b/Source/WebCore/contentextensions/DFANode.h >@@ -145,7 +145,6 @@ public: > > void setActions(uint32_t start, uint16_t length) > { >- ASSERT(!m_actionsStart); > ASSERT(!m_actionsLength); > m_actionsStart = start; > m_actionsLength = length; >diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog >index 6de6affcac6693a935b5c90e4fb885b0d425f500..4559a450f47e62db99768f22d5adb0e0dc051ca5 100644 >--- a/LayoutTests/ChangeLog >+++ b/LayoutTests/ChangeLog >@@ -1,3 +1,21 @@ >+2018-05-27 Tadeu Zagallo <tzagallo@apple.com> >+ >+ Don't assert on m_actionsStart when setting actions on DFA nodes >+ https://bugs.webkit.org/show_bug.cgi?id=185979 >+ <rdar://problem/39669458> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ DFANode::setActions is called immediately after the node is created, and once again to set >+ the actions of catch-all regular expressions (.*) on the root node. That works because >+ m_actionsStart is initially 0, since the root was the first node to be created, but may fail >+ after minimizing the DFA, when the root may no longer be the first node, and therefore >+ m_actionsStart would not be 0, even if there are no actions attached to that node. >+ >+ * http/tests/contentextensions/root-actions-expected.txt: Added. >+ * http/tests/contentextensions/root-actions.html: Added. >+ * http/tests/contentextensions/root-actions.html.json: Added. >+ > 2018-05-18 Per Arne Vollan <pvollan@apple.com> > > The test fast/images/animated-image-mp4-crash.html is failing on Windows. >diff --git a/LayoutTests/http/tests/contentextensions/root-actions-expected.txt b/LayoutTests/http/tests/contentextensions/root-actions-expected.txt >new file mode 100644 >index 0000000000000000000000000000000000000000..36cd6f81a9f08dd70b7ba97784b3e6a012cab908 >--- /dev/null >+++ b/LayoutTests/http/tests/contentextensions/root-actions-expected.txt >@@ -0,0 +1,3 @@ >+Test that root actions combined with DFA minimizing don't crash in Debug >+ >+See https://bugs.webkit.org/show_bug.cgi?id=185979 >diff --git a/LayoutTests/http/tests/contentextensions/root-actions.html b/LayoutTests/http/tests/contentextensions/root-actions.html >new file mode 100644 >index 0000000000000000000000000000000000000000..46c9c9f5fa8a7f29c0a7786ed05351d1f24f1e30 >--- /dev/null >+++ b/LayoutTests/http/tests/contentextensions/root-actions.html >@@ -0,0 +1,13 @@ >+<!DOCTYPE html> >+<html> >+<head> >+ <script> >+ if (window.testRunner) >+ testRunner.dumpAsText(); >+ </script> >+</head> >+<body> >+ <p>Test that root actions combined with DFA minimizing don't crash in Debug</p> >+ <p>See https://bugs.webkit.org/show_bug.cgi?id=185979</p> >+</body> >+</html> >diff --git a/LayoutTests/http/tests/contentextensions/root-actions.html.json b/LayoutTests/http/tests/contentextensions/root-actions.html.json >new file mode 100644 >index 0000000000000000000000000000000000000000..91404fa83df394f1194d4532957f8bdf7f7660b5 >--- /dev/null >+++ b/LayoutTests/http/tests/contentextensions/root-actions.html.json >@@ -0,0 +1,38 @@ >+[ >+ { >+ "action": { >+ "type": "block" >+ }, >+ "trigger": { >+ "url-filter": "www\\.example\\.com/cookie\\.js", >+ "url-filter-is-case-sensitive": true >+ } >+ }, >+ { >+ "action": { >+ "type": "block" >+ }, >+ "trigger": { >+ "url-filter": "\\.morecookies", >+ "url-filter-is-case-sensitive": true >+ } >+ }, >+ { >+ "action": { >+ "type": "block" >+ }, >+ "trigger": { >+ "url-filter": "/cookie\\.js", >+ "url-filter-is-case-sensitive": true >+ } >+ }, >+ { >+ "action": { >+ "type": "block-cookies" >+ }, >+ "trigger": { >+ "url-filter": ".*", >+ "url-filter-is-case-sensitive": true >+ } >+ } >+]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 185979
:
341430
| 341449