Closed Bug 1809168 Opened 3 years ago Closed 3 years ago

Watch expressions don't update on navigations

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox112 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file, 1 obsolete file)

STR:

  • add window.location watch expression
  • navigate to another URL

The expression doesn't update.

We weren't trying to update the expression around any event related to navigation/reload!
I chose to update them with the latest possible event. navigate/DOCUMENT_EVENT's dom-complete,
which is equivalent to the "load" event.
If we want to update it earlier... we should probably update it more than once per navigation.

Also, I'm tweaking navigateTo test helper to ensure waiting for debugger's reloaded event.
It ensure that all navigate test helper will only resume after the navigated action resolves.

Severity: -- → S3
Priority: -- → P3

This can lead to various issues as we were getting two sets of DOCUMENT_EVENT's when reloading an add-on.

Hopefully, this will be simplier to handle once we move WebExtension to EFT
and WindowGlobalTarget will be unique per document and their instantiation is solely
controlled by the watcher codebase.
We might still have to be careful to ignore this spurious about:blank document.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Depends on: 1814440
Depends on: 1814607
Depends on: 1814613
Attachment #9314441 - Attachment description: Bug 1809168 - [devtools] Avoid firing DOCUMENT_EVENT for previous background page when reloading an add-on. → Bug 1814613 - [devtools] Avoid firing DOCUMENT_EVENT for previous background page when reloading an add-on.

Comment on attachment 9314441 [details]
Bug 1814613 - [devtools] Avoid firing DOCUMENT_EVENT for previous background page when reloading an add-on.

Revision D168045 was moved to bug 1814613. Setting attachment 9314441 [details] to obsolete.

Attachment #9314441 - Attachment is obsolete: true
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f7f098d9af0 [devtools] Update debugger watch expression after page is fully reloaded. r=devtools-reviewers,bomsy
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f960d00b6009 [devtools] Update debugger watch expression after page is fully reloaded. r=devtools-reviewers,bomsy
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Flags: needinfo?(poirot.alex)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: