Closed Bug 1746370 Opened 3 years ago Closed 3 years ago

Pass SOURCE resource down to newGeneratedSources

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox97 fixed)

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

I was actually wrong in bug 1745795.
The objects passed to newGeneratedSources aren't SourceFront.
Instead they are SOURCE resources, which ends up also being SourceActor's form.

It would be nice to get this right, and while we are at doing this, finaly get rid of the intermediate objects between crafted between firefox.js and newSources.js. Instead we can pass down the SOURCE resources as-is.

SourceQueue used to throttle both generated and original sources.
But since we migrated to ResourceCommand, and it comes with a builtin throttling,
we only use SourceQueue for original sources.

So we can acknowledge that and simplify this a bit.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

Actually I was wrong in bug 1745795.
This wasn't SourceFront but SOURCE resources, which are SourceActor's form and not a Front.

Let's make it clear and simplify the code some more.
Also stop calling makeSourceId from create.js
as we already have the reducer's source id via the reducer's source-actor's source attribute.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cf1d3a34a897 [devtools] Simplify SourceQueue as it only handles original sources. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/ae93faa865c7 [devtools] Remove stringToSourceActorId as this was a workaround for flow. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/e28f3304f362 [devtools] Pass SOURCE resources down to newGeneratedSources. r=nchevobbe
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: