RESOLVED FIXED Bug 72002
Add NULL checks to setting access which is obtained on frame and document
https://bugs.webkit.org/show_bug.cgi?id=72002
Summary Add NULL checks to setting access which is obtained on frame and document
Grzegorz Czajkowski
Reported 2011-11-09 23:56:00 PST
Adds NULL checks to seeting object where it's required. Generally WebCore checks NULL which may be returned from setting object obtained on frame or document but in some cases these are skipped. These checks are not needed to setting's access on page object.
Attachments
proposed patch (11.75 KB, patch)
2011-11-09 23:57 PST, Grzegorz Czajkowski
webkit-ews: commit-queue-
updated patch (11.00 KB, patch)
2011-11-15 03:00 PST, Grzegorz Czajkowski
webkit.review.bot: commit-queue-
updated patch (10.97 KB, patch)
2012-01-10 02:43 PST, Grzegorz Czajkowski
kling: review+
patch for landing (10.96 KB, patch)
2012-01-10 03:43 PST, Grzegorz Czajkowski
no flags
Grzegorz Czajkowski
Comment 1 2011-11-09 23:57:07 PST
Created attachment 114444 [details] proposed patch
Early Warning System Bot
Comment 2 2011-11-10 00:01:14 PST
Comment on attachment 114444 [details] proposed patch Attachment 114444 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/10354296
WebKit Review Bot
Comment 3 2011-11-10 00:20:40 PST
Comment on attachment 114444 [details] proposed patch Attachment 114444 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/10401241 New failing tests: editing/input/password-echo-passnode.html editing/input/password-echo-passnode2.html
Grzegorz Czajkowski
Comment 4 2011-11-15 03:00:09 PST
Created attachment 115133 [details] updated patch Fix WebKit-Qt build break
WebKit Review Bot
Comment 5 2011-11-15 03:42:37 PST
Comment on attachment 115133 [details] updated patch Attachment 115133 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/10483285 New failing tests: editing/input/password-echo-passnode.html editing/input/password-echo-passnode2.html
Grzegorz Czajkowski
Comment 6 2011-12-14 05:03:41 PST
Hello Dimitri and Nate, Can you confirm that this patch may cause failing of those tests? I don't have environment with Chromium DumpRenderTree application so I'd glad to hear your opinion. Thanks.
Eric Seidel (no email)
Comment 7 2011-12-19 11:53:20 PST
Comment on attachment 115133 [details] updated patch OK. Can we test this?
Ryosuke Niwa
Comment 8 2012-01-10 01:49:18 PST
(In reply to comment #5) > (From update of attachment 115133 [details]) > Attachment 115133 [details] did not pass chromium-ews (chromium-xvfb): > Output: http://queues.webkit.org/results/10483285 > > New failing tests: > editing/input/password-echo-passnode.html > editing/input/password-echo-passnode2.html Your patch probably breaks these two tests on all platforms (note: only cr-linux EWS bots run tests).
Grzegorz Czajkowski
Comment 9 2012-01-10 01:57:49 PST
(In reply to comment #8) > (In reply to comment #5) > > (From update of attachment 115133 [details] [details]) > > Attachment 115133 [details] [details] did not pass chromium-ews (chromium-xvfb): > > Output: http://queues.webkit.org/results/10483285 > > > > New failing tests: > > editing/input/password-echo-passnode.html > > editing/input/password-echo-passnode2.html > > Your patch probably breaks these two tests on all platforms (note: only cr-linux EWS bots run tests). CC'ing Andreas Kling. Ok, Andreas has found bug in the patch. I will fix it.
Grzegorz Czajkowski
Comment 10 2012-01-10 02:43:58 PST
Created attachment 121815 [details] updated patch Fixes bug which caused failing of tests.
Andreas Kling
Comment 11 2012-01-10 03:28:01 PST
Comment on attachment 121815 [details] updated patch View in context: https://bugs.webkit.org/attachment.cgi?id=121815&action=review > Source/WebCore/ChangeLog:8 > + Adds NULL checks to seeting object where it's required. Typo, settings.
Grzegorz Czajkowski
Comment 12 2012-01-10 03:43:46 PST
Created attachment 121823 [details] patch for landing Fixed typo.
Andreas Kling
Comment 13 2012-01-10 04:00:15 PST
For the record, it's unfortunate that we don't have tests for these changes. However I believe these null-checks are sane and belong in WebKit. In the future, please provide tests that exercise your changes, or explain why tests aren't possible.
WebKit Review Bot
Comment 14 2012-01-10 04:20:05 PST
Comment on attachment 121823 [details] patch for landing Clearing flags on attachment: 121823 Committed r104552: <http://trac.webkit.org/changeset/104552>
WebKit Review Bot
Comment 15 2012-01-10 04:20:11 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.