WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
226846
[Monterey] Support building WebKit
https://bugs.webkit.org/show_bug.cgi?id=226846
Summary
[Monterey] Support building WebKit
Jonathan Bedard
Reported
2021-06-09 13:28:15 PDT
We need to add some SPI declaration to build WebKit with the Monterey SDK.
Attachments
Patch
(36.37 KB, patch)
2021-06-09 13:39 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(37.56 KB, patch)
2021-06-09 14:46 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch for landing
(35.67 KB, patch)
2021-06-11 12:49 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(7.55 KB, patch)
2021-06-13 12:36 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(7.48 KB, patch)
2021-06-14 09:33 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch for landing
(1.03 KB, patch)
2021-06-15 10:32 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-06-09 13:28:41 PDT
<
rdar://problem/79095148
>
Jonathan Bedard
Comment 2
2021-06-09 13:39:31 PDT
Created
attachment 431005
[details]
Patch
Tim Horton
Comment 3
2021-06-09 13:48:42 PDT
Comment on
attachment 431005
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431005&action=review
> Source/WebCore/PAL/pal/spi/cocoa/CryptoKitCBridgingSPI.h:51 > +- (instancetype)initWithPublicKey:(NSData*)spkiBytes error:(NSError * __autoreleasing *)error;
It seems like in nearby code we have fixed up the star-sidedness of the copied SPI to match WebKit style. But I can also see an argument for "just paste it as-is". Not sure which is preferable.
> Source/WebCore/testing/Internals.cpp:5644 > + , Vector<TextRecognitionDataDetector>()
I don't understand this and the changelog doesn't help
> Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm:457 > - return { WebCore::ExceptionData { WebCore::InvalidStateError } }; > + return { WebCore::ExceptionData { WebCore::InvalidStateError, String() } };
I don't understand these, and the changelog only says what you are doing, not why.
Wenson Hsieh
Comment 4
2021-06-09 13:56:29 PDT
Comment on
attachment 431005
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431005&action=review
> Source/WebCore/PAL/pal/spi/mac/QuickLookMacSPI.h:76 > +#if ENABLE(IMAGE_ANALYSIS)
Nit - we should avoid using an ENABLE feature flag to guard this SPI header. Maybe we could add `HAVE_QUICKLOOK_PREVIEW_ACTIVITY` and use it here?
Wenson Hsieh
Comment 5
2021-06-09 14:00:54 PDT
Comment on
attachment 431005
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431005&action=review
> Source/WebKit/Platform/spi/Cocoa/VisionKitSPI.h:26 > +#if ENABLE(IMAGE_ANALYSIS)
(Nit - similar comment here — maybe `HAVE_VK_IMAGE_ANALYSIS`?)
Jonathan Bedard
Comment 6
2021-06-09 14:25:42 PDT
Comment on
attachment 431005
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431005&action=review
>> Source/WebCore/PAL/pal/spi/cocoa/CryptoKitCBridgingSPI.h:51 >> +- (instancetype)initWithPublicKey:(NSData*)spkiBytes error:(NSError * __autoreleasing *)error; > > It seems like in nearby code we have fixed up the star-sidedness of the copied SPI to match WebKit style. But I can also see an argument for "just paste it as-is". Not sure which is preferable.
Agree with fixing the star-sidedness, style checker didn't complain, so I didn't notice it. That being said, I'm unclear what the right thing to do with star-sidedness and __autoreleasing is
>> Source/WebCore/testing/Internals.cpp:5644 >> + , Vector<TextRecognitionDataDetector>() > > I don't understand this and the changelog doesn't help
I'll add the information to the changelog, but basically, we're getting this compiler error: missing field 'message' initializer [-Werror,-Wmissing-field-initializers]
Jonathan Bedard
Comment 7
2021-06-09 14:46:02 PDT
Created
attachment 431013
[details]
Patch
EWS
Comment 8
2021-06-11 12:21:04 PDT
Tools/Scripts/svn-apply failed to apply
attachment 431013
[details]
to trunk. Please resolve the conflicts and upload a new patch.
Jonathan Bedard
Comment 9
2021-06-11 12:49:05 PDT
Created
attachment 431222
[details]
Patch for landing
EWS
Comment 10
2021-06-11 13:44:28 PDT
Committed
r278780
(
238737@main
): <
https://commits.webkit.org/238737@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 431222
[details]
.
Chris Dumez
Comment 11
2021-06-11 13:54:57 PDT
Seems to have broken internal build? /Volumes/Data/WebKit/OpenSource/WebKitBuild/Debug/usr/local/include/pal/spi/mac/QuickLookMacSPI.h:78:28: error: redefinition of 'QLPreviewActivity' typedef NS_ENUM(NSInteger, QLPreviewActivity) {
Jonathan Bedard
Comment 12
2021-06-11 13:59:56 PDT
Committed
r278781
(
238738@main
): <
https://commits.webkit.org/238738@main
>
Jonathan Bedard
Comment 13
2021-06-13 12:36:12 PDT
Reopening to attach new patch.
Jonathan Bedard
Comment 14
2021-06-13 12:36:14 PDT
Created
attachment 431285
[details]
Patch
Chris Dumez
Comment 15
2021-06-14 08:55:03 PDT
Comment on
attachment 431285
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431285&action=review
> Source/WebCore/html/HTMLElement.cpp:1377 > + TextRecognitionLineElements lineElements { lineOrDataDetector, Vector<Ref<HTMLDivElement>>() };
Can probably use: TextRecognitionLineElements lineElements { lineOrDataDetector, { } };
> Source/WebCore/html/HTMLElement.cpp:1430 > + TextRecognitionLineElements lineElements { lineContainer, Vector<Ref<HTMLDivElement>>() };
ditto.
Jonathan Bedard
Comment 16
2021-06-14 09:33:36 PDT
Created
attachment 431338
[details]
Patch
Jonathan Bedard
Comment 17
2021-06-14 09:39:25 PDT
(In reply to Chris Dumez from
comment #15
)
> Comment on
attachment 431285
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=431285&action=review
> > > Source/WebCore/html/HTMLElement.cpp:1377 > > + TextRecognitionLineElements lineElements { lineOrDataDetector, Vector<Ref<HTMLDivElement>>() }; > > Can probably use: > TextRecognitionLineElements lineElements { lineOrDataDetector, { } }; > > > Source/WebCore/html/HTMLElement.cpp:1430 > > + TextRecognitionLineElements lineElements { lineContainer, Vector<Ref<HTMLDivElement>>() }; > > ditto.
Good call, that does work is certainly an improvement.
EWS
Comment 18
2021-06-14 10:34:31 PDT
Committed
r278834
(
238785@main
): <
https://commits.webkit.org/238785@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 431338
[details]
.
Jonathan Bedard
Comment 19
2021-06-15 10:32:21 PDT
Reopening to attach new patch.
Jonathan Bedard
Comment 20
2021-06-15 10:32:24 PDT
Created
attachment 431455
[details]
Patch for landing
EWS
Comment 21
2021-06-15 12:04:51 PDT
Committed
r278889
(
238831@main
): <
https://commits.webkit.org/238831@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 431455
[details]
.
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