Bug 53797

Summary: [GTK] WebKitWebFrame can return a stale frame name when calling webkit_web_frame_get_name
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo, mihaip
Priority: P3 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch for this issue none

Martin Robinson
Reported 2011-02-04 12:20:14 PST
If you call webkit_web_frame_get_name more than once with the same WebKitWebFrame*, it can return a stale frame name if the name changes between the calls. This can be observed by the failure of fast/history/history-subframe-with-name.html.
Attachments
Patch for this issue (3.98 KB, patch)
2011-02-04 12:28 PST, Martin Robinson
no flags
Martin Robinson
Comment 1 2011-02-04 12:23:11 PST
Sorry, the failing test should be: fast/events/pageshow-pagehide-on-back-uncached.html. The previously mentioned test is failing for some other reason and that failure is tracked in 44784.
Martin Robinson
Comment 2 2011-02-04 12:28:05 PST
Created attachment 81265 [details] Patch for this issue
Martin Robinson
Comment 3 2011-02-04 12:28:51 PST
I have attached a patch fixing this issue.
Martin Robinson
Comment 4 2011-02-04 17:14:37 PST
Comment on attachment 81265 [details] Patch for this issue View in context: https://bugs.webkit.org/attachment.cgi?id=81265&action=review > LayoutTests/platform/gtk/Skipped:4728 > -fast/events/pagehide-timeout.html > \ No newline at end of file > +fast/events/pagehide-timeout.html This change is an accent from my editing, I think. I'll omit it when landing.
Xan Lopez
Comment 5 2011-02-04 17:27:16 PST
Comment on attachment 81265 [details] Patch for this issue View in context: https://bugs.webkit.org/attachment.cgi?id=81265&action=review > Source/WebKit/gtk/webkit/webkitwebframe.cpp:487 > I guess we should return "" here to not break the API subtly. It does not make much sense, though...
Martin Robinson
Comment 6 2011-02-04 18:13:17 PST
Martin Robinson
Comment 7 2011-02-04 18:14:00 PST
Comment on attachment 81265 [details] Patch for this issue Landed with Xan's suggestions.
Note You need to log in before you can comment on or make changes to this bug.