Closed Bug 1343444 Opened 7 years ago Closed 7 years ago

API Request for addTabsProgressListener

Categories

(WebExtensions :: Untriaged, defect)

47 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: eros_uk, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170130115108

Steps to reproduce:

My addon (Refresh Blocker) requires 'onRefreshAttempted' from 'addTabsProgressListener'.
It is the only working addon in this category and AFAIK none of the other browser have it due to the absence of an API.
I would like to be able to migrate the addon to WebExtension if an API could be implemented.
This functionality is provided by the webNavigation API.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
From what I understand from the documentatons, webNavigation.onCommitted has transitionQualifiers property. onCommitted is fired when a navigation is committed. At least part of the new document has been received from the server and the browser has decided to switch to the new document.

It is fired too late and does not cover the function of 'onRefreshAttempted' from 'addTabsProgressListener'.

webNavigation.onBeforeNavigate would have been appropriate but it does not have a transitionQualifiers property.
Additionally, necessary details such as aRefreshURI, aMillis, aSameURI are not provided by the transitionQualifiers property.
To be discussed at the WebExtensions Triage meeting on March 21. 

Agenda: https://docs.google.com/document/d/1xM6iKOSGo9cDWw3ZA27PT-AVlx1Mvd79sxC6pYNhBqU/edit?usp=sharing
What is the outcome?
Why is the bug still marked as: Resolution: --- → INVALID?
Hi erosman, if you could file separate bugs to add the specific pieces of functionality you need in the webNavigation API, that would be great. Thanks!
Filed under bug 1352653
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.