Bug 80906 - _runtime_feature_list isn't supported on Apple Mac DRT
Summary: _runtime_feature_list isn't supported on Apple Mac DRT
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 16:29 PDT by Dirk Pranke
Modified: 2012-03-12 17:43 PDT (History)
5 users (show)

See Also:


Attachments
Patch (1.46 KB, patch)
2012-03-12 16:30 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
Patch (11.42 KB, patch)
2012-03-12 16:52 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
Patch (10.92 KB, patch)
2012-03-12 16:58 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
rework docstring (10.96 KB, patch)
2012-03-12 17:02 PDT, Dirk Pranke
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2012-03-12 16:29:58 PDT
_runtime_feature_list isn't supported on Apple Mac DRT
Comment 1 Dirk Pranke 2012-03-12 16:30:55 PDT
Created attachment 131445 [details]
Patch
Comment 2 Eric Seidel (no email) 2012-03-12 16:35:50 PDT
Comment on attachment 131445 [details]
Patch

I'm not sure what the purpose of adding this stub is?
Comment 3 Alexey Proskuryakov 2012-03-12 16:37:40 PDT
Comment on attachment 131445 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=131445&action=review

Thanks for fixing this!

> Tools/Scripts/webkitpy/layout_tests/port/apple.py:99
> +        # FIXME: Implement this properly?

I think that it's worth commenting that (a) it crashes because the script doesn't set DYLD_FRAMEWORK_PATH, and (b) this feature may be obsolete now.
Comment 4 Dirk Pranke 2012-03-12 16:52:12 PDT
Created attachment 131453 [details]
Patch
Comment 5 Eric Seidel (no email) 2012-03-12 16:54:30 PDT
Comment on attachment 131453 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=131453&action=review

Are we 100% sure this is AppleWin-only?

> Tools/Scripts/webkitpy/layout_tests/port/webkit.py:253
> +        """A port can implement this to detect features only known through compile-time or run-time flags."""

compile-time?

> Tools/Scripts/webkitpy/layout_tests/port/webkit.py:566
> +        import pdb
> +        pdb.set_trace()

I don't think you meant to includ ethis.
Comment 6 Dirk Pranke 2012-03-12 16:57:15 PDT
(In reply to comment #2)
> (From update of attachment 131445 [details])
> I'm not sure what the purpose of adding this stub is?

To override the default, which assumed the port implemented this ... however, as you can see in the second patch, flipping the base class implementation is a more accurate way to model things.

(In reply to comment #5)
> (From update of attachment 131453 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=131453&action=review
> 
> Are we 100% sure this is AppleWin-only?
> 

Seems to be.

> > Tools/Scripts/webkitpy/layout_tests/port/webkit.py:253
> > +        """A port can implement this to detect features only known through compile-time or run-time flags."""
> 
> compile-time?
>

I thought the intent of this was to also detect which features had been compiled in (or out). At least that's the way that I look at it, even though you're actually running something to determine that. I can stick with run-time flags if you prefer.

> > Tools/Scripts/webkitpy/layout_tests/port/webkit.py:566
> > +        import pdb
> > +        pdb.set_trace()
> 
> I don't think you meant to includ ethis.

Indeed. I thought I got rid of that but somehow it seems to have snuck back in.
Comment 7 Dirk Pranke 2012-03-12 16:58:32 PDT
Created attachment 131456 [details]
Patch
Comment 8 Eric Seidel (no email) 2012-03-12 16:59:01 PDT
Comment on attachment 131453 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=131453&action=review

>>> Tools/Scripts/webkitpy/layout_tests/port/webkit.py:253
>>> +        """A port can implement this to detect features only known through compile-time or run-time flags."""
>> 
>> compile-time?
> 
> I thought the intent of this was to also detect which features had been compiled in (or out). At least that's the way that I look at it, even though you're actually running something to determine that. I can stick with run-time flags if you prefer.

Does the compile-time detection work through the same function?  I thought it was a different set of functions...
Comment 9 Dirk Pranke 2012-03-12 17:00:13 PDT
(In reply to comment #8)
> (From update of attachment 131453 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=131453&action=review
> 
> >>> Tools/Scripts/webkitpy/layout_tests/port/webkit.py:253
> >>> +        """A port can implement this to detect features only known through compile-time or run-time flags."""
> >> 
> >> compile-time?
> > 
> > I thought the intent of this was to also detect which features had been compiled in (or out). At least that's the way that I look at it, even though you're actually running something to determine that. I can stick with run-time flags if you prefer.
> 
> Does the compile-time detection work through the same function?  I thought it was a different set of functions...

Ah, true, I forgot about the "grep webcore for symbols" path ... we're way too fancy here.
Comment 10 Eric Seidel (no email) 2012-03-12 17:01:20 PDT
Comment on attachment 131456 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=131456&action=review

> Tools/ChangeLog:8
> +        It looks like this feature is actually only supported on the Win

It looks like I came to the same conclusion when writing http://trac.webkit.org/changeset/99377. :)
Comment 11 Dirk Pranke 2012-03-12 17:02:13 PDT
Created attachment 131458 [details]
rework docstring
Comment 12 Eric Seidel (no email) 2012-03-12 17:02:51 PDT
Comment on attachment 131456 [details]
Patch

It seems like this support was a dream.  A dream which never came to be.  Time to end the dream I guess.
Comment 13 Dirk Pranke 2012-03-12 17:43:38 PDT
Committed r110513: <http://trac.webkit.org/changeset/110513>