<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>66655</bug_id>
          
          <creation_ts>2011-08-22 03:12:41 -0700</creation_ts>
          <short_desc>Web Inspector: [meta] compile front-end using closure compiler.</short_desc>
          <delta_ts>2014-12-12 14:10:15 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>66656</dependson>
          <blocked>66670</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Pavel Feldman">pfeldman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>efidler</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>454513</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-08-22 03:12:41 -0700</bug_when>
    <thetext>I&apos;ve been experimenting with closure compiler and have found a number of errors in the front-end with its help. Now that closure compiler supports getters and setters, I think it is time to give it another try. Here is what needs to be done:

1. Implement a python script that either compiles front-end using java library or sends files to the closure compiler service
2. Start annotating &quot;@constructor&quot; and &quot;@extends&quot; as suggested at http://code.google.com/closure/compiler/docs/js-for-compiler.html
3. Slowly compile files one by one, eliminating dependencies as we go

There are two potential problems as I see them:
1. We can&apos;t make compilation a build stage yet (either needs a java library or web service available)
2. Closure does not support &quot;const&quot;. I think this is a fine price to pay given that we can annotate it with /** @const */ and migrate back once const hits the standard.

Given the amount of effort I put into it vs the errors that I discovered, I think it is worth it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>454585</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2011-08-22 07:21:31 -0700</bug_when>
    <thetext>Sounds great.

I&apos;d be interested in seeing the list of the problems it found, or just a generic list of them.  Just curious what it CAN find.

While we might not be able to make this a formal build stage yet, seems like we could somehow make it optional.  Even just a separate script that you can run somehow.  I&apos;d prefer the Java approach, but that&apos;s mainly because I have Java installed on all my machines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>456066</commentid>
    <comment_count>2</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-08-24 05:59:23 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Sounds great.
&gt; 
&gt; I&apos;d be interested in seeing the list of the problems it found, or just a generic list of them.  Just curious what it CAN find.
&gt; 

- DOMAgent.js, was using undefined &quot;node&quot; (instead of this) in ::appropriateSelectorFor
(was never running due to non-empty localName)

SoftContextMenu.js was not passing event into the ::_discardMenu when going through _triggerAction
(new)

SourceFile.js was using sourceId instead of scriptId (that one got renamed)
(was not yet used)

&gt; While we might not be able to make this a formal build stage yet, seems like we could somehow make it optional.  Even just a separate script that you can run somehow.  I&apos;d prefer the Java approach, but that&apos;s mainly because I have Java installed on all my machines.

Yep. There is a compile-front-end.sh in the inspector/ folder that you can run if you have Javas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1055147</commentid>
    <comment_count>3</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-12-12 14:10:15 -0800</bug_when>
    <thetext>Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>