WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 224445
[macOS] Refactor logic for presenting the shared QLPreviewPanel when revealing an image
https://bugs.webkit.org/show_bug.cgi?id=224445
Summary
[macOS] Refactor logic for presenting the shared QLPreviewPanel when revealin...
Wenson Hsieh
Reported
2021-04-12 12:40:16 PDT
.
Attachments
Patch
(19.42 KB, patch)
2021-04-12 13:27 PDT
,
Wenson Hsieh
aestes
: review+
Details
Formatted Diff
Diff
Patch for landing
(19.71 KB, patch)
2021-04-13 14:14 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-04-12 12:46:04 PDT
<
rdar://problem/76552762
>
Wenson Hsieh
Comment 2
2021-04-12 13:27:25 PDT
Created
attachment 425781
[details]
Patch
Andy Estes
Comment 3
2021-04-13 12:52:34 PDT
Comment on
attachment 425781
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=425781&action=review
> Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm:46 > +@class QLPreviewPanel;
Do you still need this since WebViewImpl.h also declares QLPreviewPanel?
> Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm:139 > +#import "WKImageExtractionPreviewController.h"
Could this be imported unconditionally?
Devin Rousso
Comment 4
2021-04-13 13:07:03 PDT
Comment on
attachment 425781
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=425781&action=review
r=me as well :)
> Source/WebKit/ChangeLog:23 > + To address this, we refactor this logic is that we make `WKWebView` (or `WKView`, if applicable) capable of
oops
Wenson Hsieh
Comment 5
2021-04-13 13:35:58 PDT
Comment on
attachment 425781
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=425781&action=review
Thanks for the reviews!
>> Source/WebKit/ChangeLog:23 >> + To address this, we refactor this logic is that we make `WKWebView` (or `WKView`, if applicable) capable of > > oops
😅
>> Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm:46 >> +@class QLPreviewPanel; > > Do you still need this since WebViewImpl.h also declares QLPreviewPanel?
Good catch! I should be able to remove this.
>> Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm:139 >> +#import "WKImageExtractionPreviewController.h" > > Could this be imported unconditionally?
Ah, yes, both of these headers can be imported unconditionally since the header contents are already guarded by the flag. I'll move them out of here and remove the #if.
Wenson Hsieh
Comment 6
2021-04-13 14:14:49 PDT
Created
attachment 425912
[details]
Patch for landing
EWS
Comment 7
2021-04-13 14:44:40 PDT
Committed
r275913
(
236477@main
): <
https://commits.webkit.org/236477@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 425912
[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