Closed Bug 1913768 Opened 3 months ago Closed 3 months ago

browser_ml_engine.js missing arguments to EngineDispatcher's terminate method

Categories

(Core :: Machine Learning, defect)

defect

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox129 --- unaffected
firefox130 --- wontfix
firefox131 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Bug 1906093 added two arguments to the terminate method of EngineDispatcher, but it did not add those arguments to one of the calls to terminate in the test browser_ml_engine.js, which means that shutDownIfEmpty and replacement end up as undefined, which in turn means that we end up sending undefined for those fields in the JS actor message MLEngine:Removed.

I don't see any specific problem from this, as I guess the undefined acts as false anyways, but it does mean a value is getting passed around that doesn't match the type in the comments.

I came across this while looking at types for JS actor messages in bug 1885221.

Set release status flags based on info from the regressing bug 1906093

:tarek, since you are the author of the regressor, bug 1906093, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Type: task → defect

Apparently a regression can't be a task, but this is test-only so I'll mark it S4. I assume if I mark it N/A then the bots will also get mad somehow.

Severity: -- → S4

By default, these arguments will end up as undefined, so passing in true for
the first one will change the behavior, but it looks like shutting down
the engine is the desired behavior here.

Assignee: nobody → continuation
Blocks: 1885221
See Also: 1885221
Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec1079c0bdf0 Add missing arguments to EngineDispatcher's terminate method in browser_ml_engine.js r=tarek
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
Flags: needinfo?(tziade)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: