Bug 195211

Summary: [WPE] Public API headers are missing autocleanup definitions
Product: WebKit Reporter: Adrian Perez <aperez>
Component: WPE WebKitAssignee: Adrian Perez <aperez>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, commit-queue, darin, mcatanzaro, pnormand
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=195245
Attachments:
Description Flags
Patch
none
Patch v2 none

Description Adrian Perez 2019-03-01 09:04:48 PST
For the GTK port, there are the following headers which define them:

  * Source/WebKit/UIProcess/API/gtk/WebKitAutocleanups.h
  * Source/WebKit/WebProcess/InjectedBundle/API/gtk/WebKitWebExtensionAutocleanups.h

…but the WPE port does not have them.
Comment 1 Adrian Perez 2019-03-01 09:34:59 PST
Created attachment 363336 [details]
Patch
Comment 2 Adrian Perez 2019-03-01 09:58:24 PST
Created attachment 363341 [details]
Patch v2
Comment 3 Adrian Perez 2019-03-01 10:04:49 PST
If there are no objections, I would like to have this merged
to the 2.24 release branch as well =)
Comment 4 Philippe Normand 2019-03-01 10:46:21 PST
Comment on attachment 363341 [details]
Patch v2

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

> Source/WebKit/UIProcess/API/wpe/WebKitAutocleanups.h:13
> + * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''

Any reason for using Apple's copyright header instead of the usual LGPL header?
Comment 5 Adrian Perez 2019-03-01 10:57:12 PST
(In reply to Philippe Normand from comment #4)
> Comment on attachment 363341 [details]
> Patch v2
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=363341&action=review
> 
> > Source/WebKit/UIProcess/API/wpe/WebKitAutocleanups.h:13
> > + * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
> 
> Any reason for using Apple's copyright header instead of the usual LGPL
> header?

I guess none. In this case the headers were copied from the GTK port
and adapted, so the GTK port headers are also using this instead of the
LGPL license blurb. My guess is that when the headers for the autocleanups
were first added for the GTK port nobody realized during the review that
the LGPL version should have been used (as seen in the rest of GTK/WPE
API headers).
Comment 6 Philippe Normand 2019-03-02 09:24:29 PST
Comment on attachment 363341 [details]
Patch v2

Let's land this and fix the headers later on.
Comment 7 Adrian Perez 2019-03-02 09:29:55 PST
(In reply to Adrian Perez from comment #5)
> (In reply to Philippe Normand from comment #4)
> > Comment on attachment 363341 [details]
> > Patch v2
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=363341&action=review
> > 
> > > Source/WebKit/UIProcess/API/wpe/WebKitAutocleanups.h:13
> > > + * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
> > 
> > Any reason for using Apple's copyright header instead of the usual LGPL
> > header?
> 
> I guess none. In this case the headers were copied from the GTK port
> and adapted, so the GTK port headers are also using this instead of the
> LGPL license blurb. My guess is that when the headers for the autocleanups
> were first added for the GTK port nobody realized during the review that
> the LGPL version should have been used (as seen in the rest of GTK/WPE
> API headers).

There's only a few authors for these files, so it should be easy to
find the people and have them agree to change the license header. I have
filed bug #195245 to do that.
Comment 8 WebKit Commit Bot 2019-03-02 09:50:18 PST
Comment on attachment 363341 [details]
Patch v2

Clearing flags on attachment: 363341

Committed r242312: <https://trac.webkit.org/changeset/242312>
Comment 9 WebKit Commit Bot 2019-03-02 09:50:20 PST
All reviewed patches have been landed.  Closing bug.