Closed
Bug 1904747
Opened 1 year ago
Closed 1 year ago
Error is reported by JS_Utf8BufferIsCompilableUnit
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
129 Branch
People
(Reporter: arai, Assigned: arai)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
Bug 1786494 rewritten JS_Utf8BufferIsCompilableUnit to use AutoReportFrontendContext, but the error handling remains using cx,
which results in not clearing errors and reporting errors when the input is not compilable unit.
JS_PUBLIC_API bool JS_Utf8BufferIsCompilableUnit(JSContext* cx,
HandleObject obj,
const char* utf8,
size_t length) {
...
AutoReportFrontendContext fc(cx,
AutoReportFrontendContext::Warning::Suppress);
...
cx->clearPendingException();
| Assignee | ||
Comment 1•1 year ago
|
||
JS_Utf8BufferIsCompilableUnit is used only by shell, so
- this doesn't affect browser
- but this affects SpiderMonkey embeddings
Severity: -- → S4
status-firefox127:
--- → affected
status-firefox128:
--- → affected
status-firefox129:
--- → affected
status-firefox-esr115:
--- → affected
Priority: -- → P1
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
Given this affects SpiderMonkey embeddings, I'd like to uplift this to 128, given it will be the next ESR.
is it okay?
Flags: needinfo?(dmeehan)
Comment 3•1 year ago
|
||
Set 128 to affected but we don't have much time left in the cycle. This is the final week of beta if you have something safe to uplift.
Flags: needinfo?(dmeehan)
| Assignee | ||
Comment 4•1 year ago
|
||
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/cc549315809f
Do not report error or warning in JS_Utf8BufferIsCompilableUnit. r=bthrall
| Assignee | ||
Comment 6•1 year ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D214913
Updated•1 year ago
|
Attachment #9409905 -
Flags: approval-mozilla-beta?
Comment 7•1 year ago
|
||
beta Uplift Approval Request
- User impact if declined: This affects SpiderMonkey embeddings. the API behaves in unexpected way.
- Code covered by automated testing: yes
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: none
- Risk associated with taking this patch: Very low
- Explanation of risk level: This API is not used by browser, but only by shells (xpcshell, spidermonkey shell)
- String changes made/needed: none
- Is Android affected?: no
Comment 8•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Updated•1 year ago
|
Attachment #9409905 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•1 year ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•