Changeset 159900 in webkit


Ignore:
Timestamp:
Dec 1, 2013 9:03:43 AM (10 years ago)
Author:
mitz@apple.com
Message:

[Mac] Remove the MiniBrowser injected bundle
https://bugs.webkit.org/show_bug.cgi?id=125041

Reviewed by Anders Carlsson.

It had no ops!

  • MiniBrowser/Configurations/WebBundle.xcconfig: Removed.
  • MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj:
  • MiniBrowser/mac/AppDelegate.m:

(-[BrowserAppDelegate init]):

  • MiniBrowser/mac/WebBundle/Info.plist: Removed.
  • MiniBrowser/mac/WebBundle/WebBundleMain.m: Removed.
Location:
trunk/Tools
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r159872 r159900  
     12013-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
    1172013-11-29  Gergo Balogh  <geryxyz@inf.u-szeged.hu>
    218
  • trunk/Tools/MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj

    r157266 r159900  
    99/* Begin PBXBuildFile section */
    1010                0F7EB6E3134113C300F4D865 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F7EB6E2134113C300F4D865 /* WebKit.framework */; };
    11                 0F7EB879134113F200F4D865 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F7EB6E2134113C300F4D865 /* WebKit.framework */; };
    1211                0FE643A1161FA8940059E3FF /* BrowserWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FE643A0161FA8940059E3FF /* BrowserWindowController.m */; };
    1312                0FE643A4161FAC660059E3FF /* WK1BrowserWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FE643A3161FAC660059E3FF /* WK1BrowserWindowController.m */; };
     
    1514                51E244FA11EFCE07008228D1 /* MBToolbarItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E244F911EFCE07008228D1 /* MBToolbarItem.m */; };
    1615                8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
    17                 BC20545E11C96C92008F3375 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
    1816                BC329487116A92E2008635D0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BC329486116A92E2008635D0 /* main.m */; };
    1917                BC329498116A941B008635D0 /* WK2BrowserWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC329497116A941B008635D0 /* WK2BrowserWindowController.m */; };
     
    2119                BC72B89611E57E0F001EB4EA /* BrowserWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC3294A2116A9852008635D0 /* BrowserWindow.xib */; };
    2220                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 */; };
    2621/* 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 */
    3722
    3823/* Begin PBXCopyFilesBuildPhase section */
     
    4328                        dstSubfolderSpec = 1;
    4429                        files = (
    45                                 BCBD38D011B08C0200E01E54 /* WebBundle.bundle in Copy WebBundle */,
    4630                        );
    4731                        name = "Copy WebBundle";
     
    7054                BC329497116A941B008635D0 /* WK2BrowserWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WK2BrowserWindowController.m; path = mac/WK2BrowserWindowController.m; sourceTree = "<group>"; };
    7155                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>"; };
    7356                BC72B89A11E57E8A001EB4EA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = mac/Info.plist; sourceTree = "<group>"; };
    7457                BC8FB5A7116AA1FE0080D413 /* WebKit2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = WebKit2.framework; sourceTree = BUILT_PRODUCTS_DIR; };
     
    7659                BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = DebugRelease.xcconfig; sourceTree = "<group>"; };
    7760                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>"; };
    8161/* End PBXFileReference section */
    8262
     
    8969                                0F7EB6E3134113C300F4D865 /* WebKit.framework in Frameworks */,
    9070                                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 */,
    10171                        );
    10272                        runOnlyForDeploymentPostprocessing = 0;
     
    147117                        children = (
    148118                                8D1107320486CEB800E47090 /* MiniBrowser.app */,
    149                                 BCBD381D11B0898200E01E54 /* WebBundle.bundle */,
    150119                        );
    151120                        name = Products;
     
    157126                                256AC3F00F4B6AF500CF3369 /* MiniBrowser_Prefix.pch */,
    158127                                080E96DDFE201D6D7F000001 /* MiniBrowser */,
    159                                 BCBD382B11B089F700E01E54 /* WebBundle */,
    160128                                29B97317FDCFA39411CA2CEA /* Resources */,
    161129                                BCA8CBDA11E5787800812FB7 /* Configurations */,
     
    190158                                BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */,
    191159                                BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */,
    192                                 BCA8CBE011E578A000812FB7 /* WebBundle.xcconfig */,
    193160                        );
    194161                        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;
    205162                        sourceTree = "<group>";
    206163                };
     
    220177                        );
    221178                        dependencies = (
    222                                 BCBD38C611B08BA400E01E54 /* PBXTargetDependency */,
    223179                        );
    224180                        name = MiniBrowser;
     
    227183                        productReference = 8D1107320486CEB800E47090 /* MiniBrowser.app */;
    228184                        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";
    246185                };
    247186/* End PBXNativeTarget section */
     
    267206                        targets = (
    268207                                8D1107260486CEB800E47090 /* MiniBrowser */,
    269                                 BCBD381C11B0898200E01E54 /* WebBundle */,
    270208                        );
    271209                };
     
    279217                                BC72B89611E57E0F001EB4EA /* BrowserWindow.xib in Resources */,
    280218                                BC72B89511E57E07001EB4EA /* MainMenu.xib in Resources */,
    281                         );
    282                         runOnlyForDeploymentPostprocessing = 0;
    283                 };
    284                 BCBD381911B0898200E01E54 /* Resources */ = {
    285                         isa = PBXResourcesBuildPhase;
    286                         buildActionMask = 2147483647;
    287                         files = (
    288219                        );
    289220                        runOnlyForDeploymentPostprocessing = 0;
     
    305236                        runOnlyForDeploymentPostprocessing = 0;
    306237                };
    307                 BCBD381A11B0898200E01E54 /* Sources */ = {
    308                         isa = PBXSourcesBuildPhase;
    309                         buildActionMask = 2147483647;
    310                         files = (
    311                                 BCBD384011B08A6800E01E54 /* WebBundleMain.m in Sources */,
    312                         );
    313                         runOnlyForDeploymentPostprocessing = 0;
    314                 };
    315238/* End PBXSourcesBuildPhase section */
    316239
    317 /* Begin PBXTargetDependency section */
    318                 BCBD38C611B08BA400E01E54 /* PBXTargetDependency */ = {
    319                         isa = PBXTargetDependency;
    320                         target = BCBD381C11B0898200E01E54 /* WebBundle */;
    321                         targetProxy = BCBD38C511B08BA400E01E54 /* PBXContainerItemProxy */;
    322                 };
    323 /* End PBXTargetDependency section */
    324 
    325240/* Begin XCBuildConfiguration section */
    326                 BCBD381F11B0898300E01E54 /* Debug */ = {
    327                         isa = XCBuildConfiguration;
    328                         baseConfigurationReference = BCA8CBE011E578A000812FB7 /* WebBundle.xcconfig */;
     241                C01FCF4B08A954540054247B /* Debug */ = {
     242                        isa = XCBuildConfiguration;
     243                        baseConfigurationReference = BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */;
    329244                        buildSettings = {
    330245                        };
    331246                        name = Debug;
    332247                };
    333                 BCBD382011B0898300E01E54 /* Release */ = {
    334                         isa = XCBuildConfiguration;
    335                         baseConfigurationReference = BCA8CBE011E578A000812FB7 /* WebBundle.xcconfig */;
     248                C01FCF4C08A954540054247B /* Release */ = {
     249                        isa = XCBuildConfiguration;
     250                        baseConfigurationReference = BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */;
    336251                        buildSettings = {
    337252                        };
    338253                        name = Release;
    339254                };
    340                 C01FCF4B08A954540054247B /* Debug */ = {
    341                         isa = XCBuildConfiguration;
    342                         baseConfigurationReference = BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */;
     255                C01FCF4F08A954540054247B /* Debug */ = {
     256                        isa = XCBuildConfiguration;
     257                        baseConfigurationReference = BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */;
    343258                        buildSettings = {
    344259                        };
    345260                        name = Debug;
    346261                };
    347                 C01FCF4C08A954540054247B /* Release */ = {
    348                         isa = XCBuildConfiguration;
    349                         baseConfigurationReference = BCA8CBDF11E578A000812FB7 /* MiniBrowser.xcconfig */;
     262                C01FCF5008A954540054247B /* Release */ = {
     263                        isa = XCBuildConfiguration;
     264                        baseConfigurationReference = BCA8CBDE11E578A000812FB7 /* DebugRelease.xcconfig */;
    350265                        buildSettings = {
    351266                        };
    352267                        name = Release;
    353268                };
    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                 };
    368269/* End XCBuildConfiguration section */
    369270
    370271/* 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                 };
    380272                C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "MiniBrowser" */ = {
    381273                        isa = XCConfigurationList;
  • trunk/Tools/MiniBrowser/mac/AppDelegate.m

    r159710 r159900  
    4242@implementation BrowserAppDelegate
    4343
    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 
    6844// MARK: History Client Callbacks
    6945
     
    129105        };
    130106
    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
    144109        WKContextSetHistoryClient(_processContext, &historyClient);
    145110        WKContextSetCacheModel(_processContext, kWKCacheModelPrimaryWebBrowser);
    146111
    147         WKRelease(bundlePath);
    148        
    149112        WKStringRef pageGroupIdentifier = WKStringCreateWithCFString(CFSTR("MiniBrowser"));
    150113        _pageGroup = WKPageGroupCreateWithIdentifier(pageGroupIdentifier);
Note: See TracChangeset for help on using the changeset viewer.