Bug 144832 - Page overlay action context override should indicate the source of the request
Summary: Page overlay action context override should indicate the source of the request
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-09 15:12 PDT by Tim Horton
Modified: 2015-05-11 10:42 PDT (History)
3 users (show)

See Also:


Attachments
Patch (14.13 KB, patch)
2015-05-09 15:13 PDT, Tim Horton
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2015-05-09 15:12:42 PDT
Page overlay action context override should indicate the source of the request
Comment 1 Tim Horton 2015-05-09 15:13:22 PDT
Created attachment 252785 [details]
Patch
Comment 2 WebKit Commit Bot 2015-05-09 15:15:18 PDT
Attachment 252785 [details] did not pass style-queue:


ERROR: Source/WebKit2/WebProcess/WebPage/WebPageOverlay.cpp:123:  Declaration has space between type name and * in DDActionContext *WebPageOverlay  [whitespace/declaration] [3]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Darin Adler 2015-05-10 13:54:57 PDT
Comment on attachment 252785 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=252785&action=review

> Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:47
> +typedef uint32_t _WKBundlePageOverlayActionContextRequestType;

Not sure I understand the rationale behind the leading underscore here.
Comment 4 Tim Horton 2015-05-11 10:42:01 PDT
(In reply to comment #3)
> Comment on attachment 252785 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=252785&action=review
> 
> > Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:47
> > +typedef uint32_t _WKBundlePageOverlayActionContextRequestType;
> 
> Not sure I understand the rationale behind the leading underscore here.

I think it's to avoid naming conflicts with potential future Modern API enum names (the enum values are similarly uniqified by the leading 'k'). Anders points out that this doesn't help if we want to add Modern SPI (because that would have a leading underscore as well), but we don't really have a plan for that yet.

https://trac.webkit.org/changeset/184106