Bug 72002

Summary: Add NULL checks to setting access which is obtained on frame and document
Product: WebKit Reporter: Grzegorz Czajkowski <g.czajkowski>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, cshu, dglazkov, japhet, kling, rakuco, rniwa, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
proposed patch
webkit-ews: commit-queue-
updated patch
webkit.review.bot: commit-queue-
updated patch
kling: review+
patch for landing none

Description Grzegorz Czajkowski 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.
Comment 1 Grzegorz Czajkowski 2011-11-09 23:57:07 PST
Created attachment 114444 [details]
proposed patch
Comment 2 Early Warning System Bot 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
Comment 3 WebKit Review Bot 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
Comment 4 Grzegorz Czajkowski 2011-11-15 03:00:09 PST
Created attachment 115133 [details]
updated patch

Fix WebKit-Qt build break
Comment 5 WebKit Review Bot 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
Comment 6 Grzegorz Czajkowski 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.
Comment 7 Eric Seidel (no email) 2011-12-19 11:53:20 PST
Comment on attachment 115133 [details]
updated patch

OK.  Can we test this?
Comment 8 Ryosuke Niwa 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).
Comment 9 Grzegorz Czajkowski 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.
Comment 10 Grzegorz Czajkowski 2012-01-10 02:43:58 PST
Created attachment 121815 [details]
updated patch

Fixes bug which caused failing of tests.
Comment 11 Andreas Kling 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.
Comment 12 Grzegorz Czajkowski 2012-01-10 03:43:46 PST
Created attachment 121823 [details]
patch for landing

Fixed typo.
Comment 13 Andreas Kling 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.
Comment 14 WebKit Review Bot 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>
Comment 15 WebKit Review Bot 2012-01-10 04:20:11 PST
All reviewed patches have been landed.  Closing bug.