<?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>135022</bug_id>
          
          <creation_ts>2014-07-17 13:50:40 -0700</creation_ts>
          <short_desc>Crash in ServicesOverlayController::~ServicesOverlayController</short_desc>
          <delta_ts>2014-07-17 14:05:39 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</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="Brady Eidson">beidson</reporter>
          <assigned_to name="Brady Eidson">beidson</assigned_to>
          <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1023084</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2014-07-17 13:50:40 -0700</bug_when>
    <thetext>Crash in ServicesOverlayController::~ServicesOverlayController

No need to uninstall the PageOverlay, because in WebPage teardown the PageOverlay has already been destroyed.

&lt;rdar://problem/17622172&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023085</commentid>
    <comment_count>1</comment_count>
      <attachid>235090</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2014-07-17 13:52:32 -0700</bug_when>
    <thetext>Created attachment 235090
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023087</commentid>
    <comment_count>2</comment_count>
      <attachid>235090</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2014-07-17 13:54:32 -0700</bug_when>
    <thetext>Comment on attachment 235090
Patch v1 

View in context: https://bugs.webkit.org/attachment.cgi?id=235090&amp;action=review

&gt; Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController.mm:-86
&gt; -        m_webPage-&gt;uninstallPageOverlay(m_servicesOverlay, PageOverlay::FadeMode::DoNotFade);

you should assert that your back pointer was nulled out (and let it be nulled out! fix the early return in willMoveToWebPage).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023090</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2014-07-17 14:00:16 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 235090 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=235090&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController.mm:-86
&gt; &gt; -        m_webPage-&gt;uninstallPageOverlay(m_servicesOverlay, PageOverlay::FadeMode::DoNotFade);
&gt; 
&gt; you should assert that your back pointer was nulled out (and let it be nulled out! fix the early return in willMoveToWebPage).

Nevermind!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023092</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2014-07-17 14:03:40 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 235090 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=235090&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController.mm:-86
&gt; &gt; -        m_webPage-&gt;uninstallPageOverlay(m_servicesOverlay, PageOverlay::FadeMode::DoNotFade);
&gt; 
&gt; you should assert that your back pointer was nulled out (and let it be nulled out! fix the early return in willMoveToWebPage).

Clarified on IRC - Tim misread the early return - It&apos;s correct.

But he also was assuming that willMoveToWebPage was called with a null WebPage on WebPage teardown.  It&apos;s not.

Filed https://bugs.webkit.org/show_bug.cgi?id=135024 for that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023093</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2014-07-17 14:05:39 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/171194</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>235090</attachid>
            <date>2014-07-17 13:52:32 -0700</date>
            <delta_ts>2014-07-17 13:54:31 -0700</delta_ts>
            <desc>Patch v1 </desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>1500</size>
            <attacher name="Brady Eidson">beidson</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA4MzAxMWE4Li45MmU5MWMzIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQg
QEAKKzIwMTQtMDctMTcgIEJyYWR5IEVpZHNvbiAgPGJlaWRzb25AYXBwbGUuY29tPgorCisgICAg
ICAgIENyYXNoIGluIFNlcnZpY2VzT3ZlcmxheUNvbnRyb2xsZXI6On5TZXJ2aWNlc092ZXJsYXlD
b250cm9sbGVyLgorICAgICAgICA8cmRhcjovL3Byb2JsZW0vMTc2MjIxNzI+IGFuZCBodHRwczov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTM1MDIyCisKKyAgICAgICAgUmV2aWV3
ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBXZWJQcm9jZXNzL1dlYlBhZ2UvbWFj
L1NlcnZpY2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GF5Q29u
dHJvbGxlcigpCiB7Ci0gICAgaWYgKG1fc2VydmljZXNPdmVybGF5KSB7Ci0gICAgICAgIEFTU0VS
VChtX3dlYlBhZ2UpOwotICAgICAgICBtX3dlYlBhZ2UtPnVuaW5zdGFsbFBhZ2VPdmVybGF5KG1f
c2VydmljZXNPdmVybGF5LCBQYWdlT3ZlcmxheTo6RmFkZU1vZGU6OkRvTm90RmFkZSk7Ci0gICAg
fQogfQogCiB2b2lkIFNlcnZpY2VzT3ZlcmxheUNvbnRyb2xsZXI6OnBhZ2VPdmVybGF5RGVzdHJv
eWVkKFBhZ2VPdmVybGF5KikK
</data>
<flag name="review"
          id="259637"
          type_id="1"
          status="+"
          setter="thorton"
    />
          </attachment>
      

    </bug>

</bugzilla>