Closed Bug 1983546 Opened 7 months ago Closed 7 months ago

Traverse navigate events are fired incorrectly.

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox144 --- fixed

People

(Reporter: farre, Assigned: farre)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

There are two instance when the navigate events are fired incorrectly for traversals.

  1. when there are no event handlers on the navigation object but method trackers we skip firing the navigate event
  2. when we're performing a same document history traversal we still fire a push/replace/reload navigate event
Assignee: nobody → afarre
Severity: -- → S3
Status: NEW → ASSIGNED

In the same manner as with beforeunload we track when we need to fire a
traverse navigate event for the top level window context. This is
required when: any event handlers are registered on the window's
navigation object or when there are any ongoing or upcoming method
trackers associated with a window's navigation object.

Also make sure to not fire a push/replace/reload navigate event when
only a traverse navigate event should be fired.

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
QA Whiteboard: [qa-triage-done-c145/b144]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: