<?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>190204</bug_id>
          
          <creation_ts>2018-10-02 09:21:19 -0700</creation_ts>
          <short_desc>slotchange event is not fired when upgrading connected custom element</short_desc>
          <delta_ts>2018-10-04 14:41:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>189144</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tomek">tomalecpub</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1465595</commentid>
    <comment_count>0</comment_count>
    <who name="Tomek">tomalecpub</who>
    <bug_when>2018-10-02 09:21:19 -0700</bug_when>
    <thetext>## Live sample 

https://jsbin.com/xibohon/3/edit?html,console,output

## Steps to reproduce
 1. create custom element with a child: `&lt;my-element&gt;&lt;div&gt;&lt;/div&gt;&lt;/my-element&gt;`
 2. define this custom element:
   - on constructor create shadow root, with default slot,
   - attach `slotchange` event listener
 3. observe `slotchange` callback execution.

## Expected result
 `slotchange` callback is called after `connectedCallback`
 This is how it works in Chrome 69.0.3497.100 and Firefox 63.


## Expected result
 `slotchange` callback is not called</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466531</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-10-04 14:41:12 -0700</bug_when>
    <thetext>Thanks for the bug report. This issue should be fixed in Safari Technology Preview 66. Please try it out at: https://webkit.org/downloads/

*** This bug has been marked as a duplicate of bug 189144 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>