Changeset 159900 in webkit
- Timestamp:
- Dec 1, 2013, 9:03:43 AM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r159872 r159900 1 2013-12-01 Dan Bernstein <mitz@apple.com> 2 3 [Mac] Remove the MiniBrowser injected bundle 4 https://bugs.webkit.org/show_bug.cgi?id=125041 5 6 Reviewed by Anders Carlsson. 7 8 It had no ops! 9 10 * MiniBrowser/Configurations/WebBundle.xcconfig: Removed. 11 * MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj: 12 * MiniBrowser/mac/AppDelegate.m: 13 (-[BrowserAppDelegate init]): 14 * MiniBrowser/mac/WebBundle/Info.plist: Removed. 15 * MiniBrowser/mac/WebBundle/WebBundleMain.m: Removed. 16 1 17 2013-11-29 Gergo Balogh <geryxyz@inf.u-szeged.hu> 2 18 -
trunk/Tools/MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj
r157266 r159900 9 9 /* Begin PBXBuildFile section */ 10 10 0F7EB6E3134113C300F4D865 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F7EB6E2134113C300F4D865 /* WebKit.framework */; }; 11 0F7EB879134113F200F4D865 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F7EB6E2134113C300F4D865 /* WebKit.framework */; };12 11 0FE643A1161FA8940059E3FF /* BrowserWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FE643A0161FA8940059E3FF /* BrowserWindowController.m */; }; 13 12 0FE643A4161FAC660059E3FF /* WK1BrowserWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FE643A3161FAC660059E3FF /* WK1BrowserWindowController.m */; }; … … 15 14 51E244FA11EFCE07008228D1 /* MBToolbarItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E244F911EFCE07008228D1 /* MBToolbarItem.m */; }; 16 15 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; 17 BC20545E11C96C92008F3375 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };18 16 BC329487116A92E2008635D0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BC329486116A92E2008635D0 /* main.m */; }; 19 17 BC329498116A941B008635D0 /* WK2BrowserWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC329497116A941B008635D0 /* WK2BrowserWindowController.m */; }; … … 21 19 BC72B89611E57E0F001EB4EA /* BrowserWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC3294A2116A9852008635D0 /* BrowserWindow.xib */; }; 22 20 BC8FB5A8116AA1FE0080D413 /* WebKit2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC8FB5A7116AA1FE0080D413 /* WebKit2.framework */; }; 23 BCBD384011B08A6800E01E54 /* WebBundleMain.m in Sources */ = {isa = PBXBuildFile; fileRef = BCBD383D11B08A3100E01E54 /* WebBundleMain.m */; };24 BCBD384411B08AAD00E01E54 /* WebKit2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC8FB5A7116AA1FE0080D413 /* WebKit2.framework */; };25 BCBD38D011B08C0200E01E54 /* WebBundle.bundle in Copy WebBundle */ = {isa = PBXBuildFile; fileRef = BCBD381D11B0898200E01E54 /* WebBundle.bundle */; };26 21 /* End PBXBuildFile section */ 27 28 /* Begin PBXContainerItemProxy section */29 BCBD38C511B08BA400E01E54 /* PBXContainerItemProxy */ = {30 isa = PBXContainerItemProxy;31 containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;32 proxyType = 1;33 remoteGlobalIDString = BCBD381C11B0898200E01E54;34 remoteInfo = WebBundle;35 };36 /* End PBXContainerItemProxy section */37 22 38 23 /* Begin PBXCopyFilesBuildPhase section */ … … 43 28 dstSubfolderSpec = 1; 44 29 files = ( 45 BCBD38D011B08C0200E01E54 /* WebBundle.bundle in Copy WebBundle */,46 30 ); 47 31 name = "Copy WebBundle"; … … 70 54 BC329497116A941B008635D0 /* WK2BrowserWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WK2BrowserWindowController.m; path = mac/WK2BrowserWindowController.m; sourceTree = "<group>"; }; 71 55 BC3294A2116A9852008635D0 /* BrowserWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = BrowserWindow.xib; path = mac/BrowserWindow.xib; sourceTree = "<group>"; }; 72 BC72B89711E57E6E001EB4EA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };73 56 BC72B89A11E57E8A001EB4EA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = mac/Info.plist; sourceTree = "<group>"; }; 74 57 BC8FB5A7116AA1FE0080D413 /* WebKit2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = WebKit2.framework; sourceTree = BUILT_PRODUCTS_DIR; }; … … 76 59 BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = DebugRelease.xcconfig; sourceTree = "<group>"; }; 77 60 BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = MiniBrowser.xcconfig; sourceTree = "<group>"; }; 78 BCA8CBE011E578A000812FB7 /* WebBundle.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = WebBundle.xcconfig; sourceTree = "<group>"; };79 BCBD381D11B0898200E01E54 /* WebBundle.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WebBundle.bundle; sourceTree = BUILT_PRODUCTS_DIR; };80 BCBD383D11B08A3100E01E54 /* WebBundleMain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WebBundleMain.m; sourceTree = "<group>"; };81 61 /* End PBXFileReference section */ 82 62 … … 89 69 0F7EB6E3134113C300F4D865 /* WebKit.framework in Frameworks */, 90 70 BC8FB5A8116AA1FE0080D413 /* WebKit2.framework in Frameworks */, 91 );92 runOnlyForDeploymentPostprocessing = 0;93 };94 BCBD381B11B0898200E01E54 /* Frameworks */ = {95 isa = PBXFrameworksBuildPhase;96 buildActionMask = 2147483647;97 files = (98 BC20545E11C96C92008F3375 /* Cocoa.framework in Frameworks */,99 0F7EB879134113F200F4D865 /* WebKit.framework in Frameworks */,100 BCBD384411B08AAD00E01E54 /* WebKit2.framework in Frameworks */,101 71 ); 102 72 runOnlyForDeploymentPostprocessing = 0; … … 147 117 children = ( 148 118 8D1107320486CEB800E47090 /* MiniBrowser.app */, 149 BCBD381D11B0898200E01E54 /* WebBundle.bundle */,150 119 ); 151 120 name = Products; … … 157 126 256AC3F00F4B6AF500CF3369 /* MiniBrowser_Prefix.pch */, 158 127 080E96DDFE201D6D7F000001 /* MiniBrowser */, 159 BCBD382B11B089F700E01E54 /* WebBundle */,160 128 29B97317FDCFA39411CA2CEA /* Resources */, 161 129 BCA8CBDA11E5787800812FB7 /* Configurations */, … … 190 158 BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */, 191 159 BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */, 192 BCA8CBE011E578A000812FB7 /* WebBundle.xcconfig */,193 160 ); 194 161 path = Configurations; 195 sourceTree = "<group>";196 };197 BCBD382B11B089F700E01E54 /* WebBundle */ = {198 isa = PBXGroup;199 children = (200 BC72B89711E57E6E001EB4EA /* Info.plist */,201 BCBD383D11B08A3100E01E54 /* WebBundleMain.m */,202 );203 name = WebBundle;204 path = mac/WebBundle;205 162 sourceTree = "<group>"; 206 163 }; … … 220 177 ); 221 178 dependencies = ( 222 BCBD38C611B08BA400E01E54 /* PBXTargetDependency */,223 179 ); 224 180 name = MiniBrowser; … … 227 183 productReference = 8D1107320486CEB800E47090 /* MiniBrowser.app */; 228 184 productType = "com.apple.product-type.application"; 229 };230 BCBD381C11B0898200E01E54 /* WebBundle */ = {231 isa = PBXNativeTarget;232 buildConfigurationList = BCBD382111B0898300E01E54 /* Build configuration list for PBXNativeTarget "WebBundle" */;233 buildPhases = (234 BCBD381911B0898200E01E54 /* Resources */,235 BCBD381A11B0898200E01E54 /* Sources */,236 BCBD381B11B0898200E01E54 /* Frameworks */,237 );238 buildRules = (239 );240 dependencies = (241 );242 name = WebBundle;243 productName = WebBundle;244 productReference = BCBD381D11B0898200E01E54 /* WebBundle.bundle */;245 productType = "com.apple.product-type.bundle";246 185 }; 247 186 /* End PBXNativeTarget section */ … … 267 206 targets = ( 268 207 8D1107260486CEB800E47090 /* MiniBrowser */, 269 BCBD381C11B0898200E01E54 /* WebBundle */,270 208 ); 271 209 }; … … 279 217 BC72B89611E57E0F001EB4EA /* BrowserWindow.xib in Resources */, 280 218 BC72B89511E57E07001EB4EA /* MainMenu.xib in Resources */, 281 );282 runOnlyForDeploymentPostprocessing = 0;283 };284 BCBD381911B0898200E01E54 /* Resources */ = {285 isa = PBXResourcesBuildPhase;286 buildActionMask = 2147483647;287 files = (288 219 ); 289 220 runOnlyForDeploymentPostprocessing = 0; … … 305 236 runOnlyForDeploymentPostprocessing = 0; 306 237 }; 307 BCBD381A11B0898200E01E54 /* Sources */ = {308 isa = PBXSourcesBuildPhase;309 buildActionMask = 2147483647;310 files = (311 BCBD384011B08A6800E01E54 /* WebBundleMain.m in Sources */,312 );313 runOnlyForDeploymentPostprocessing = 0;314 };315 238 /* End PBXSourcesBuildPhase section */ 316 239 317 /* Begin PBXTargetDependency section */318 BCBD38C611B08BA400E01E54 /* PBXTargetDependency */ = {319 isa = PBXTargetDependency;320 target = BCBD381C11B0898200E01E54 /* WebBundle */;321 targetProxy = BCBD38C511B08BA400E01E54 /* PBXContainerItemProxy */;322 };323 /* End PBXTargetDependency section */324 325 240 /* Begin XCBuildConfiguration section */ 326 BCBD381F11B0898300E01E54/* Debug */ = {327 isa = XCBuildConfiguration; 328 baseConfigurationReference = BCA8CB E011E578A000812FB7 /* WebBundle.xcconfig */;241 C01FCF4B08A954540054247B /* Debug */ = { 242 isa = XCBuildConfiguration; 243 baseConfigurationReference = BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */; 329 244 buildSettings = { 330 245 }; 331 246 name = Debug; 332 247 }; 333 BCBD382011B0898300E01E54/* Release */ = {334 isa = XCBuildConfiguration; 335 baseConfigurationReference = BCA8CB E011E578A000812FB7 /* WebBundle.xcconfig */;248 C01FCF4C08A954540054247B /* Release */ = { 249 isa = XCBuildConfiguration; 250 baseConfigurationReference = BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */; 336 251 buildSettings = { 337 252 }; 338 253 name = Release; 339 254 }; 340 C01FCF4 B08A954540054247B /* Debug */ = {341 isa = XCBuildConfiguration; 342 baseConfigurationReference = BCA8CBD F11E578A000812FB7 /* MiniBrowser.xcconfig */;255 C01FCF4F08A954540054247B /* Debug */ = { 256 isa = XCBuildConfiguration; 257 baseConfigurationReference = BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */; 343 258 buildSettings = { 344 259 }; 345 260 name = Debug; 346 261 }; 347 C01FCF 4C08A954540054247B /* Release */ = {348 isa = XCBuildConfiguration; 349 baseConfigurationReference = BCA8CBD F11E578A000812FB7 /* MiniBrowser.xcconfig */;262 C01FCF5008A954540054247B /* Release */ = { 263 isa = XCBuildConfiguration; 264 baseConfigurationReference = BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */; 350 265 buildSettings = { 351 266 }; 352 267 name = Release; 353 268 }; 354 C01FCF4F08A954540054247B /* Debug */ = {355 isa = XCBuildConfiguration;356 baseConfigurationReference = BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */;357 buildSettings = {358 };359 name = Debug;360 };361 C01FCF5008A954540054247B /* Release */ = {362 isa = XCBuildConfiguration;363 baseConfigurationReference = BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */;364 buildSettings = {365 };366 name = Release;367 };368 269 /* End XCBuildConfiguration section */ 369 270 370 271 /* Begin XCConfigurationList section */ 371 BCBD382111B0898300E01E54 /* Build configuration list for PBXNativeTarget "WebBundle" */ = {372 isa = XCConfigurationList;373 buildConfigurations = (374 BCBD381F11B0898300E01E54 /* Debug */,375 BCBD382011B0898300E01E54 /* Release */,376 );377 defaultConfigurationIsVisible = 0;378 defaultConfigurationName = Release;379 };380 272 C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "MiniBrowser" */ = { 381 273 isa = XCConfigurationList; -
trunk/Tools/MiniBrowser/mac/AppDelegate.m
r159710 r159900 42 42 @implementation BrowserAppDelegate 43 43 44 void didReceiveMessageFromInjectedBundle(WKContextRef context, WKStringRef messageName, WKTypeRef messageBody, const void *clientInfo)45 {46 CFStringRef cfMessageName = WKStringCopyCFString(0, messageName);47 48 WKTypeID typeID = WKGetTypeID(messageBody);49 if (typeID == WKStringGetTypeID()) {50 CFStringRef cfMessageBody = WKStringCopyCFString(0, (WKStringRef)messageBody);51 LOG(@"ContextInjectedBundleClient - didReceiveMessage - MessageName: %@ MessageBody %@", cfMessageName, cfMessageBody);52 CFRelease(cfMessageBody);53 } else {54 LOG(@"ContextInjectedBundleClient - didReceiveMessage - MessageName: %@ (MessageBody Unhandled)\n", cfMessageName);55 }56 57 CFRelease(cfMessageName);58 59 WKStringRef newMessageName = WKStringCreateWithCFString(CFSTR("Response"));60 WKStringRef newMessageBody = WKStringCreateWithCFString(CFSTR("Roger that!"));61 62 WKContextPostMessageToInjectedBundle(context, newMessageName, newMessageBody);63 64 WKRelease(newMessageName);65 WKRelease(newMessageBody);66 }67 68 44 // MARK: History Client Callbacks 69 45 … … 129 105 }; 130 106 131 CFStringRef bundlePathCF = (CFStringRef)[[NSBundle mainBundle] pathForAuxiliaryExecutable:@"WebBundle.bundle"]; 132 WKStringRef bundlePath = WKStringCreateWithCFString(bundlePathCF); 133 134 _processContext = WKContextCreateWithInjectedBundlePath(bundlePath); 135 136 WKContextInjectedBundleClient bundleClient = { 137 kWKContextInjectedBundleClientCurrentVersion, 138 0, /* clientInfo */ 139 didReceiveMessageFromInjectedBundle, 140 0, /* didReceiveSynchronousMessageFromInjectedBundle */ 141 0 /* getInjectedBundleInitializationUserData */ 142 }; 143 WKContextSetInjectedBundleClient(_processContext, &bundleClient); 107 _processContext = WKContextCreate(); 108 144 109 WKContextSetHistoryClient(_processContext, &historyClient); 145 110 WKContextSetCacheModel(_processContext, kWKCacheModelPrimaryWebBrowser); 146 111 147 WKRelease(bundlePath);148 149 112 WKStringRef pageGroupIdentifier = WKStringCreateWithCFString(CFSTR("MiniBrowser")); 150 113 _pageGroup = WKPageGroupCreateWithIdentifier(pageGroupIdentifier);
Note:
See TracChangeset
for help on using the changeset viewer.