Bug 140098

Summary: REGRESSION(r177925): It broke the !ENABLE(INSPECTOR) build
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Blocker CC: burg, commit-queue, japhet, kling, ossy
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 139981    
Attachments:
Description Flags
Patch
none
Patch none

Description Csaba Osztrogonác 2015-01-05 14:09:02 PST
error log:
In file included from ../../Source/WebCore/page/ContentSecurityPolicy.cpp:35:0:
../../Source/WebCore/inspector/InspectorInstrumentation.h:144:12: error: 'InspectorInstrumentationCookie' does not name a type
../../Source/WebCore/inspector/InspectorInstrumentation.h:145:39: error: 'InspectorInstrumentationCookie' does not name a type
../../Source/WebCore/inspector/InspectorInstrumentation.h:145:69: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
../../Source/WebCore/inspector/InspectorInstrumentation.h:146:12: error: 'InspectorInstrumentationCookie' does not name a type
../../Source/WebCore/inspector/InspectorInstrumentation.h:147:59: error: 'InspectorInstrumentationCookie' does not name a type

...
Comment 1 Csaba Osztrogonác 2015-01-09 07:55:10 PST
Created attachment 244341 [details]
Patch
Comment 2 Brian Burg 2015-01-09 07:58:25 PST
Comment on attachment 244341 [details]
Patch

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

> Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp:582
> +#endif

It is my understanding that all callsites into InspectorInstrumentation should not be guarded, since they are defined even if !ENABLE(INSPECTOR) and there are ENABLE(INSPECTOR) guards inside those methods. Is this file missing an #include or something to make it not compile? I would prefer to not have guards here.
Comment 3 Csaba Osztrogonác 2015-01-09 08:26:34 PST
m_currentResourceIdentifier is inside ENABLE(INSPECTOR) guard
which caused build failure in ApplicationCacheGroup.cpp.

Unguarding fixes the build without changing the cpp.
Comment 4 Csaba Osztrogonác 2015-01-09 08:30:09 PST
Created attachment 244344 [details]
Patch
Comment 5 Csaba Osztrogonác 2015-01-09 08:40:54 PST
Just a note, there were a discussion on IRC if !INSPECTOR build is useful or not.

I checked the stripped binary size of the EFL WebKit library on x86_64.
Disabling inspector decreases the original 43Mb with 1.2Mb, circa 2.8%.
Comment 6 Brian Burg 2015-01-09 10:45:35 PST
Comment on attachment 244344 [details]
Patch

Thanks!
Comment 7 WebKit Commit Bot 2015-01-09 11:27:55 PST
Comment on attachment 244344 [details]
Patch

Clearing flags on attachment: 244344

Committed r178177: <http://trac.webkit.org/changeset/178177>
Comment 8 WebKit Commit Bot 2015-01-09 11:27:58 PST
All reviewed patches have been landed.  Closing bug.