Closed Bug 843634 Opened 8 years ago Closed 3 years ago

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

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ahal, Unassigned)

References

Details

See the javascript error above: https://tbpl.mozilla.org/php/getParsedLog.php?id=19953179&tree=Cedar#error5

It looks like this is triggered by: http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/browser.xml#719

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 http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp#3836, 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
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.