Bug 185779

Summary: Handle failure to extend sandbox gracefully
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: WebRTCAssignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, realdawei, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Fix test results none

Description Eric Carlson 2018-05-18 12:11:34 PDT
Handle failure to extend sandbox gracefully
Comment 1 Eric Carlson 2018-05-18 12:12:25 PDT
<rdar://problem/40316349>
Comment 2 Eric Carlson 2018-05-18 12:28:12 PDT
Created attachment 340729 [details]
Patch
Comment 3 Brent Fulgham 2018-05-18 12:45:25 PDT
Comment on attachment 340729 [details]
Patch

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

Looks great! r=me

> Source/WebKit/UIProcess/UserMediaProcessManager.cpp:186
> +    UNUSED_PARAM(proxy);

You probably don't need UNUSED_PARAM here, since proxy is used below.
Comment 4 WebKit Commit Bot 2018-05-18 13:13:40 PDT
Comment on attachment 340729 [details]
Patch

Clearing flags on attachment: 340729

Committed r231979: <https://trac.webkit.org/changeset/231979>
Comment 5 WebKit Commit Bot 2018-05-18 13:13:42 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Dawei Fenton (:realdawei) 2018-05-18 14:57:38 PDT
The API test added with this change is failing regularly: MediaCaptureSimulateFailedSandbox.Test

https://build.webkit.org/builders/Apple%20High%20Sierra%20Release%20WK1%20%28Tests%29/builds/5462/steps/run-api-tests/logs/stdio

 /Volumes/Data/slave/ios-simulator-11-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/UserMediaSimulateFailedSandbox.mm:139
        Value of: "AbortError,Unable to extend sandbox"
        Expected: [error UTF8String]
        Which is: "AbortError,Unable to extend sandbox."
Comment 7 Eric Carlson 2018-05-18 15:12:02 PDT
Reopening to attach new patch.
Comment 8 Eric Carlson 2018-05-18 15:12:03 PDT
Created attachment 340743 [details]
Fix test results
Comment 9 WebKit Commit Bot 2018-05-18 16:32:42 PDT
Comment on attachment 340743 [details]
Fix test results

Clearing flags on attachment: 340743

Committed r231992: <https://trac.webkit.org/changeset/231992>
Comment 10 WebKit Commit Bot 2018-05-18 16:32:44 PDT
All reviewed patches have been landed.  Closing bug.