<?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>164798</bug_id>
          
          <creation_ts>2016-11-15 15:11:03 -0800</creation_ts>
          <short_desc>REGRESSION (r208730): WTFCrashWithSecurityImplication under UserMediaPermissionRequestManager::removeMediaRequestFromMaps</short_desc>
          <delta_ts>2016-11-15 15:16:52 -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>Media</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=164715</see_also>
          <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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>ryanhaddad</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1251660</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-11-15 15:11:03 -0800</bug_when>
    <thetext>Got this crash when running the tests locally. The code that crashes was added today in r208730.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x00000001065257a4 WTFCrash + 36 (Assertions.cpp:323)
1   com.apple.JavaScriptCore      	0x00000001065257b9 WTFCrashWithSecurityImplication + 9
2   com.apple.WebCore             	0x0000000108b7801c WTF::match_constness&lt;WebCore::ScriptExecutionContext, WebCore::Document&gt;::type* WTF::downcast&lt;WebCore::Document, WebCore::ScriptExecutionContext&gt;(WebCore::ScriptExecutionContext*) + 76 (TypeCasts.h:89)
3   com.apple.WebCore             	0x000000010b498029 WebCore::UserMediaRequest::document() const + 57 (UserMediaRequest.cpp:246)
4   com.apple.WebKit              	0x000000010276a357 WebKit::UserMediaPermissionRequestManager::removeMediaRequestFromMaps(WebCore::UserMediaRequest&amp;) + 39 (UserMediaPermissionRequestManager.cpp:126)
5   com.apple.WebKit              	0x000000010276a133 WebKit::UserMediaPermissionRequestManager::cancelUserMediaRequest(WebCore::UserMediaRequest&amp;) + 99 (UserMediaPermissionRequestManager.cpp:108)
6   com.apple.WebKit              	0x0000000102cf8bb9 WebKit::WebUserMediaClient::cancelUserMediaAccessRequest(WebCore::UserMediaRequest&amp;) + 41 (WebUserMediaClient.cpp:51)
7   com.apple.WebCore             	0x000000010b497fe3 WebCore::UserMediaController::cancelUserMediaAccessRequest(WebCore::UserMediaRequest&amp;) + 51 (UserMediaController.h:64)
8   com.apple.WebCore             	0x000000010b497f53 WebCore::UserMediaRequest::contextDestroyed() + 67 (UserMediaRequest.cpp:235)
9   com.apple.WebCore             	0x000000010aee4919 WebCore::ScriptExecutionContext::~ScriptExecutionContext() + 137 (ScriptExecutionContext.cpp:127)
10  com.apple.WebCore             	0x00000001091f3dbe WebCore::Document::~Document() + 8174 (Document.cpp:656)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1251665</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-11-15 15:13:20 -0800</bug_when>
    <thetext>No, I misread the patch. It&apos;s just the same crash, not fixed. Will reopen that bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1251668</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-11-15 15:13:49 -0800</bug_when>
    <thetext>&lt;rdar://problem/29277180&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>