[Webkit-unassigned] [Bug 7899] FrameTree:uniqueChildName doesn't return unique names

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 22 23:17:42 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=7899


ggaren at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com




------- Comment #4 from ggaren at apple.com  2006-12-22 23:17 PDT -------
It would be trivial to fix this bug by replacing childCount() with a
never-decrementing count of the number of frames that have been added to the
page. In fact, we could gut the whole uniqueChildName function and just use the
count for unique-ing.

Since a page can have a maximum of 200 frames, the count would be (virtually)
guaranteed to be unique.

The only problem is this comment: "Create a repeatable name." Why does the name
need to be repeatable? What does repeatable mean? Using a global count would
give a frame a new name if you removed and then re-added it to the document. So
I don't think that would be "repeatable."

On the other hand, this bug demonstrates that frames *need* to acquire new
names when you remove and then re-add them to the document.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list