WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
9622
REGRESSION: showModalDialog returnValue ignored, function result is always "undefined"
https://bugs.webkit.org/show_bug.cgi?id=9622
Summary
REGRESSION: showModalDialog returnValue ignored, function result is always "u...
Mark Malone
Reported
2006-06-27 11:18:59 PDT
The result of the showModalDialog call is the value of the returnValue variable. Current webkit builds report "undefined" as the result of the showModalDialog call regardless of the returnValue's value.
Attachments
patch, including change log and a manual test
(6.96 KB, patch)
2006-06-29 09:14 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
patch, including change log and a manual test
(7.66 KB, patch)
2006-06-29 09:36 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
better patch with change log, can still use the old test case
(8.22 KB, patch)
2006-07-08 09:05 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
better patch with change log, can still use the old test case
(6.72 KB, patch)
2006-07-08 09:43 PDT
,
Darin Adler
ggaren
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2006-06-28 16:00:44 PDT
Works in 10.4.7.
Darin Adler
Comment 2
2006-06-29 08:51:03 PDT
The problem is that Window::clear() is not being called at all. This is presumably having many bad symptoms, not just this one!
Darin Adler
Comment 3
2006-06-29 08:54:26 PDT
The change that broke this was the one for
bug 6818
.
Darin Adler
Comment 4
2006-06-29 09:14:21 PDT
Created
attachment 9092
[details]
patch, including change log and a manual test Not the most elegant solution to the problem, but does fix it.
Darin Adler
Comment 5
2006-06-29 09:36:54 PDT
Created
attachment 9095
[details]
patch, including change log and a manual test
Anders Carlsson
Comment 6
2006-06-29 09:43:31 PDT
Comment on
attachment 9095
[details]
patch, including change log and a manual test r=me
Darin Adler
Comment 7
2006-06-29 19:50:48 PDT
Committed revision 15097.
Darin Adler
Comment 8
2006-06-29 19:52:13 PDT
<
rdar://problem/4604701
>
Darin Adler
Comment 9
2006-07-08 08:56:51 PDT
Comment on
attachment 9095
[details]
patch, including change log and a manual test Further testing show this not working in some cases. New patch forthcoming.
Darin Adler
Comment 10
2006-07-08 09:05:46 PDT
Created
attachment 9269
[details]
better patch with change log, can still use the old test case
Darin Adler
Comment 11
2006-07-08 09:43:15 PDT
Created
attachment 9271
[details]
better patch with change log, can still use the old test case
Geoffrey Garen
Comment 12
2006-07-08 10:57:15 PDT
Comment on
attachment 9271
[details]
better patch with change log, can still use the old test case r=me I think kjs_window.cpp could use a comment explaining why you need to do this: + if (!returnValue) + returnValue = dialogWindow->getDirect("returnValue"); Also, it looks like you changed the indenting in KJSProxy::clear from 4 spaces to 2.
Darin Adler
Comment 13
2006-07-08 12:41:12 PDT
(In reply to
comment #12
)
> I think kjs_window.cpp could use a comment explaining why you need to do this: > > + if (!returnValue) > + returnValue = dialogWindow->getDirect("returnValue");
OK. Will do.
> Also, it looks like you changed the indenting in KJSProxy::clear from 4 spaces > to 2.
Actually, my previous fix changed the indenting in KJSProxy::clear from 2 spaces to 4, and I rolled it out. My new change was small enough that I did not feel comfortable reindenting the function at the same time.
Darin Adler
Comment 14
2006-07-08 12:58:29 PDT
Committed revision 15239.
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