WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
185125
REGRESSION(
r230960
): Browser tests under TimeSeriesChart fetchMeasurementSets all fail
https://bugs.webkit.org/show_bug.cgi?id=185125
Summary
REGRESSION(r230960): Browser tests under TimeSeriesChart fetchMeasurementSets...
Ryosuke Niwa
Reported
2018-04-29 17:48:48 PDT
Open browser-tests/index.html?grep=TimeSeriesChart%20fetchMeasurementSets Observe all test cases fail with the following error: TypeError: undefined is not an object (evaluating 'RemoteAPI.getJSONWithStatus')_fetchPrimaryCluster@file:///Volumes/Data/git-webkit/Websites/perf.webkit.org/public/v3/models/measurement-set.js:116:25 The problem is that unit-tests/resources/mock-remote-api.js directly imports privileged APIs for browser & node using require. We can't do this because require(~) doesn't exist in a browser. Each user of MockRemoteAPI needs to manually inject the appropriate type of PrivilegedAPI instead.
Attachments
Patch
(2.03 KB, patch)
2018-04-30 09:30 PDT
,
dewei_zhu
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews206 for win-future
(12.75 MB, application/zip)
2018-04-30 11:34 PDT
,
EWS Watchlist
no flags
Details
Fixes the bug
(14.15 KB, patch)
2018-04-30 12:10 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2018-04-29 17:50:28 PDT
There are 48 browser test failures (out of 140 tests we have) all caused by this change :(
dewei_zhu
Comment 2
2018-04-30 09:30:49 PDT
Created
attachment 339113
[details]
Patch
EWS Watchlist
Comment 3
2018-04-30 11:33:48 PDT
Comment on
attachment 339113
[details]
Patch
Attachment 339113
[details]
did not pass win-ews (win): Output:
http://webkit-queues.webkit.org/results/7509159
New failing tests: http/tests/security/contentSecurityPolicy/userAgentShadowDOM/allow-video.html
EWS Watchlist
Comment 4
2018-04-30 11:34:00 PDT
Created
attachment 339132
[details]
Archive of layout-test-results from ews206 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Ryosuke Niwa
Comment 5
2018-04-30 12:05:19 PDT
Comment on
attachment 339113
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=339113&action=review
> Websites/perf.webkit.org/unit-tests/resources/mock-remote-api.js:67 > + const PrivilegedAPI = useNodePrivilegedAPI ? > + require('../../tools/js/privileged-api').PrivilegedAPI : require('../../public/v3/privileged-api.js').PrivilegedAPI;
This is not right as it would end up loading PrivilegedAPI each time inject is called.
Ryosuke Niwa
Comment 6
2018-04-30 12:10:15 PDT
Created
attachment 339134
[details]
Fixes the bug
Ryosuke Niwa
Comment 7
2018-04-30 16:43:46 PDT
Comment on
attachment 339134
[details]
Fixes the bug Clearing flags on attachment: 339134 Committed
r231180
: <
https://trac.webkit.org/changeset/231180
>
Ryosuke Niwa
Comment 8
2018-04-30 16:43:48 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9
2018-04-30 16:45:16 PDT
<
rdar://problem/39854346
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug