<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>165652</bug_id>
          
          <creation_ts>2016-12-09 05:38:12 -0800</creation_ts>
          <short_desc>CrashTracer: com.apple.WebKit.WebContent.Development at com.apple.WebCore: WTF::match_constness&lt;WebCore::CSSValue, WebCore::CSSContentDistributionValue&gt;::type&amp; WTF::downcast&lt;WebCore::CSSContentDistributionValue, WebCore::CSSValue&gt; + 65</short_desc>
          <delta_ts>2016-12-10 01:58:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antti Koivisto">koivisto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1258123</commentid>
    <comment_count>0</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2016-12-09 05:38:12 -0800</bug_when>
    <thetext>25/09/2016, 14.20 CrashTracer System:
* APPLICATION: com.apple.WebKit.WebContent.Development
* SIGNATURE: com.apple.WebCore:  WTF::match_constness&lt;WebCore::CSSValue, WebCore::CSSContentDistributionValue&gt;::type&amp; WTF::downcast&lt;WebCore::CSSContentDistributionValue, WebCore::CSSValue&gt; + 65
* MORE INFORMATION: https://crashtracer.apple.com/signature/show/54148905?app=com.apple.WebKit.WebContent.Development&amp;build=16B2326&amp;users=internal

Summary of a selection of backtraces attributed to this bug. The stack frame considered to be the unique &quot;crash signature&quot; is highlighted ==&gt; like this &lt;==. This frame is used for aggregation when filing these bugs and does not necessarily imply fault.

      8 JavaScriptCore: WTFCrash
        8 JavaScriptCore: WTFCrashWithSecurityImplication
   ==&gt; 8 WebCore: WTF::match_constness&lt;WebCore::CSSValue, WebCore::CSSContentDistributionValue&gt;::type&amp; WTF::downcast&lt;WebCore::CSSContentDistributionValue, WebCore::CSSValue&gt;(WebCore::CSSValue&amp;) &lt;==
            8 WebCore: WebCore::StyleBuilderConverter::convertContentAlignmentData(WebCore::StyleResolver&amp;, WebCore::CSSValue&amp;)
              8 WebCore: WebCore::StyleBuilderFunctions::applyValueJustifyContent(WebCore::StyleResolver&amp;, WebCore::CSSValue&amp;)
                8 WebCore: WebCore::StyleBuilder::applyProperty(WebCore::CSSPropertyID, WebCore::StyleResolver&amp;, WebCore::CSSValue&amp;, bool, bool)
                  8 WebCore: WebCore::StyleResolver::applyProperty(WebCore::CSSPropertyID, WebCore::CSSValue*, WebCore::SelectorChecker::LinkMatchMask, WebCore::StyleResolver::MatchResult const*)
                    8 WebCore: WebCore::StyleResolver::CascadedProperties::Property::apply(WebCore::StyleResolver&amp;, WebCore::StyleResolver::MatchResult const*)
                      8 WebCore: WebCore::StyleResolver::applyCascadedProperties(WebCore::StyleResolver::CascadedProperties&amp;, int, int, WebCore::StyleResolver::MatchResult const*)
                        8 WebCore: WebCore::StyleResolver::applyMatchedProperties(WebCore::StyleResolver::MatchResult const&amp;, WebCore::Element const&amp;, WebCore::StyleResolver::ShouldUseMatchedPropertiesCache)
                          8 WebCore: WebCore::StyleResolver::styleForElement(WebCore::Element const&amp;, WebCore::RenderStyle const*, WebCore::RuleMatchingBehavior, WebCore::RenderRegion const*, WebCore::SelectorFilter const*)
                            6 WebCore: WebCore::Style::TreeResolver::styleForElement(WebCore::Element&amp;, WebCore::RenderStyle const&amp;)
                            | 6 WebCore: WebCore::Style::TreeResolver::resolveElement(WebCore::Element&amp;)
                            |   6 WebCore: WebCore::Style::TreeResolver::resolveComposedTree()
                            |     6 WebCore: WebCore::Style::TreeResolver::resolve(WebCore::Style::Change)
                            |       6 WebCore: WebCore::Document::recalcStyle(WebCore::Style::Change)
                            |         6 WebCore: WebCore::Document::updateStyleIfNeeded()
                            |           6 WebCore: WebCore::Document::updateLayout()
                            |             6 WebCore: WebCore::Document::updateLayoutIgnorePendingStylesheets(WebCore::Document::RunPostLayoutTasks)
                            |               4 WebCore: WebCore::Element::getBoundingClientRect()
                            |               | 4 WebCore: WebCore::jsElementPrototypeFunctionGetBoundingClientRect(JSC::ExecState*)
                            |               |   4 
                            |               |     4 JavaScriptCore: llint_entry
                            |               |       4 JavaScriptCore: llint_entry
                            |               |         4 JavaScriptCore: llint_entry
                            |               |           4 JavaScriptCore: llint_entry
                            |               |             4 JavaScriptCore: llint_entry
                            |               |               4 JavaScriptCore: llint_entry
                            |               |                 4 JavaScriptCore: llint_entry
                            |               |                   4 JavaScriptCore: llint_entry
                            |               |                     4 JavaScriptCore: vmEntryToJavaScript
                            |               |                       4 JavaScriptCore: JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
                            |               |                         4 JavaScriptCore: JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
                            |               |                           4 JavaScriptCore: JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
                            |               |                             4 WebCore: WebCore::HTMLMediaElement::didAddUserAgentShadowRoot(WebCore::ShadowRoot*)
                            |               |                               4 WebCore: WebCore::Element::addShadowRoot(WTF::Ref&lt;WebCore::ShadowRoot&gt;&amp;&amp;)
                            |               |                                 4 WebCore: WebCore::Element::ensureUserAgentShadowRoot()
                            |               |                                   4 WebCore: WebCore::HTMLMediaElement::ensureMediaControlsShadowRoot()
                            |               |                                     4 WebCore: WebCore::HTMLMediaElement::configureMediaControls()
                            |               |                                       4 WebCore: WebCore::HTMLMediaElement::insertedInto(WebCore::ContainerNode&amp;)
                            |               |                                         4 WebCore: WebCore::notifyNodeInsertedIntoDocument(WebCore::ContainerNode&amp;, WebCore::Node&amp;, WTF::Vector&lt;WTF::Ref&lt;WebCore::Node&gt;, 11ul, WTF::CrashOnOverflow, 16ul&gt;&amp;)
                            |               |                                           4 WebCore: WebCore::notifyDescendantInsertedIntoDocument(WebCore::ContainerNode&amp;, WebCore::ContainerNode&amp;, WTF::Vector&lt;WTF::Ref&lt;WebCore::Node&gt;, 11ul, WTF::CrashOnOverflow, 16ul&gt;&amp;)
                            |               |                                             4 WebCore: WebCore::notifyNodeInsertedIntoDocument(WebCore::ContainerNode&amp;, WebCore::Node&amp;, WTF::Vector&lt;WTF::Ref&lt;WebCore::Node&gt;, 11ul, WTF::CrashOnOverflow, 16ul&gt;&amp;)
                            |               |                                               4 WebCore: WebCore::notifyChildNodeInserted(WebCore::ContainerNode&amp;, WebCore::Node&amp;, WTF::Vector&lt;WTF::Ref&lt;WebCore::Node&gt;, 11ul, WTF::CrashOnOverflow, 16ul&gt;&amp;)
                            |               |                                                 4 WebCore: WebCore::ContainerNode::notifyChildInserted(WebCore::Node&amp;, WebCore::ContainerNode::ChildChangeSource)
                            |               |                                                   4 WebCore: WebCore::ContainerNode::updateTreeAfterInsertion(WebCore::Node&amp;)
                            |               |                                                     4 WebCore: WebCore::ContainerNode::appendChildWithoutPreInsertionValidityCheck(WebCore::Node&amp;, int&amp;)
                            |               |                                                       4 WebCore: WebCore::ContainerNode::insertBefore(WebCore::Node&amp;, WebCore::Node*, int&amp;)
                            |               |                                                         4 WebCore: WebCore::Node::insertBefore(WebCore::Node&amp;, WebCore::Node*, int&amp;)
                            |               |                                                           4 WebCore: WebCore::JSNode::insertBefore(JSC::ExecState&amp;)
                            |               |                                                             4 WebCore: WebCore::jsNodePrototypeFunctionInsertBefore(JSC::ExecState*)
                            |               |                                                               4 
                            |               |                                                                 truncating...
                            |               pruning: 2 WebCore: WebCore::HTMLBodyElement::scrollHeight()
                            pruning: 2 WebCore: WebCore::Element::resolveStyle(WebCore::RenderStyle const*)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258124</commentid>
    <comment_count>1</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2016-12-09 05:38:48 -0800</bug_when>
    <thetext>rdar://problem/28465278</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258125</commentid>
    <comment_count>2</comment_count>
      <attachid>296650</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2016-12-09 05:44:59 -0800</bug_when>
    <thetext>Created attachment 296650
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258657</commentid>
    <comment_count>3</comment_count>
      <attachid>296650</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-12-10 01:58:36 -0800</bug_when>
    <thetext>Comment on attachment 296650
patch

Clearing flags on attachment: 296650

Committed r209659: &lt;http://trac.webkit.org/changeset/209659&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258658</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-12-10 01:58:38 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>296650</attachid>
            <date>2016-12-09 05:44:59 -0800</date>
            <delta_ts>2016-12-10 01:58:36 -0800</delta_ts>
            <desc>patch</desc>
            <filename>CSSContentDistributionValue-crash.patch</filename>
            <type>text/plain</type>
            <size>2075</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg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V0aW9uKCkt
PnZhbHVlSUQoKSAhPSBDU1NWYWx1ZUludmFsaWQpCiAgICAgICAgICAgICBhbGlnbm1lbnREYXRh
LnNldERpc3RyaWJ1dGlvbihjb250ZW50VmFsdWUuZGlzdHJpYnV0aW9uKCkuZ2V0KCkpOwpAQCAt
MTM2Nyw2ICsxMzY5LDggQEAgaW5saW5lIFN0eWxlQ29udGVudEFsaWdubWVudERhdGEgU3R5bGVC
dQogICAgICAgICByZXR1cm4gYWxpZ25tZW50RGF0YTsKICAgICB9CiAjZW5kaWYKKyAgICBpZiAo
IWlzPENTU1ByaW1pdGl2ZVZhbHVlPih2YWx1ZSkpCisgICAgICAgIHJldHVybiBhbGlnbm1lbnRE
YXRhOwogICAgIGF1dG8mIHByaW1pdGl2ZVZhbHVlID0gZG93bmNhc3Q8Q1NTUHJpbWl0aXZlVmFs
dWU+KHZhbHVlKTsKICAgICBzd2l0Y2ggKHByaW1pdGl2ZVZhbHVlLnZhbHVlSUQoKSkgewogICAg
IGNhc2UgQ1NTVmFsdWVTdHJldGNoOgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>