WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
75699
Disconnecting DOMWindow properties is fragile and overly complicated
https://bugs.webkit.org/show_bug.cgi?id=75699
Summary
Disconnecting DOMWindow properties is fragile and overly complicated
Adam Barth
Reported
2012-01-06 04:28:03 PST
Disconnecting DOMWindow properties is fragile and overly complicated
Attachments
Patch
(41.44 KB, patch)
2012-01-06 04:31 PST
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch
(41.44 KB, patch)
2012-01-06 04:34 PST
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch for landing
(47.97 KB, patch)
2012-01-06 23:34 PST
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch for landing
(47.97 KB, patch)
2012-01-06 23:38 PST
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2012-01-06 04:31:26 PST
Created
attachment 121423
[details]
Patch
Adam Barth
Comment 2
2012-01-06 04:34:25 PST
Created
attachment 121424
[details]
Patch
Alexey Proskuryakov
Comment 3
2012-01-06 10:32:51 PST
Comment on
attachment 121424
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=121424&action=review
Will DOMWindowProperty be able to reconnect, finally resolving the horrible, horrible
bug 34679
? Any cleanup in this area should have fixing that bug as its final goal.
> Source/WebCore/page/Console.cpp:339 > -MemoryInfo* Console::memory() const > +PassRefPtr<MemoryInfo> Console::memory() const
Does this mean that console.memory===console.memory will no longer be true?
> Source/WebCore/page/DOMWindow.cpp:517 > + // FIXME: Notifications should work like the other properties.
Would be helpful to clarify in which respect they are different. One will be able to discover the context from svn blame, but that's harder than just reading a comment.
Adam Barth
Comment 4
2012-01-06 13:48:20 PST
> Will DOMWindowProperty be able to reconnect, finally resolving the horrible, horrible
bug 34679
? Any cleanup in this area should have fixing that bug as its final goal.
Yes. That's one of the things I'm headed towards. By keeping a list of all the properties, we'll be able to walk that list and reconnect them!
> > Source/WebCore/page/Console.cpp:339 > > -MemoryInfo* Console::memory() const > > +PassRefPtr<MemoryInfo> Console::memory() const > > Does this mean that console.memory===console.memory will no longer be true?
It never was true. Even before the patch m_memory was always created fresh every time the property was accessed. I can add a FIXME about changing this behavior, but I'd prefer to keep functional changes for a future patch.
> > Source/WebCore/page/DOMWindow.cpp:517 > > + // FIXME: Notifications should work like the other properties. > > Would be helpful to clarify in which respect they are different. One will be able to discover the context from svn blame, but that's harder than just reading a comment.
Will do.
Alexey Proskuryakov
Comment 5
2012-01-06 13:56:26 PST
Comment on
attachment 121424
[details]
Patch I don't know how these "MemoryInfo" properties were allowed into WebKit. They feel wrong. r=me
Adam Barth
Comment 6
2012-01-06 14:17:07 PST
> I don't know how these "MemoryInfo" properties were allowed into WebKit. They feel wrong.
Looks like it was added in
http://trac.webkit.org/changeset/63537
. I agree that the current code doesn't make much sense.
Adam Barth
Comment 7
2012-01-06 17:00:01 PST
Comment on
attachment 121424
[details]
Patch Need to land the earlier patch first.
Adam Barth
Comment 8
2012-01-06 23:34:02 PST
Created
attachment 121541
[details]
Patch for landing
WebKit Review Bot
Comment 9
2012-01-06 23:36:19 PST
Attachment 121541
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/W..." exit_code: 1 Source/WebCore/page/DOMWindowProperty.cpp:30: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 43 files If any of these errors are false positives, please file a bug against check-webkit-style.
Adam Barth
Comment 10
2012-01-06 23:38:32 PST
Created
attachment 121542
[details]
Patch for landing
WebKit Review Bot
Comment 11
2012-01-07 00:46:55 PST
Comment on
attachment 121542
[details]
Patch for landing Clearing flags on attachment: 121542 Committed
r104380
: <
http://trac.webkit.org/changeset/104380
>
WebKit Review Bot
Comment 12
2012-01-07 00:47:01 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug