Closed Bug 843634 Opened 9 years ago Closed 4 years ago

Debug reftests hitting "(NS_ERROR_FACTORY_NOT_REGISTERED) [nsIDocShellHistory.useGlobalHistory]" in b2g


(Firefox OS Graveyard :: General, defect)

Gonk (Firefox OS)
Not set


(Not tracked)



(Reporter: ahal, Unassigned)



See the javascript error above:

It looks like this is triggered by:

Looks like a work around would be to set the disableglobalhistory attribute on the browser element.
Mark, I'm flagging you since you added the disableglobalhistory attribute in bug 755116. I know that's unrelated, but could you help me get this into the hands of someone who can help look into this (if that person isn't you)?

Much appreciated!
Flags: needinfo?(mhammond)
I don't know the full context of this error, but it looks the global history service isn't available in the context in which this error occurs.  Setting useGlobalHistory = true winds its way to, and it's attempt to use the NS_GLOBALHISTORY2_CONTRACTID is probably failing as it doesn't exist.

A work around would be to either disable *all* history (ie, including session history) by adding a "disablehistory" attribute, or keep the session history and just disable the global history by adding a "disableglobalhistory" attribute.

However, I'm not sure which of them make sense in this context - IOW, I'm not sure if history is expected to be available in this use-case.  If it *should* be possible to use global history here, you probably need to track down why that NS_GLOBALHISTORY2_CONTRACTID service isn't available (or at least verify my assumption that attempting to fetch that service does indeed return NS_ERROR_FACTORY_NOT_REGISTERED)

Please let me know if be any further help.
Flags: needinfo?(mhammond)
Firefox OS is not being worked on
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.