Closed
Bug 1474286
Opened 7 years ago
Closed 7 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•7 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•7 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•7 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•7 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•7 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•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Updated•7 years ago
|
Blocks: new-about-performance-m1
You need to log in
before you can comment on or make changes to this bug.
Description
•