Closed Bug 1474286 Opened 6 years ago Closed 6 years ago

Throw a JS exception in ChromeUtils::RequestPerformanceMetrics if pref is off

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

57 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: tarek, Assigned: tarek)

References

Details

(Whiteboard: [perf-tools])

Attachments

(1 file)

There are asserts in the content process but we should do a clean exception in ChromeUtils::RequestPerformanceMetrics in case dom.performance.enable_scheduler_timing is false
Comment on attachment 8990974 [details] Bug 1474286 - Throw a JS exception in ChromeUtils::RequestPerformanceMetrics if pref is off - https://reviewboard.mozilla.org/r/255984/#review262824 What about using [Pref="dom.performance.enable_scheduler_timing"] in ChromeUtils.webidl?
Attachment #8990974 - Flags: review?(amarchesini) → review-
I get this issue: WebIDL.WebIDLError: error: [Pref] used on an interface member that is not Window-only Because the ChromeUtils namespace is exposed to Window, System and Worker I am not sure what should be done in that case ?
Flags: needinfo?(amarchesini)
> WebIDL.WebIDLError: error: [Pref] used on an interface member that is not > Window-only Then, use Func= pointing to a DOMPrefs method. And add a DOM_WEBIDL_PREF in DOMPrefsInternal.h
Flags: needinfo?(amarchesini)
Comment on attachment 8990974 [details] Bug 1474286 - Throw a JS exception in ChromeUtils::RequestPerformanceMetrics if pref is off - https://reviewboard.mozilla.org/r/255984/#review263388
Attachment #8990974 - Flags: review?(amarchesini) → review+
Whiteboard: [perf-tools]
Pushed by tziade@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/39e83d83646b Throw a JS exception in ChromeUtils::RequestPerformanceMetrics if pref is off - r=baku
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: