Closed Bug 1418265 Opened 6 years ago Closed 5 years ago

webNavigation API: more transitionTypes in events than documentation reports

Categories

(Developer Documentation Graveyard :: Add-ons, enhancement, P1)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: krzstanislawek, Assigned: ismith)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: 57 Branch
 Technical Contact: 

:: Details

What's up with webNavigation webExtensions API?

Documentation says that the only transitionTypes supported are 'link', 'auto_subframe', 'reload' and 'form_submit', but there's also 'typed' emitted. Also, https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/WebNavigation/TransitionQualifier#Browser_compatibility says that 'from_address_bar' is not supported, but it is emitted too.

I want to do an addon that gathers rich history info, visualizes timeline etc., so I'm interested in webNavigation events. Maybe all this just means that I shouldn't rely on values whose support is undocumented?
Priority: P5 → P2
Hiya,

I am currently looking for bugs to fix as part of my Open Source Development module at Coventry University and I am interested in developing this bug.

Please could you assign this task to me and give me more information.

This is my first bug fix and any help would be appreciated.

Thank you.
Assignee: nobody → ismith
Priority: P2 → P1
The document linked to in the bug is not for TransitionTypes but for TransitionQualifier.

Adding a note to the page and a link to the TransitionTypes page to clarify:

The list of TransitionQualifier values is a subset of the webNavigation.TransitionType values. (webNavigation.TransitionType includes a link to the appropriate page.)

The TransitionTypes page (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/TransitionType) does document all of the types:

"link"
    The user clicked a link in another page.
"typed"
    The user typed the URL into the address bar. This is also used if the user started typing into the address bar, then selected a URL from the suggestions it offered. See also "generated".
"auto_bookmark"
    The user clicked a bookmark or an item in the browser history.
"auto_subframe"
    Any nested iframes that are automatically loaded by their parent.
"manual_subframe"
    Any nested iframes that are loaded as an explicit user action. Loading such an iframe will generate an entry in the back/forward navigation list.
"generated"
    The user started typing in the address bar, then clicked on a suggested entry that didn't contain a URL.
"start_page"
    The page was passed to the command line or is the start page.
"form_submit"
    The user submitted a form. Note that in some situations, such as when a form uses a script to submit its contents, submitting a form does not result in this transition type.
"reload"
    The user reloaded the page, using the Reload button or by pressing Enter in the address bar. This is also used for session restore and reopening closed tabs.
"keyword"
    The URL was generated using a keyword search configured by the user.
"keyword_generated"
    Corresponds to a visit generated for a keyword.
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(krzstanislawek)
Resolution: --- → FIXED
Flags: needinfo?(krzstanislawek)
You need to log in before you can comment on or make changes to this bug.