Bug 213808

Summary: App-bound JavaScript and Navigation failures should have specific error codes
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit Misc.Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: katherine_cheney, timothy
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
timothy: review+
Patch for landing none

Description Brady Eidson 2020-06-30 12:05:04 PDT
App-bound JavaScript and Navigation failures should have specific error codes

<rdar://problem/64940268>
Comment 1 Brady Eidson 2020-06-30 12:08:09 PDT
Created attachment 403219 [details]
Patch
Comment 2 Brady Eidson 2020-06-30 14:09:04 PDT
(Was holding off on r? until we ran the updated tests on the simulator. They worked)

r?
Comment 3 Kate Cheney 2020-06-30 14:15:53 PDT
Comment on attachment 403219 [details]
Patch

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

LGTM, just the one comment about the error message wording. Thanks for adding this!

> Source/WebKit/UIProcess/API/Cocoa/WKError.mm:81
> +        return WEB_UI_STRING("Attempted to navigation away from an app-bound domain or navigate after using restricted APIs", "WKErrorNavigationAppBoundDomain description");

This probably should be "Attempted to navigate"
Comment 4 Brady Eidson 2020-06-30 14:27:34 PDT
Created attachment 403241 [details]
Patch for landing
Comment 5 EWS 2020-06-30 15:21:39 PDT
Committed r263774: <https://trac.webkit.org/changeset/263774>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 403241 [details].