Bug 207514

Summary: Deprecate _WKUserContentWorld replaced by WKContentWorld
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: WebKit APIAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, commit-queue, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
patch with changelog
none
patch
none
Patch achristensen: commit-queue-

Alex Christensen
Reported 2020-02-10 15:47:32 PST
And add some SPI to aid with transition.
Attachments
patch (14.88 KB, patch)
2020-02-10 16:31 PST, Alex Christensen
no flags
patch with changelog (18.28 KB, patch)
2020-02-10 16:33 PST, Alex Christensen
no flags
patch (18.29 KB, patch)
2020-02-10 16:34 PST, Alex Christensen
no flags
Patch (4.33 KB, patch)
2020-02-11 15:57 PST, Alex Christensen
achristensen: commit-queue-
Alex Christensen
Comment 1 2020-02-10 16:31:20 PST
Alex Christensen
Comment 2 2020-02-10 16:33:24 PST
Created attachment 390310 [details] patch with changelog
Alex Christensen
Comment 3 2020-02-10 16:34:56 PST
Sam Weinig
Comment 4 2020-02-10 18:02:35 PST
Is this being renamed because ContentWorlds extend the functionality beyond the user origin (origin in the sense of https://developer.mozilla.org/en-US/docs/Web/CSS/Cascade#Origin_of_CSS_declarations)? e.g. does this allow modifying the user-agent or author origin?
Alex Christensen
Comment 5 2020-02-11 09:47:14 PST
That sounds like a good question to ask in the internal review process that settled on that name, or in https://bugs.webkit.org/show_bug.cgi?id=207351 where the API was introduced. I think it was because of confusion as to who the "User" is in this case, but I can't recall.
WebKit Commit Bot
Comment 6 2020-02-11 10:14:49 PST
Comment on attachment 390311 [details] patch Rejecting attachment 390311 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 390311, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Logging in as commit-queue@webkit.org... Fetching: https://bugs.webkit.org/attachment.cgi?id=390311&action=edit Fetching: https://bugs.webkit.org/show_bug.cgi?id=207514&ctype=xml&excludefield=attachmentdata Processing 1 patch from 1 bug. Processing patch 390311 from bug 207514. Fetching: https://bugs.webkit.org/attachment.cgi?id=390311 Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Brady Eidson']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Parsed 17 diffs from patch file(s). patching file Source/WebKit/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Source/WebKit/Shared/Cocoa/APIObject.mm patching file Source/WebKit/UIProcess/API/APIContentWorld.cpp patching file Source/WebKit/UIProcess/API/APIContentWorld.h patching file Source/WebKit/UIProcess/API/APIUserContentWorld.cpp patching file Source/WebKit/UIProcess/API/APIUserContentWorld.h patching file Source/WebKit/UIProcess/API/Cocoa/WKContentWorld.mm patching file Source/WebKit/UIProcess/API/Cocoa/WKContentWorldInternal.h patching file Source/WebKit/UIProcess/API/Cocoa/WKContentWorldPrivate.h patching file Source/WebKit/UIProcess/API/Cocoa/WKUserContentController.mm patching file Source/WebKit/UIProcess/API/Cocoa/WKUserScript.mm patching file Source/WebKit/UIProcess/API/Cocoa/_WKUserContentWorld.h patching file Source/WebKit/UIProcess/API/Cocoa/_WKUserContentWorld.mm patching file Source/WebKit/UIProcess/API/Cocoa/_WKUserContentWorldInternal.h patching file Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.h patching file Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.mm patching file Source/WebKit/WebKit.xcodeproj/project.pbxproj Hunk #1 FAILED at 1726. Hunk #2 FAILED at 4988. Hunk #3 succeeded at 6965 (offset 8 lines). Hunk #4 succeeded at 11232 (offset 14 lines). 2 out of 4 hunks FAILED -- saving rejects to file Source/WebKit/WebKit.xcodeproj/project.pbxproj.rej Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Brady Eidson']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output: https://webkit-queues.webkit.org/results/13320786
Sam Weinig
Comment 7 2020-02-11 10:48:43 PST
(In reply to Alex Christensen from comment #5) > That sounds like a good question to ask in the internal review process that > settled on that name, or in https://bugs.webkit.org/show_bug.cgi?id=207351 > where the API was introduced. I think it was because of confusion as to who > the "User" is in this case, but I can't recall. Sorry, I must have missed those. So what is the answer? Does it extend it beyond User?
Alex Christensen
Comment 8 2020-02-11 11:40:24 PST
I told you everything I know in comment 5. This question is also not relevant to this patch, which takes an existing API and makes a transition path to it. Committed to http://trac.webkit.org/r256332
Radar WebKit Bug Importer
Comment 9 2020-02-11 11:41:16 PST
Alex Christensen
Comment 10 2020-02-11 13:09:35 PST
Ryan Haddad
Comment 11 2020-02-11 14:40:04 PST
Reverted r256345 for reason: Broke iOS builds. Committed r256373: <https://trac.webkit.org/changeset/256373>
Ryan Haddad
Comment 12 2020-02-11 14:45:57 PST
Alex Christensen
Comment 13 2020-02-11 14:51:06 PST
Alex Christensen
Comment 14 2020-02-11 15:57:43 PST
Reopening to attach new patch.
Alex Christensen
Comment 15 2020-02-11 15:57:44 PST
Alex Christensen
Comment 16 2020-02-13 15:08:29 PST
Note You need to log in before you can comment on or make changes to this bug.