WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176062
[Win] Compile error, 'Cache' is not declared.
https://bugs.webkit.org/show_bug.cgi?id=176062
Summary
[Win] Compile error, 'Cache' is not declared.
Per Arne Vollan
Reported
2017-08-29 12:49:48 PDT
Release\derivedsources\webcore\JSCache.h(29): error C2065: 'Cache': undeclared identifier (compiling source file Release\DerivedSources\WebCore\JSCache.cpp)
Attachments
Patch
(76.60 KB, patch)
2017-08-29 12:57 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(81.59 KB, patch)
2017-08-29 13:32 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(82.51 KB, patch)
2017-08-29 15:41 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(88.89 KB, patch)
2017-08-29 16:07 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
(1.53 MB, application/zip)
2017-08-29 17:51 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews123 for ios-simulator-wk2
(1.44 MB, application/zip)
2017-08-29 18:06 PDT
,
Build Bot
no flags
Details
Patch
(88.89 KB, patch)
2017-08-30 08:52 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(88.81 KB, patch)
2017-08-30 13:20 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
(1.73 MB, application/zip)
2017-08-30 14:38 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews123 for ios-simulator-wk2
(1.31 MB, application/zip)
2017-08-30 15:10 PDT
,
Build Bot
no flags
Details
Patch
(144.84 KB, patch)
2017-08-31 10:05 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(44.12 KB, patch)
2017-08-31 12:42 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(65.88 KB, patch)
2017-08-31 13:19 PDT
,
Per Arne Vollan
youennf
: review+
Details
Formatted Diff
Diff
Patch
(64.93 KB, patch)
2017-08-31 13:45 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(65.50 KB, patch)
2017-08-31 15:05 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(73.42 KB, patch)
2017-08-31 18:49 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(90.49 KB, patch)
2017-09-01 10:49 PDT
,
Per Arne Vollan
youennf
: review+
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Patch
(93.27 KB, patch)
2017-09-01 12:09 PDT
,
Per Arne Vollan
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Patch
(93.28 KB, patch)
2017-09-01 13:10 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
Per Arne Vollan
Comment 1
2017-08-29 12:57:02 PDT
Created
attachment 319274
[details]
Patch
Per Arne Vollan
Comment 2
2017-08-29 13:32:59 PDT
Created
attachment 319276
[details]
Patch
Per Arne Vollan
Comment 3
2017-08-29 15:41:06 PDT
Created
attachment 319294
[details]
Patch
Per Arne Vollan
Comment 4
2017-08-29 16:07:48 PDT
Created
attachment 319299
[details]
Patch
Build Bot
Comment 5
2017-08-29 17:51:33 PDT
Comment on
attachment 319299
[details]
Patch
Attachment 319299
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/4406565
New failing tests: imported/w3c/web-platform-tests/service-workers/cache-storage/window/cache-storage.https.html imported/w3c/web-platform-tests/service-workers/stub-4.6.2-cache.html js/dom/global-constructors-attributes-dedicated-worker.html imported/w3c/web-platform-tests/service-workers/cache-storage/worker/cache-storage.https.html
Build Bot
Comment 6
2017-08-29 17:51:34 PDT
Created
attachment 319316
[details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 7
2017-08-29 18:06:44 PDT
Comment on
attachment 319299
[details]
Patch
Attachment 319299
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/4406560
New failing tests: imported/w3c/web-platform-tests/service-workers/cache-storage/window/cache-storage.https.html imported/w3c/web-platform-tests/service-workers/stub-4.6.2-cache.html js/dom/global-constructors-attributes-dedicated-worker.html imported/w3c/web-platform-tests/service-workers/cache-storage/worker/cache-storage.https.html
Build Bot
Comment 8
2017-08-29 18:06:45 PDT
Created
attachment 319317
[details]
Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Per Arne Vollan
Comment 9
2017-08-30 08:52:36 PDT
Created
attachment 319365
[details]
Patch
Per Arne Vollan
Comment 10
2017-08-30 13:20:15 PDT
Created
attachment 319391
[details]
Patch
Build Bot
Comment 11
2017-08-30 14:38:35 PDT
Comment on
attachment 319391
[details]
Patch
Attachment 319391
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/4412151
New failing tests: imported/w3c/web-platform-tests/service-workers/cache-storage/window/cache-storage.https.html imported/w3c/web-platform-tests/service-workers/stub-4.6.2-cache.html imported/w3c/web-platform-tests/service-workers/cache-storage/worker/cache-storage.https.html js/dom/global-constructors-attributes-dedicated-worker.html
Build Bot
Comment 12
2017-08-30 14:38:36 PDT
Created
attachment 319406
[details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 13
2017-08-30 15:10:36 PDT
Comment on
attachment 319391
[details]
Patch
Attachment 319391
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/4412197
New failing tests: imported/w3c/web-platform-tests/service-workers/cache-storage/window/cache-storage.https.html imported/w3c/web-platform-tests/service-workers/stub-4.6.2-cache.html imported/w3c/web-platform-tests/service-workers/cache-storage/worker/cache-storage.https.html js/dom/global-constructors-attributes-dedicated-worker.html
Build Bot
Comment 14
2017-08-30 15:10:37 PDT
Created
attachment 319412
[details]
Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Per Arne Vollan
Comment 15
2017-08-30 15:45:50 PDT
I have attempted to fix the Windows build failure by renaming the Cache interface and using the ImplementedAs attribute, but this seem to cause test regressions on mac-wk2.
Chris Dumez
Comment 16
2017-08-30 15:47:20 PDT
Comment on
attachment 319391
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319391&action=review
> Source/JavaScriptCore/runtime/CommonIdentifiers.h:38 > + macro(CacheInternal) \
We usually use DOM preference, like DOMCache I believe.
Chris Dumez
Comment 17
2017-08-30 15:48:37 PDT
Comment on
attachment 319391
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319391&action=review
> Source/WebCore/Modules/cache/CacheInternal.idl:32 > +] interface Cache {
This should be [InterfaceName=Cache] interface DOMCache. See DOMFileSystem.idl as example.
Per Arne Vollan
Comment 18
2017-08-30 15:50:17 PDT
(In reply to Chris Dumez from
comment #17
)
> Comment on
attachment 319391
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=319391&action=review
> > > Source/WebCore/Modules/cache/CacheInternal.idl:32 > > +] interface Cache { > > This should be [InterfaceName=Cache] interface DOMCache. > > See DOMFileSystem.idl as example.
Thanks!
Chris Dumez
Comment 19
2017-08-30 16:03:41 PDT
(In reply to Chris Dumez from
comment #16
)
> Comment on
attachment 319391
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=319391&action=review
> > > Source/JavaScriptCore/runtime/CommonIdentifiers.h:38 > > + macro(CacheInternal) \ > > We usually use DOM preference, like DOMCache I believe.
Youenn tells me there is already a namespace named DOMCache. My personal preference would be to: - Rename DOMCache namespace to something else (e.g. CacheUtilities or CacheAPI) - Rename Cache class to DOMCache
Chris Dumez
Comment 20
2017-08-30 16:04:30 PDT
(In reply to Per Arne Vollan from
comment #15
)
> I have attempted to fix the Windows build failure by renaming the Cache > interface and using the ImplementedAs attribute, but this seem to cause test > regressions on mac-wk2.
The reason this fails on WK2 is likely that the Cache API is only enabled on WK2. Your IDL was wrong and I believe it was exposing CacheInternal name to the Web instead of Cache name.
youenn fablet
Comment 21
2017-08-30 16:08:55 PDT
We should rename both Cache and CacheStorage classes for consistency. There is already a DOMCache namespace, see DOMCache.h/.cpp, which contains various definitions used in WebCore/WebKit2. We might want to rename it to DOMCacheEngine. Maybe best done as a preliminary patch.
youenn fablet
Comment 22
2017-08-30 16:10:42 PDT
Alternatively, would there be a way at some other level (build maybe?) to prevent these kind of issues. It is annoying to use WTF::Function while we could use Function.
Per Arne Vollan
Comment 23
2017-08-30 16:12:15 PDT
(In reply to youenn fablet from
comment #21
)
> We should rename both Cache and CacheStorage classes for consistency. > > There is already a DOMCache namespace, see DOMCache.h/.cpp, which contains > various definitions used in WebCore/WebKit2. > We might want to rename it to DOMCacheEngine. > Maybe best done as a preliminary patch.
Sounds good, thanks!
Per Arne Vollan
Comment 24
2017-08-30 16:13:30 PDT
(In reply to youenn fablet from
comment #22
)
> Alternatively, would there be a way at some other level (build maybe?) to > prevent these kind of issues. > It is annoying to use WTF::Function while we could use Function.
We could also resolve this build failure on Windows by changing the include order, but I am not sure that is the best way.
Per Arne Vollan
Comment 25
2017-08-31 10:05:18 PDT
Created
attachment 319469
[details]
Patch
Per Arne Vollan
Comment 26
2017-08-31 12:42:34 PDT
Created
attachment 319502
[details]
Patch
Build Bot
Comment 27
2017-08-31 12:45:05 PDT
Attachment 319502
[details]
did not pass style-queue: ERROR: Source/WebCore/Modules/cache/DOMCacheEngine.h:50: The parameter name "request" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Per Arne Vollan
Comment 28
2017-08-31 13:19:54 PDT
Created
attachment 319510
[details]
Patch
youenn fablet
Comment 29
2017-08-31 13:27:35 PDT
Comment on
attachment 319510
[details]
Patch r=me once bots are happy
Per Arne Vollan
Comment 30
2017-08-31 13:45:56 PDT
Created
attachment 319516
[details]
Patch
Per Arne Vollan
Comment 31
2017-08-31 15:05:44 PDT
Created
attachment 319526
[details]
Patch
Per Arne Vollan
Comment 32
2017-08-31 18:49:56 PDT
Created
attachment 319563
[details]
Patch
Build Bot
Comment 33
2017-08-31 18:52:24 PDT
Attachment 319563
[details]
did not pass style-queue: ERROR: Source/WebCore/Modules/cache/DOMCacheEngine.h:50: The parameter name "request" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 28 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 34
2017-09-01 08:08:05 PDT
Comment on
attachment 319563
[details]
Patch Clearing flags on attachment: 319563 Committed
r221478
: <
http://trac.webkit.org/changeset/221478
>
Per Arne Vollan
Comment 35
2017-09-01 10:49:08 PDT
Created
attachment 319616
[details]
Patch
youenn fablet
Comment 36
2017-09-01 11:04:24 PDT
Comment on
attachment 319616
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319616&action=review
> Source/WebCore/ChangeLog:24 > + * Modules/cache/DOMCache.cpp: Copied from Source/WebCore/Modules/cache/Cache.cpp.
LGTM. For consistency, we should also move CacheStorage to DOMCacheStorage, in this patch or in a follow-up.
Per Arne Vollan
Comment 37
2017-09-01 11:33:45 PDT
(In reply to youenn fablet from
comment #36
)
> Comment on
attachment 319616
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=319616&action=review
> > > Source/WebCore/ChangeLog:24 > > + * Modules/cache/DOMCache.cpp: Copied from Source/WebCore/Modules/cache/Cache.cpp. > > LGTM. > For consistency, we should also move CacheStorage to DOMCacheStorage, in > this patch or in a follow-up.
If it is ok with you, I can do that in a follow-up. Thanks for reviewing!
WebKit Commit Bot
Comment 38
2017-09-01 11:42:07 PDT
Comment on
attachment 319616
[details]
Patch Rejecting
attachment 319616
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 319616, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: d at 510 (offset 34 lines). Hunk #19 succeeded at 542 (offset 34 lines). 2 out of 19 hunks FAILED -- saving rejects to file Source/WebCore/Modules/cache/DOMCache.cpp.rej patching file Source/WebCore/Modules/cache/DOMCache.h patching file Source/WebCore/Modules/cache/DOMCache.idl patching file Source/WebCore/WebCore.xcodeproj/project.pbxproj Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Youenn Fablet']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output:
http://webkit-queues.webkit.org/results/4427913
Per Arne Vollan
Comment 39
2017-09-01 12:09:10 PDT
Created
attachment 319628
[details]
Patch
WebKit Commit Bot
Comment 40
2017-09-01 13:03:26 PDT
Comment on
attachment 319628
[details]
Patch Rejecting
attachment 319628
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 319628, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!. Full output:
http://webkit-queues.webkit.org/results/4428341
Per Arne Vollan
Comment 41
2017-09-01 13:10:11 PDT
Created
attachment 319638
[details]
Patch
WebKit Commit Bot
Comment 42
2017-09-01 14:48:01 PDT
Comment on
attachment 319638
[details]
Patch Clearing flags on attachment: 319638 Committed
r221498
: <
http://trac.webkit.org/changeset/221498
>
Radar WebKit Bug Importer
Comment 43
2017-09-05 09:10:58 PDT
<
rdar://problem/34257236
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug