Bug 116655

Summary: WebFrameProxy::didFailLoad clears frame title for no apparent reason
Product: WebKit Reporter: Santosh Mahto <santosh.ma>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, benjamin, cdumez, commit-queue, gyuyoung.kim, sam, santosh.mahto, vivekg
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch none

Description Santosh Mahto 2013-05-23 03:43:45 PDT
void WebFrameProxy::didFailLoad()
{
........
.....
 m_title = String();   // causing title to empty even though Page(and title) is displayed 
}
When Page loading is stopped before load is finished. we should not set the title to empty string
We still have the content to display on screen(we have full Frame & dom tree present).
So if page is stopped the UI process always get the empty title even though the page related to 
that title exists.
Comment 1 Santosh Mahto 2013-05-23 03:53:13 PDT
Created attachment 202657 [details]
Patch
Comment 2 Alexey Proskuryakov 2013-05-23 10:52:24 PDT
One thing that's very helpful to do in cases like this is svn blame, which may explain rationale behind the code.

Here, it points to <http://trac.webkit.org/changeset/74282>. As you can see, the behavior was chosen conscientiously, and even mentioned in ChangeLog .
Comment 3 Alexey Proskuryakov 2013-05-23 10:53:30 PDT
Comment on attachment 202657 [details]
Patch

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

But I still agree that the behavior is wrong.

> Source/WebKit2/ChangeLog:3
> +        [WebFrameProxy::didFailLoad] title becomes empty even though Page(and title) is

Please update the title in ChangeLog to match Bugzilla.

We use brackets in title for a very specific purpose (marking patches that are of limited interest only).
Comment 4 Santosh Mahto 2013-05-23 19:46:27 PDT
Created attachment 202757 [details]
Patch
Comment 5 Santosh Mahto 2013-05-24 18:33:15 PDT
(In reply to comment #3)
> (From update of attachment 202657 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=202657&action=review
> 
> But I still agree that the behavior is wrong.
> 
> > Source/WebKit2/ChangeLog:3
> > +        [WebFrameProxy::didFailLoad] title becomes empty even though Page(and title) is
> 
> Please update the title in ChangeLog to match Bugzilla.
> 
> We use brackets in title for a very specific purpose (marking patches that are of limited interest only).

Hi 
I updated the changLog as requested.
 please give +1 for  this patch
Comment 6 Vivek Galatage 2013-05-25 11:15:31 PDT
cq+
Comment 7 WebKit Commit Bot 2013-05-25 11:35:29 PDT
Comment on attachment 202757 [details]
Patch

Clearing flags on attachment: 202757

Committed r150689: <http://trac.webkit.org/changeset/150689>
Comment 8 WebKit Commit Bot 2013-05-25 11:35:33 PDT
All reviewed patches have been landed.  Closing bug.