[Webkit-unassigned] [Bug 50379] NULL-ptr with media queries

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 5 23:30:21 PST 2010


--- Comment #7 from Shinichiro Hamaji <hamaji at chromium.org>  2010-12-05 23:30:20 PST ---
Thanks again for your suggestion.

> Look for tests with SVG images.  You then have a <foreignObject> element in your SVG (try greping the LayoutTests for an example).  In the foriegnObject you can put your iframe.  I think that should have a null view.

I tried some HTMLs like

<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" id="svg" width="600" height="400">
  <foreignObject width="100%" height="100%">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <!-- foo.html contains @media (max-width:1768px) { ... } in its style -->
        <iframe id="iframe" src="foo.html"></iframe>

but iframe always had non-NULL views. Maybe I'm misunderstanding your suggestion?

> Another option is to look at some other null checks of the view and see if they were added together with a similar test for what you need.

I checked bunch of similar NULL checks. Unfortunately, most of them are part of big change and didn't have a corresponding test. This change was a small one but it doesn't have a test...


It seems I need better understanding on frames lifetime...

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

More information about the webkit-unassigned mailing list