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)
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 hidden (mozreview-request) |
Comment 2•6 years ago
|
||
mozreview-review |
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-
Assignee | ||
Comment 3•6 years ago
|
||
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)
Comment 4•6 years ago
|
||
> 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 hidden (mozreview-request) |
Comment 6•6 years ago
|
||
mozreview-review |
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+
Comment hidden (mozreview-request) |
Updated•6 years ago
|
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
Comment 10•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Updated•6 years ago
|
Blocks: new-about-performance-m1
You need to log in
before you can comment on or make changes to this bug.
Description
•