Tools/ChangeLog

 12011-12-30 Dan Bernstein <mitz@apple.com>
 2
 3 MiniBrowser sets the WKView’s frame incorrectly
 4 https://bugs.webkit.org/show_bug.cgi?id=75393
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj: Removed Make Launchable build phase,
 9 which is not needed since the binray is linked with the frameworks search path set to the
 10 built products directory.
 11 * MiniBrowser/mac/BrowserWindowController.m:
 12 (-[BrowserWindowController awakeFromNib]): Changed to set the WKView’s frame to its
 13 container’s bounds rather than its frame.
 14 * MiniBrowser/mac/make-launchable.sh: Removed.
 15
1162011-12-29 Dan Bernstein <mitz@apple.com>
217
318 debug-safari --no-saved-state fails to start the debugger
103847

Tools/MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj

6161 51E244F811EFCE07008228D1 /* MBToolbarItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MBToolbarItem.h; sourceTree = "<group>"; };
6262 51E244F911EFCE07008228D1 /* MBToolbarItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MBToolbarItem.m; sourceTree = "<group>"; };
6363 8D1107320486CEB800E47090 /* MiniBrowser.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MiniBrowser.app; sourceTree = BUILT_PRODUCTS_DIR; };
64  BC1770121188DF19007D9E9A /* make-launchable.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = "make-launchable.sh"; path = "mac/make-launchable.sh"; sourceTree = "<group>"; };
6564 BC329486116A92E2008635D0 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = mac/main.m; sourceTree = "<group>"; };
6665 BC329496116A941B008635D0 /* BrowserWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BrowserWindowController.h; path = mac/BrowserWindowController.h; sourceTree = "<group>"; };
6766 BC329497116A941B008635D0 /* BrowserWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BrowserWindowController.m; path = mac/BrowserWindowController.m; sourceTree = "<group>"; };

157156 BCBD382B11B089F700E01E54 /* WebBundle */,
158157 29B97317FDCFA39411CA2CEA /* Resources */,
159158 BCA8CBDA11E5787800812FB7 /* Configurations */,
160  BC1770481188EB05007D9E9A /* Scripts */,
161159 29B97323FDCFA39411CA2CEA /* Frameworks */,
162160 19C28FACFE9D520D11CA2CBB /* Products */,
163161 );

183181 name = Frameworks;
184182 sourceTree = "<group>";
185183 };
186  BC1770481188EB05007D9E9A /* Scripts */ = {
187  isa = PBXGroup;
188  children = (
189  BC1770121188DF19007D9E9A /* make-launchable.sh */,
190  );
191  name = Scripts;
192  sourceTree = "<group>";
193  };
194184 BCA8CBDA11E5787800812FB7 /* Configurations */ = {
195185 isa = PBXGroup;
196186 children = (

223213 BCBD38CF11B08C0100E01E54 /* Copy WebBundle */,
224214 8D11072C0486CEB800E47090 /* Sources */,
225215 8D11072E0486CEB800E47090 /* Frameworks */,
226  BC17701E1188DFB4007D9E9A /* Make Launchable */,
227216 );
228217 buildRules = (
229218 );

298287 };
299288/* End PBXResourcesBuildPhase section */
300289
301 /* Begin PBXShellScriptBuildPhase section */
302  BC17701E1188DFB4007D9E9A /* Make Launchable */ = {
303  isa = PBXShellScriptBuildPhase;
304  buildActionMask = 2147483647;
305  files = (
306  );
307  inputPaths = (
308  );
309  name = "Make Launchable";
310  outputPaths = (
311  );
312  runOnlyForDeploymentPostprocessing = 0;
313  shellPath = /bin/sh;
314  shellScript = "mac/make-launchable.sh\n";
315  };
316 /* End PBXShellScriptBuildPhase section */
317 
318290/* Begin PBXSourcesBuildPhase section */
319291 8D11072C0486CEB800E47090 /* Sources */ = {
320292 isa = PBXSourcesBuildPhase;
103847

Tools/MiniBrowser/mac/BrowserWindowController.m

@@static void runOpenPanel(WKPageRef page,
574574
575575- (void)awakeFromNib
576576{
577  _webView = [[WKView alloc] initWithFrame:[containerView frame] contextRef:_context pageGroupRef:_pageGroup];
 577 _webView = [[WKView alloc] initWithFrame:[containerView bounds] contextRef:_context pageGroupRef:_pageGroup];
578578
579  [containerView addSubview:_webView];
580  [_webView setFrame:[containerView frame]];
581 
582579 [_webView setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable)];
 580 [containerView addSubview:_webView];
583581
584582 WKPageLoaderClient loadClient = {
585583 kWKPageLoaderClientCurrentVersion,
103847

Tools/MiniBrowser/mac/make-launchable.sh

1 #!/bin/sh
2 
3 # Copyright (C) 2010 Apple Inc. All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 # 1. Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution.
13 #
14 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
15 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
18 # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 # THE POSSIBILITY OF SUCH DAMAGE.
25 
26 echo "Making app bundle launchable";
27 defaults write "${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH%.plist}" LSEnvironment -dict DYLD_FRAMEWORK_PATH "${BUILT_PRODUCTS_DIR}"
103847