Add SPI to give injected bundles access to displayed PDFDocuments
<rdar://problem/49339242>
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.