WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
189972
Allow for suffixes to com.apple.WebKit.WebContent
https://bugs.webkit.org/show_bug.cgi?id=189972
Summary
Allow for suffixes to com.apple.WebKit.WebContent
Alex Christensen
Reported
2018-09-25 13:43:29 PDT
Allow for suffixes to com.apple.WebKit.WebContent
Attachments
Patch
(2.84 KB, patch)
2018-09-25 13:45 PDT
,
Alex Christensen
cdumez
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2018-09-25 13:45:22 PDT
Created
attachment 350783
[details]
Patch
Alex Christensen
Comment 2
2018-09-25 14:06:56 PDT
http://trac.webkit.org/r236474
Radar WebKit Bug Importer
Comment 3
2018-09-25 14:07:31 PDT
<
rdar://problem/44773386
>
Alexey Proskuryakov
Comment 4
2018-09-25 20:01:32 PDT
This will be tricky to start using, because many system frameworks hardcore existing WebContent names. We’ll need to work with them if we want to add more names.
Darin Adler
Comment 5
2018-09-26 09:41:32 PDT
Comment on
attachment 350783
[details]
Patch Gets rid of the "com.apple.WebProcess" bundle ID. Was that being used anywhere?
Alex Christensen
Comment 6
2018-09-26 10:59:56 PDT
(In reply to Alexey Proskuryakov from
comment #4
)
> This will be tricky to start using, because many system frameworks hardcode > existing WebContent names. We’ll need to work with them if we want to add > more names.
Tricky but possible. I intend to do just that. (In reply to Darin Adler from
comment #5
)
> Comment on
attachment 350783
[details]
> Patch > > Gets rid of the "com.apple.WebProcess" bundle ID. Was that being used > anywhere?
I believe it's historical.
Andy Estes
Comment 7
2018-09-26 17:07:50 PDT
Comment on
attachment 350783
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=350783&action=review
> Source/WebCore/platform/cocoa/RuntimeApplicationChecksCocoa.mm:89 > + static bool mainBundleIsWebProcess = [[[NSBundle mainBundle] bundleIdentifier] hasPrefix:@"com.apple.WebKit.WebContent"];
I don’t know what suffixes you have in mind, but I’m a little surprised that the prefix string doesn’t end in a period. Will a suffix ever not be separated from the prefix by a period?
Alex Christensen
Comment 8
2018-09-26 17:08:54 PDT
com.apple.WebKit.WebContent is valid com.apple.WebKit.WebContent.something is valid It can't have a period. There might be no suffix.
Andy Estes
Comment 9
2018-09-26 17:13:03 PDT
(In reply to Alex Christensen from
comment #8
)
> com.apple.WebKit.WebContent is valid > com.apple.WebKit.WebContent.something is valid > It can't have a period. There might be no suffix.
com.apple.WebKit.WebContentdevelopment is also valid. Is that what you intend?
Alex Christensen
Comment 10
2018-09-26 17:15:16 PDT
Are you suggesting we check for exact equality with "com.apple.WebKit.WebContent" or beginning with "com.apple.WebKit.WebContent."? I think that's overkill, especially since the right solution is to remove these bundle checks entirely.
Andy Estes
Comment 11
2018-09-26 17:43:12 PDT
(In reply to Alex Christensen from
comment #10
)
> Are you suggesting we check for exact equality with > "com.apple.WebKit.WebContent" or beginning with > "com.apple.WebKit.WebContent."? I think that's overkill, especially since > the right solution is to remove these bundle checks entirely
You could also check if the string begins with com.apple.WebKit.WebContent and is equal in length to the prefix or has a period as the first character in the suffix. That wouldn’t require two comparisons.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug