<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>106032</bug_id>
          
          <creation_ts>2013-01-03 13:40:59 -0800</creation_ts>
          <short_desc>r138413 caused 8 http/tests/security/cookies tests to fail on Win7</short_desc>
          <delta_ts>2013-01-16 08:55:44 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roger Fong">roger_fong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>roger_fong</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>799630</commentid>
    <comment_count>0</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-01-03 13:40:59 -0800</bug_when>
    <thetext>Results:
http://build.webkit.org/results/Apple%20Win%207%20Release%20(Tests)/r138513%20(31211)/results.html

An assertion failure is hit ASSERT(privateBrowsingStorageSession()) in WebFrameNetworkingContext::storageSession()


Stack Trace:
&gt;	WebKit.dll!WebFrameNetworkingContext::storageSession()  Line 99 + 0x36 bytes	C++
 	WebKit.dll!WebCore::ResourceHandle::start(WebCore::NetworkingContext * context=0x009b6f40)  Line 509 + 0xf bytes	C++
 	WebKit.dll!WebCore::ResourceHandle::create(WebCore::NetworkingContext * context=0x009b6f40, const WebCore::ResourceRequest &amp; request={...}, WebCore::ResourceHandleClient * client=0x07872830, bool defersLoading=false, bool shouldContentSniff=true)  Line 82 + 0x13 bytes	C++
 	WebKit.dll!WebCore::ResourceLoader::start()  Line 171 + 0x49 bytes	C++
 	WebKit.dll!WebCore::ResourceLoadScheduler::servePendingRequests(WebCore::ResourceLoadScheduler::HostInformation * host=0x0785c6a8, WebCore::ResourceLoadPriority minimumPriority=ResourceLoadPriorityVeryHigh)  Line 243	C++
 	WebKit.dll!WebCore::ResourceLoadScheduler::scheduleLoad(WebCore::ResourceLoader * resourceLoader=0x07872830, WebCore::ResourceLoadPriority priority=ResourceLoadPriorityVeryHigh)  Line 158	C++
 	WebKit.dll!WebCore::ResourceLoadScheduler::scheduleSubresourceLoad(WebCore::Frame * frame=0x009a52f0, WebCore::CachedResource * resource=0x078722c8, const WebCore::ResourceRequest &amp; request={...}, WebCore::ResourceLoadPriority priority=ResourceLoadPriorityVeryHigh, const WebCore::ResourceLoaderOptions &amp; options={...})  Line 124	C++
 	WebKit.dll!WebCore::CachedResource::load(WebCore::CachedResourceLoader * cachedResourceLoader=0x00a7f168, const WebCore::ResourceLoaderOptions &amp; options={...})  Line 316 + 0x72 bytes	C++
 	WebKit.dll!WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type type=MainResource, WebCore::CachedResourceRequest &amp; request={...})  Line 466 + 0x30 bytes	C++
 	WebKit.dll!WebCore::CachedResourceLoader::requestMainResource(WebCore::CachedResourceRequest &amp; request={...})  Line 256 + 0x12 bytes	C++
 	WebKit.dll!WebCore::MainResourceLoader::load(const WebCore::ResourceRequest &amp; initialRequest={...}, const WebCore::SubstituteData &amp; substituteData={...})  Line 656 + 0x24 bytes	C++
 	WebKit.dll!WebCore::DocumentLoader::startLoadingMainResource()  Line 890	C++
 	WebKit.dll!WebCore::FrameLoader::continueLoadAfterWillSubmitForm()  Line 2218	C++
 	WebKit.dll!WebCore::PolicyChecker::continueLoadAfterWillSubmitForm(WebCore::PolicyAction __formal=PolicyUse)  Line 135	C++
 	WebKit.dll!WebFrame::dispatchWillSubmitForm(void (WebCore::PolicyAction)* function=0x5bbe4660, WTF::PassRefPtr&lt;WebCore::FormState&gt; formState={...})  Line 1526 + 0x18 bytes	C++
 	WebKit.dll!WebCore::FrameLoader::continueLoadAfterNavigationPolicy(const WebCore::ResourceRequest &amp; __formal={...}, WTF::PassRefPtr&lt;WebCore::FormState&gt; formState={...}, bool shouldContinue=true)  Line 2817	C++
 	WebKit.dll!WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy(void * argument=0x009a5340, const WebCore::ResourceRequest &amp; request={...}, WTF::PassRefPtr&lt;WebCore::FormState&gt; formState={...}, bool shouldContinue=true)  Line 2689	C++
 	WebKit.dll!WebCore::PolicyCallback::call(bool shouldContinue=true)  Line 103 + 0x34 bytes	C++
 	WebKit.dll!WebCore::PolicyChecker::continueAfterNavigationPolicy(WebCore::PolicyAction policy=PolicyUse)  Line 168	C++
 	WebKit.dll!WebFrame::receivedPolicyDecision(WebCore::PolicyAction action=PolicyUse)  Line 1728 + 0x1a bytes	C++
 	WebKit.dll!WebFramePolicyListener::receivedPolicyDecision(WebCore::PolicyAction action=PolicyUse)  Line 126	C++
 	WebKit.dll!WebFramePolicyListener::use()  Line 97	C++
 	WebKit.dll!DefaultPolicyDelegate::decidePolicyForNavigationAction(IWebView * webView=0x009a04c8, IPropertyBag * actionInformation=0x00a7fbb0, IWebURLRequest * request=0x00a7f9e8, IWebFrame * __formal=0x009a5208, IWebPolicyDecisionListener * listener=0x07851810)  Line 118 + 0x10 bytes	C++
 	WebKit.dll!WebFrame::dispatchDecidePolicyForNavigationAction(void (WebCore::PolicyAction)* function=0x5bbe4690, const WebCore::NavigationAction &amp; action={...}, const WebCore::ResourceRequest &amp; request={...}, WTF::PassRefPtr&lt;WebCore::FormState&gt; formState={...})  Line 1778 + 0x59 bytes	C++
 	WebKit.dll!WebCore::PolicyChecker::checkNavigationPolicy(const WebCore::ResourceRequest &amp; request={...}, WebCore::DocumentLoader * loader=0x078929d0, WTF::PassRefPtr&lt;WebCore::FormState&gt; formState={...}, void (void *, const WebCore::ResourceRequest &amp;, WTF::PassRefPtr&lt;WebCore::FormState&gt;, bool)* function=0x5afe7250, void * argument=0x009a5340)  Line 90	C++
 	WebKit.dll!WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader * loader=0x078929d0, WebCore::FrameLoadType type=FrameLoadTypeRedirectWithLockedBackForwardList, WTF::PassRefPtr&lt;WebCore::FormState&gt; prpFormState={...})  Line 1400	C++
 	WebKit.dll!WebCore::FrameLoader::loadWithNavigationAction(const WebCore::ResourceRequest &amp; request={...}, const WebCore::NavigationAction &amp; action={...}, bool lockHistory=true, WebCore::FrameLoadType type=FrameLoadTypeRedirectWithLockedBackForwardList, WTF::PassRefPtr&lt;WebCore::FormState&gt; formState={...})  Line 1303	C++
 	WebKit.dll!WebCore::FrameLoader::loadPostRequest(const WebCore::ResourceRequest &amp; inRequest={...}, const WTF::String &amp; referrer={}, const WTF::String &amp; frameName={}, bool lockHistory=true, WebCore::FrameLoadType loadType=FrameLoadTypeRedirectWithLockedBackForwardList, WTF::PassRefPtr&lt;WebCore::Event&gt; event={...}, WTF::PassRefPtr&lt;WebCore::FormState&gt; prpFormState={...})  Line 2542	C++
 	WebKit.dll!WebCore::FrameLoader::loadFrameRequest(const WebCore::FrameLoadRequest &amp; request={...}, bool lockHistory=true, bool lockBackForwardList=true, WTF::PassRefPtr&lt;WebCore::Event&gt; event={...}, WTF::PassRefPtr&lt;WebCore::FormState&gt; formState={...}, WebCore::ShouldSendReferrer shouldSendReferrer=MaybeSendReferrer)  Line 1166	C++
 	WebKit.dll!WebCore::ScheduledFormSubmission::fire(WebCore::Frame * frame=0x009a52f0)  Line 236	C++
 	WebKit.dll!WebCore::NavigationScheduler::timerFired(WebCore::Timer&lt;WebCore::NavigationScheduler&gt; * __formal=0x009a5620)  Line 418 + 0x20 bytes	C++
 	WebKit.dll!WebCore::Timer&lt;WebCore::NavigationScheduler&gt;::fired()  Line 106 + 0x23 bytes	C++
 	WebKit.dll!WebCore::ThreadTimers::sharedTimerFiredInternal()  Line 116 + 0xf bytes	C++
 	WebKit.dll!WebCore::ThreadTimers::sharedTimerFired()  Line 94	C++
 	WebKit.dll!WebCore::TimerWindowWndProc(HWND__ * hWnd=0x0025051c, unsigned int message=49827, unsigned int wParam=0, long lParam=0)  Line 103 + 0x8 bytes	C++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800687</commentid>
    <comment_count>1</comment_count>
      <attachid>181395</attachid>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-01-04 15:31:51 -0800</bug_when>
    <thetext>Created attachment 181395
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800712</commentid>
    <comment_count>2</comment_count>
      <attachid>181395</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-01-04 16:04:26 -0800</bug_when>
    <thetext>Comment on attachment 181395
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=181395&amp;action=review

Sorry about this!

&gt; Source/WebKit/win/WebView.cpp:4683
&gt;      settings-&gt;setPrivateBrowsingEnabled(!!enabled);

I think that this line should be after the block you added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800717</commentid>
    <comment_count>3</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-01-04 16:20:15 -0800</bug_when>
    <thetext>fixed and committed r138865</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>808406</commentid>
    <comment_count>4</comment_count>
      <attachid>181395</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-01-16 08:55:44 -0800</bug_when>
    <thetext>Comment on attachment 181395
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=181395&amp;action=review

&gt; Source/WebKit/win/WebView.cpp:4684
&gt; +#if PLATFORM(WIN) || USE(CFNETWORK)

Why both PLATFORM(WIN) and USE(CFNETWORK)? Doesn’t just USE(CFNETWORK) suffice?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>181395</attachid>
            <date>2013-01-04 15:31:51 -0800</date>
            <delta_ts>2013-01-16 08:55:44 -0800</delta_ts>
            <desc>patch</desc>
            <filename>private_brownsing.patch</filename>
            <type>text/plain</type>
            <size>1395</size>
            <attacher name="Roger Fong">roger_fong</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvd2luL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2Uv
V2ViS2l0L3dpbi9DaGFuZ2VMb2cJKHJldmlzaW9uIDEzODg1NykKKysrIFNvdXJjZS9XZWJLaXQv
d2luL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDEzLTAxLTA0
ICBSb2dlciBGb25nICA8cm9nZXJfZm9uZ0BhcHBsZS5jb20+CisKKyAgICAgICAgTWFrZSBwcml2
YXRlIGJyb3dzaW5nIHdvcmsgb24gV2luZG93cy4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtp
dC5vcmcvc2hvd19idWcuY2dpP2lkPTEwNjAzMi4KKworICAgICAgICBDb2RlIHBhdGggbmV2ZXIg
Y2FsbGVkIGVuc3VyZVByaXZhdGVCcm93c2luZ1Nlc3Npb24gd2hpY2ggaXMgd2hhdCBzdGFydHMg
dXAgdGhlIHByaXZhdGUgYnJvd3Npbmcgc2Vzc2lvbi4KKyAgICAgICAgVGhpcyB3YXMgY2F1c2lu
ZyBtYW55IHRlc3RzIHRvIGludm9sdmluZyBwcml2YXRlIGJyb3dzaW5nIHRvIGZhaWwuCisKKyAg
ICAgICAgKiBXZWJWaWV3LmNwcDoKKyAgICAgICAgKFdlYlZpZXc6Om5vdGlmeVByZWZlcmVuY2Vz
Q2hhbmdlZCk6CisKIDIwMTMtMDEtMDMgIFJvZ2VyIEZvbmcgIDxyb2dlcl9mb25nQGFwcGxlLmNv
bT4KIAogICAgICAgICBSZW1vdmUgYWxsIHRyYWNlcyBvZiBXaW5kb3dzIGZyb20gV2ViS2l0MiBm
b2xkZXIuCkluZGV4OiBTb3VyY2UvV2ViS2l0L3dpbi9XZWJWaWV3LmNwcAo9PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0t
LSBTb3VyY2UvV2ViS2l0L3dpbi9XZWJWaWV3LmNwcAkocmV2aXNpb24gMTM4NzU5KQorKysgU291
cmNlL1dlYktpdC93aW4vV2ViVmlldy5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTQ2ODEsNiArNDY4
MSwxMiBAQCBIUkVTVUxUIFdlYlZpZXc6Om5vdGlmeVByZWZlcmVuY2VzQ2hhbmdlCiAgICAgaWYg
KEZBSUxFRChocikpCiAgICAgICAgIHJldHVybiBocjsKICAgICBzZXR0aW5ncy0+c2V0UHJpdmF0
ZUJyb3dzaW5nRW5hYmxlZCghIWVuYWJsZWQpOworI2lmIFBMQVRGT1JNKFdJTikgfHwgVVNFKENG
TkVUV09SSykKKyAgICBpZiAoZW5hYmxlZCkKKyAgICAgICAgV2ViRnJhbWVOZXR3b3JraW5nQ29u
dGV4dDo6ZW5zdXJlUHJpdmF0ZUJyb3dzaW5nU2Vzc2lvbigpOworICAgIGVsc2UKKyAgICAgICAg
V2ViRnJhbWVOZXR3b3JraW5nQ29udGV4dDo6ZGVzdHJveVByaXZhdGVCcm93c2luZ1Nlc3Npb24o
KTsKKyNlbmRpZgogCiAgICAgaHIgPSBwcmVmZXJlbmNlcy0+c2Fuc1NlcmlmRm9udEZhbWlseSgm
c3RyKTsKICAgICBpZiAoRkFJTEVEKGhyKSkK
</data>
<flag name="review"
          id="198999"
          type_id="1"
          status="+"
          setter="ap"
    />
    <flag name="commit-queue"
          id="199003"
          type_id="3"
          status="-"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>