<?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>23554</bug_id>
          
          <creation_ts>2009-01-26 14:58:15 -0800</creation_ts>
          <short_desc>dispatchDecidePolicyForNavigationAction  invoked for invalid URL of embed tag</short_desc>
          <delta_ts>2011-08-08 11:25:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rahul Kuchhal">kuchhal</reporter>
          <assigned_to name="Dimitri Glazkov (Google)">dglazkov</assigned_to>
          <cc>cmarcelo</cc>
    
    <cc>dglazkov</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107090</commentid>
    <comment_count>0</comment_count>
    <who name="Rahul Kuchhal">kuchhal</who>
    <bug_when>2009-01-26 14:58:15 -0800</bug_when>
    <thetext>If I load a html file that only has &quot;&lt;html&gt;&lt;embed src=&quot;&quot; type=&quot;text/html&quot;&gt;&lt;/html&gt;&quot; contents, the method WebFrame::dispatchDecidePolicyForNavigationAction() gets called even though the request URL is invalid. Is this the right behavior?

Below is the stack trace for Safari on Windows and html file is attached.

 	WebKit.dll!WebFrame::dispatchDecidePolicyForNavigationAction
 	WebKit.dll!WebCore::FrameLoader::checkNavigationPolicy
 	WebKit.dll!WebCore::FrameLoader::loadWithDocumentLoader
 	WebKit.dll!WebCore::FrameLoader::loadWithNavigationAction
 	WebKit.dll!WebCore::FrameLoader::loadURL
 	WebKit.dll!WebCore::FrameLoader::loadURL
 	WebKit.dll!WebFrameLoaderClient::loadURLIntoChild
 	WebKit.dll!WebFrameLoaderClient::createFrame
 	WebKit.dll!WebFrameLoaderClient::createFrame
 	WebKit.dll!WebCore::FrameLoader::loadSubframe
 	WebKit.dll!WebCore::FrameLoader::requestObject
 	WebKit.dll!WebCore::RenderPartObject::updateWidget
 	WebKit.dll!WebCore::HTMLEmbedElement::updateWidget
 	WebKit.dll!WebCore::HTMLPlugInElement::updateWidgetCallback
 	WebKit.dll!WebCore::ContainerNode::dispatchPostAttachCallbacks
 	WebKit.dll!WebCore::ContainerNode::attach
 	WebKit.dll!WebCore::Element::attach()  Line 648	C++
 	WebKit.dll!WebCore::HTMLEmbedElement::attach()  Line 161	C++
 	WebKit.dll!WebCore::HTMLParser::insertNode
 	WebKit.dll!WebCore::HTMLParser::handleError
 	WebKit.dll!WebCore::HTMLParser::insertNode
 	WebKit.dll!WebCore::HTMLParser::handleError
 	WebKit.dll!WebCore::HTMLParser::insertNode
 	WebKit.dll!WebCore::HTMLParser::parseToken
 	WebKit.dll!WebCore::HTMLTokenizer::processToken
 	WebKit.dll!WebCore::HTMLTokenizer::parseTag
 	WebKit.dll!WebCore::HTMLTokenizer::write
 	WebKit.dll!WebCore::FrameLoader::write
 	WebKit.dll!WebCore::FrameLoader::endIfNotLoadingMainResource
 	WebKit.dll!WebCore::FrameLoader::end
 	WebKit.dll!WebCore::DocumentLoader::finishedLoading
 	WebKit.dll!WebCore::FrameLoader::finishedLoading
 	WebKit.dll!WebCore::MainResourceLoader::didFinishLoading
 	WebKit.dll!WebCore::ResourceLoader::didFinishLoading
 	WebKit.dll!WebCore::didFinishLoading</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107091</commentid>
    <comment_count>1</comment_count>
      <attachid>27050</attachid>
    <who name="Rahul Kuchhal">kuchhal</who>
    <bug_when>2009-01-26 14:58:47 -0800</bug_when>
    <thetext>Created attachment 27050
Test html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137598</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2009-08-06 10:47:08 -0700</bug_when>
    <thetext>That is a good question. Will use this bug for investigating.

For reference, the test case has already made it into a repository as a layout test:

http://trac.webkit.org/changeset/40792
https://bugs.webkit.org/show_bug.cgi?id=23806</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>27050</attachid>
            <date>2009-01-26 14:58:47 -0800</date>
            <delta_ts>2009-01-26 14:58:47 -0800</delta_ts>
            <desc>Test html</desc>
            <filename>a.htm</filename>
            <type>text/html</type>
            <size>44</size>
            <attacher name="Rahul Kuchhal">kuchhal</attacher>
            
              <data encoding="base64">PGh0bWw+PGVtYmVkIHNyYz0iIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>