Closed Bug 1570685 Opened 6 years ago Closed 6 years ago

Bug 1452920 broke backward compatibility by at least changing startListeners packets

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [devtools-backward-compat])

Attachments

(2 files)

Bug 1452920 changed the format of startListeners packet, from:

{ listeners: [..] }

to

{ events: [..] }

Leading to broken console when connecting to older version of Firefox.

This may have change something else as, even after fixing that, I do not get a working console input.

Bug 1570685 changed the format of the startListeners request,
leading to backward compatiblity issues.

No longer depends on: 1452920
Priority: -- → P1
Regressed by: 1452920
Keywords: regression
Whiteboard: [devtools-backward-compat]
Attachment #9082288 - Attachment description: Bug 1570685 - Revert startListeners request to its previous format. → Bug 1570685 - Revert startListeners, stopListeners and evaluateJSAsync requests to the previous format.
Attachment #9082288 - Attachment description: Bug 1570685 - Revert startListeners, stopListeners and evaluateJSAsync requests to the previous format. → Bug 1570685 - Revert startListeners, stopListeners, autocomplete and evaluateJSAsync requests to the previous format.

This relates to bug 1566421, where the timing around DOM panel instantiation changed.
Since that patch landed, the full initialization of DOM Panel looks faster.
The FETCH_PROPERTIES action doesn't necessarily happen after domPanel.open()
resolves. i.e. it can happen during during this method call.
Now this patch, as well as some other I'm currently working on are changing
that behavior again and adding some delay in DOM panel initialization.

So, here I'm trying to fix things for good by ensuring that domPanel.open
only resolves once it loaded all the properties and will not spawn any
extra RDP request. Ideally I would listen for FETCH_PROPERTIES action,
but that isn't so easy. Instead, I waiting for the last RDP request to complete.

See Also: → 1571916
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1175ce1c32a0 Revert startListeners, stopListeners, autocomplete and evaluateJSAsync requests to the previous format. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/084da3830f44 Only resolve DomPanel.open once the properties are updated. r=nchevobbe,jdescottes,Honza
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
Assignee: nobody → poirot.alex
No longer blocks: 1572380
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: