Bug 88783 - REGRESSION (r119779): Javascript TypeError: 'undefined' is not an object
Summary: REGRESSION (r119779): Javascript TypeError: 'undefined' is not an object
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.7
: P1 Major
Assignee: Nobody
URL: http://development.rhubarbproductions...
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2012-06-11 07:57 PDT by Kevin M. Dean
Modified: 2012-06-12 14:16 PDT (History)
2 users (show)

See Also:


Attachments
Working (19.51 KB, image/png)
2012-06-11 07:57 PDT, Kevin M. Dean
no flags Details
Broken (18.65 KB, image/png)
2012-06-11 07:57 PDT, Kevin M. Dean
no flags Details
the patch (11.76 KB, patch)
2012-06-12 14:11 PDT, Filip Pizlo
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin M. Dean 2012-06-11 07:57:19 PDT
Created attachment 146855 [details]
Working

Using cPanel's server administration tool WHM, I've started to have javascript errors on the "Mail Delivery Reports" pages and possibly others.

When the page loads javascript adds interactive controls for the Start and Stop times and that fails to happen. Also, clicking the calendar icon is supposed to open a calendar overlay and clicking the Run Report button doesn't load the report.

The console shows:

(5) TypeError: 'undefined' is not an object (evaluating '[].slice') utilities_container.js:13
TypeError: 'undefined' is not an object (evaluating 'new CPANEL.datasource.CPANEL_XHRDataSource') emailstats_search:506
(43) TypeError: 'undefined' is not an object (evaluating '[].slice') 

I'm attaching working and not working screenshots.

Since the problem page is within my server admin, I can't provide direct access, so I'm going to see if I can extract enough for a test reduction.
Comment 1 Kevin M. Dean 2012-06-11 07:57:42 PDT
Created attachment 146856 [details]
Broken
Comment 2 Kevin M. Dean 2012-06-11 08:36:20 PDT
I've added a test page where at least the non loading of the time widgets and the lack of calendar pop-up can be tested.

http://development.rhubarbproductions.com/webkit/whm/

Note that removing the following script at line 87 seems to allow it to work again, so maybe that'll help provide a clue even though the scripts content doesn't appear to be related to where the issue is.

<script>
    new CPANEL.widgets.Page_Notice( {
        container: "cjt_static_notice_container",
        level: "info",
        content: "<strong>Note:</strong> Queries can only return a maximum of 5,000 entries."
    } );
</script>
Comment 3 Alexey Proskuryakov 2012-06-11 14:13:01 PDT
Regressed in <http://trac.webkit.org/changeset/119779>.
Comment 4 Alexey Proskuryakov 2012-06-11 14:13:17 PDT
<rdar://problem/11640299>
Comment 5 Filip Pizlo 2012-06-12 14:11:18 PDT
Created attachment 147158 [details]
the patch
Comment 6 Geoffrey Garen 2012-06-12 14:14:04 PDT
Comment on attachment 147158 [details]
the patch

r=me
Comment 7 Filip Pizlo 2012-06-12 14:16:38 PDT
Landed in http://trac.webkit.org/changeset/120121