Open Bug 1887952 Opened 8 months ago Updated 7 months ago

OPEN_URL trigger listener triggers on background tabs

Categories

(Firefox :: Messaging System, defect, P2)

defect

Tracking

()

People

(Reporter: jprickett, Unassigned)

References

(Blocks 1 open bug)

Details

When using the OPEN_URL trigger listener, if one of the target URLs is loaded in a background tab, the trigger listener will fire, potentially displaying a message before the user has actually navigated to the URL in question.

Blocks: fxms-infra
Priority: -- → P2

I believe trigger in original description of the bug is openURL

I believe we can do something nice with a TabSelect listener. If the tabs progress listener fires on a background tab, save that tab in a WeakSet. Then when a TabSelect event fires, we can check if the target is in our WeakSet, and if so, call the triggerHandler. There's an example of a TabSelect handler in the pdfJsFeatureCalloutCheck trigger listener.

The severity field is not set for this bug.
:aminomancer, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(shughes)
Severity: -- → S3
Flags: needinfo?(shughes)
You need to log in before you can comment on or make changes to this bug.