RESOLVED FIXED 119869
[Windows] Consolidate WebKit Bundle handling
https://bugs.webkit.org/show_bug.cgi?id=119869
Summary [Windows] Consolidate WebKit Bundle handling
Brent Fulgham
Reported 2013-08-15 15:20:28 PDT
The code to find and use the WebKit.resources bundle on Windows was replicated in a couple of places, and incompletely done in another. This patch provides a single implementation of this logic, and updates the bundle referencing sites to use this one (correct) implementation. This change also allows the WinLauncher executable to find and use the Inspector.
Attachments
Patch (13.39 KB, patch)
2013-08-15 15:28 PDT, Brent Fulgham
thorton: review+
Radar WebKit Bug Importer
Comment 1 2013-08-15 15:20:58 PDT
Brent Fulgham
Comment 2 2013-08-15 15:28:41 PDT
Tim Horton
Comment 3 2013-08-15 15:34:02 PDT
Comment on attachment 208863 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=208863&action=review > Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters:7069 > + <ClCompile Include="..\css\CSSFilterImageValue.cpp" /> I think these are unrelated, but maybe expected automatic VS changes? > Source/WebCore/platform/win/WebCoreBundleWin.cpp:2 > + * Copyright (C) 2013 Apple Inc. All rights reserved. The license from the old file should carry over (so this should be '2011, 2013'). > Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp:161 > + RetainPtr<CFURLRef> htmlURLRef = adoptCF(CFBundleCopyResourceURL(WebCore::webKitBundle(), CFSTR("inspector"), CFSTR("html"), CFSTR("inspector"))); why do you need the explicit namespace? This file 'using namespace WebCore's.
Brent Fulgham
Comment 4 2013-08-15 15:40:56 PDT
Comment on attachment 208863 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=208863&action=review >> Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters:7069 >> + <ClCompile Include="..\css\CSSFilterImageValue.cpp" /> > > I think these are unrelated, but maybe expected automatic VS changes? VS does annoying things when you add/remove files. These may have been added to the vcxproj in an earlier change, but not added to the *filters file (*cough* krit *cough*) and are getting picked up with this commit. >> Source/WebCore/platform/win/WebCoreBundleWin.cpp:2 >> + * Copyright (C) 2013 Apple Inc. All rights reserved. > > The license from the old file should carry over (so this should be '2011, 2013'). Will do. >> Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp:161 >> + RetainPtr<CFURLRef> htmlURLRef = adoptCF(CFBundleCopyResourceURL(WebCore::webKitBundle(), CFSTR("inspector"), CFSTR("html"), CFSTR("inspector"))); > > why do you need the explicit namespace? This file 'using namespace WebCore's. Huh. I'll correct.
Brent Fulgham
Comment 5 2013-08-15 15:43:57 PDT
Note You need to log in before you can comment on or make changes to this bug.