Closed Bug 1621635 Opened 4 years ago Closed 4 years ago

Remove exception and strict property from pageError

Categories

(DevTools :: General, task)

task
Not set
normal

Tracking

(firefox76 fixed)

RESOLVED FIXED
Firefox 76
Tracking Status
firefox76 --- fixed

People

(Reporter: evilpie, Assigned: evilpie)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

These properties depend on the JS defines JSREPORT_EXCEPTION and JSREPORT_STRICT, both which we we want to remove.

I also just noticed a probably unexpected side-effect of nsIScriptError.errorFlag == 0, the following code will always wrongly produce error: false:
error: !!(pageError.flags & pageError.errorFlag)

I guess we usually check for warning == true first, so this works?

Removes "exception" and "script" as those properties are unused outside tests and going away.
Corrected the definition of "error", which was wrong because errorFlag == 0.

Assignee: nobody → evilpies
Status: NEW → ASSIGNED
Pushed by evilpies@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9025b5239fa5
Improve devtools handling of nsIScriptError. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: