Summary: | Add SPI to give injected bundles access to displayed PDFDocuments | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Remy Demarest <rdemarest> | ||||||||
Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | commit-queue, ews-watchlist, rdemarest, thorton | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Mac | ||||||||||
OS: | macOS 10.14 | ||||||||||
Attachments: |
|
Description
Remy Demarest
2019-04-01 17:03:51 PDT
Created attachment 366445 [details]
Patch
Attachment 366445 [details] did not pass style-queue:
ERROR: Source/WebKit/WebProcess/InjectedBundle/API/c/mac/WKBundlePageMac.mm:31: Alphabetical sorting problem. [build/include_order] [4]
ERROR: Source/WebKit/WebProcess/InjectedBundle/API/c/mac/WKBundlePageMac.h:26: Use #pragma once instead of #ifndef for header guard. [build/header_guard] [5]
Total errors found: 2 in 4 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 366445 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366445&action=review > Source/WebKit/WebProcess/InjectedBundle/API/c/mac/WKBundlePageMac.h:40 > +#ifdef __OBJC__ I feel like at this point you can just toss the whole file in #ifdef __OBJC__, no need to open and close it a few times > Source/WebKit/WebProcess/InjectedBundle/API/c/mac/WKBundlePageMac.mm:36 > +#include <WebCore/Frame.h> #import! Created attachment 366448 [details]
Updated patch
Comment on attachment 366448 [details] Updated patch View in context: https://bugs.webkit.org/attachment.cgi?id=366448&action=review > Source/WebKit/WebProcess/InjectedBundle/API/c/mac/WKBundlePageMac.mm:48 > + return pluginView->pdfDocumentForPrinting().get(); Unlikely to come up, but shouldn't this be a .autorelease()? Created attachment 366451 [details]
Updated patch using autorelease()
Comment on attachment 366451 [details] Updated patch using autorelease() Clearing flags on attachment: 366451 Committed r243731: <https://trac.webkit.org/changeset/243731> All reviewed patches have been landed. Closing bug. |