No subject


Mon Jan 28 08:41:14 PST 2013


share the minimal code that reproduces the issue.

Benjamin



--B_3448813215_3848134
Content-type: text/html;
	charset="US-ASCII"
Content-transfer-encoding: quoted-printable

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size:=
 14px; font-family: Calibri, sans-serif; "><div><div>The code is minimal:</d=
iv><div><br></div><div><p style=3D"margin: 0px; font-size: 11px; font-family: =
Menlo; color: rgb(187, 44, 162); ">@implementation<span style=3D"color: #00000=
0"> AppDelegate</span></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; "><br></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; "><span style=3D"=
color: #bb2ca2">@synthesize</span> tabSelection, tabs;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; "><br></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">- (<span styl=
e=3D"color: #bb2ca2">void</span>) awakeFromNib {</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; ">&nbsp;&nbsp; &nbsp;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, =
129, 135); "><span style=3D"color: #000000">&nbsp; &nbsp; [</span><span style=3D=
"color: #bb2ca2">self</span><span style=3D"color: #000000">.</span>webview<spa=
n style=3D"color: #000000"> </span><span style=3D"color: #3d1d81">setCustomUserA=
gent</span><span style=3D"color: #000000">:</span>kRegularAgent<span style=3D"co=
lor: #000000">];</span></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209,=
 47, 27); "><span style=3D"color: #000000">&nbsp; &nbsp; </span><span style=3D"c=
olor: #703daa">NSURL</span><span style=3D"color: #000000"> *gmailURL =3D [</span=
><span style=3D"color: #703daa">NSURL</span><span style=3D"color: #000000"> </sp=
an><span style=3D"color: #3d1d81">URLWithString</span><span style=3D"color: #000=
000">:</span>@"https://mail.google.com/mail/"<span style=3D"color: #000000">];=
</span></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 <span style=3D"color: #703daa">NSURLRequest</span> *request =3D [<span style=3D"c=
olor: #703daa">NSURLRequest</span> <span style=3D"color: #3d1d81">requestWithU=
RL</span>:gmailURL];</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 [[<span style=3D"color: #bb2ca2">self</span>.<span style=3D"color: #4f8187">web=
view</span> <span style=3D"color: #3d1d81">mainFrame</span>] <span style=3D"colo=
r: #3d1d81">loadRequest</span>:request];</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">}</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; "><br></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">- (<span styl=
e=3D"color: #bb2ca2">void</span>)applicationDidFinishLaunching:(<span style=3D"c=
olor: #703daa">NSNotification</span> *)aNotification</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">{</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(61, =
29, 129); "><span style=3D"color: #000000">&nbsp; &nbsp; [</span><span style=3D"=
color: #bb2ca2">self</span><span style=3D"color: #000000">.</span><span style=3D=
"color: #4f8187">webview</span><span style=3D"color: #000000"> </span>setUIDel=
egate<span style=3D"color: #000000">:</span><span style=3D"color: #bb2ca2">self<=
/span><span style=3D"color: #000000">];</span></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; ">&nbsp;&nbsp; &nbsp;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">}</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; "><br></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">- (<span styl=
e=3D"color: #703daa">WebView</span> *) webView:(<span style=3D"color: #703daa">W=
ebView</span> *)sender createWebViewWithRequest:(<span style=3D"color: #703daa=
">NSURLRequest</span> *)request {</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; ">&nbsp;&nbsp; &nbsp;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(61, =
29, 129); "><span style=3D"color: #000000">&nbsp; &nbsp; </span><span style=3D"c=
olor: #703daa">NSInteger</span><span style=3D"color: #000000"> newCount =3D </sp=
an><span style=3D"color: #bb2ca2">self</span><span style=3D"color: #000000">.</s=
pan><span style=3D"color: #4f8187">tabs</span><span style=3D"color: #000000">.</=
span>numberOfTabViewItems<span style=3D"color: #000000">;</span></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; ">&nbsp;&nbsp; &nbsp;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(61, =
29, 129); "><span style=3D"color: #000000">&nbsp; &nbsp; </span><span style=3D"c=
olor: #703daa">NSTabViewItem</span><span style=3D"color: #000000"> *tabItem =3D =
[[</span><span style=3D"color: #703daa">NSTabViewItem</span><span style=3D"color=
: #000000"> </span>alloc<span style=3D"color: #000000">] </span>initWithIdenti=
fier<span style=3D"color: #000000">:[</span><span style=3D"color: #703daa">NSStr=
ing</span><span style=3D"color: #000000"> </span>stringWithFormat<span style=3D"=
color: #000000">:</span><span style=3D"color: #d12f1b">@"newtab%li"</span><spa=
n style=3D"color: #000000">, newCount]];</span></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 tabItem.<span style=3D"color: #3d1d81">label</span> =3D <span style=3D"color: #d1=
2f1b">@"Tab"</span>;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 [<span style=3D"color: #bb2ca2">self</span>.<span style=3D"color: #4f8187">tabs=
</span> <span style=3D"color: #3d1d81">addTabViewItem</span>:tabItem];</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 <span style=3D"color: #bb2ca2">self</span>.<span style=3D"color: #4f8187">tabSe=
lection</span> =3D newCount;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; ">&nbsp;&nbsp; &nbsp;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 <span style=3D"color: #703daa">WebView</span>* newWebView =3D [[<span style=3D"co=
lor: #703daa">WebView</span> <span style=3D"color: #3d1d81">alloc</span>] <spa=
n style=3D"color: #3d1d81">initWithFrame</span>:<span style=3D"color: #bb2ca2">s=
elf</span>.<span style=3D"color: #4f8187">tabs</span>.<span style=3D"color: #3d1=
d81">contentRect</span>];</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(61, =
29, 129); "><span style=3D"color: #000000">&nbsp; &nbsp; [newWebView </span>se=
tAutoresizingMask<span style=3D"color: #000000">:</span>NSViewWidthSizable<spa=
n style=3D"color: #000000">|</span>NSViewHeightSizable<span style=3D"color: #000=
000">];</span></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 [tabItem.<span style=3D"color: #3d1d81">view</span> <span style=3D"color: #3d1d=
81">addSubview</span>:newWebView];</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 [newWebView <span style=3D"color: #3d1d81">setPolicyDelegate</span>:<span sty=
le=3D"color: #bb2ca2">self</span>];</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;=
 <span style=3D"color: #bb2ca2">return</span> newWebView;</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">}</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; "><br></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">- (<span styl=
e=3D"color: #bb2ca2">BOOL</span>) applicationShouldTerminateAfterLastWindowClo=
sed:(<span style=3D"color: #703daa">NSApplication</span> *)sender {</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(187,=
 44, 162); "><span style=3D"color: #000000">&nbsp; &nbsp; </span>return<span s=
tyle=3D"color: #000000"> </span>YES<span style=3D"color: #000000">;</span></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; ">}</p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13p=
x; "><br></p>
<p style=3D"margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(187,=
 44, 162); ">@end</p></div><div><br></div><div>self.tabs is an IBOutlet to a=
 generic NSTabView.</div><div><br></div><div><div><font class=3D"Apple-style-s=
pan" color=3D"#000000"><font class=3D"Apple-style-span" face=3D"Calibri">Thanks,</=
font></font></div><div><font class=3D"Apple-style-span" color=3D"#000000"><font =
class=3D"Apple-style-span" face=3D"Calibri">Arvin</font></font></div></div></div=
><div><br></div><span id=3D"OLK_SRC_BODY_SECTION"><div style=3D"font-family:Cali=
bri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium non=
e; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING=
-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDI=
NG-TOP: 3pt"><span style=3D"font-weight:bold">From: </span> Benjamin Poulain &=
lt;<a href=3D"mailto:benjamin at webkit.org">benjamin at webkit.org</a>&gt;<br><span=
 style=3D"font-weight:bold">Date: </span> Sunday, April 14, 2013 3:54 PM<br><s=
pan style=3D"font-weight:bold">To: </span> Arvin Bhatnagar &lt;<a href=3D"mailto=
:arvinb at columbus.rr.com">arvinb at columbus.rr.com</a>&gt;<br><span style=3D"font=
-weight:bold">Cc: </span> "<a href=3D"mailto:webkit-help at lists.webkit.org">web=
kit-help at lists.webkit.org</a>" &lt;<a href=3D"mailto:webkit-help at lists.webkit.=
org">webkit-help at lists.webkit.org</a>&gt;<br><span style=3D"font-weight:bold">=
Subject: </span> Re: [webkit-help] Opening new webview's and IFrames<br></di=
v><div><br></div><div dir=3D"ltr"><div class=3D"gmail_extra" style=3D"">Hi,</div><=
div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">On Sun, Apr 14, 2=
013 at 3:16 AM, Arvin Bhatnagar <span dir=3D"ltr">&lt;<a href=3D"mailto:arvinb at c=
olumbus.rr.com" target=3D"_blank">arvinb at columbus.rr.com</a>&gt;</span> wrote:=
<div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border=
-left-style:solid;padding-left:1ex"><div style=3D"font-size:14px;font-family:C=
alibri,sans-serif;word-wrap:break-word"><span><div style=3D"font-size:14px;fon=
t-family:Calibri,sans-serif;word-wrap:break-word"><span><div><div style=3D"fon=
t-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>Using =
WebKit/WebView I am opening a new web view when '<span style=3D"font-family:Me=
nlo;font-size:11px">webView:</span><span style=3D"font-family:Menlo;font-size:=
11px">createWebViewWithRequest:'</span><span style=3D"font-family:Menlo;font-s=
ize:11px">&nbsp;</span>is called. The image WebKit.jpg attached shows my res=
ults where the Iframe is not lining up. Other browsers using WebKit such as =
Chrome and Firefox are not exhibiting this same behavior (example attached a=
s Chrome.jpg). I must be missing some flag or something very simple, but not=
 sure exactly where to begin. Can someone please assist?</div></div></div></=
span></div></span></div></blockquote><div><br></div><div style=3D"">It could b=
e a bug, it would be a good idea to file a new bug report on <a href=3D"http:/=
/bugs.webkit.org">bugs.webkit.org</a> with all the informations.</div><div s=
tyle=3D""><br></div><div style=3D"">From the screenshots, I have no clue what is=
 going on. It would be good to share the minimal code that reproduces the is=
sue.</div><div style=3D""><br></div><div style=3D"">Benjamin</div></div></div></=
div></span></body></html>

--B_3448813215_3848134--




More information about the webkit-help mailing list