WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
208669
Pre-fetch first page in new PDF loading model
https://bugs.webkit.org/show_bug.cgi?id=208669
Summary
Pre-fetch first page in new PDF loading model
Brady Eidson
Reported
2020-03-05 15:39:23 PST
Pre-fetch first page in new PDF loading model
Attachments
Patch
(4.81 KB, patch)
2020-03-05 15:44 PST
,
Brady Eidson
achristensen
: review+
Details
Formatted Diff
Diff
PFL
(4.87 KB, patch)
2020-03-05 16:12 PST
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2020-03-05 15:44:19 PST
Created
attachment 392638
[details]
Patch
Alex Christensen
Comment 2
2020-03-05 15:54:28 PST
Comment on
attachment 392638
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392638&action=review
> Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:98 > +-(void) preloadDataOfPagesInRange:(NSRange)range onQueue:(dispatch_queue_t)queue completion:(void (^)(NSIndexSet* loadedPageIndexes))completionBlock;
Space in wrong place. Same with previous line.
> Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:711 > + auto firstPageQueue = WorkQueue::create("PDF first page work queue");
We should reuse this.
Brady Eidson
Comment 3
2020-03-05 16:11:24 PST
(In reply to Alex Christensen from
comment #2
)
> Comment on
attachment 392638
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=392638&action=review
> > > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:98 > > +-(void) preloadDataOfPagesInRange:(NSRange)range onQueue:(dispatch_queue_t)queue completion:(void (^)(NSIndexSet* loadedPageIndexes))completionBlock; > > Space in wrong place. > Same with previous line. > > > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:711 > > + auto firstPageQueue = WorkQueue::create("PDF first page work queue"); > > We should reuse this.
There's only ever one per PDFPlugin, and there's (generally) only ever one PDFPlugin per WebContent process. So I agree in principal, but in practice it's a non-issue.
Brady Eidson
Comment 4
2020-03-05 16:12:59 PST
Created
attachment 392643
[details]
PFL
Radar WebKit Bug Importer
Comment 5
2020-03-05 18:16:36 PST
<
rdar://problem/60112775
>
Radar WebKit Bug Importer
Comment 6
2020-03-05 18:16:37 PST
<
rdar://problem/60112772
>
WebKit Commit Bot
Comment 7
2020-03-05 19:00:06 PST
Comment on
attachment 392643
[details]
PFL Clearing flags on attachment: 392643 Committed
r257964
: <
https://trac.webkit.org/changeset/257964
>
WebKit Commit Bot
Comment 8
2020-03-05 19:00:08 PST
All reviewed patches have been landed. Closing bug.
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