Closed Bug 1017808 Opened 10 years ago Closed 10 years ago

TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/newtab/browser_newtab_bug752841.js | A promise chain failed to handle a rejection at chrome://global/content/bindings/browser.xml:299

Categories

(Firefox :: New Tab Page, defect)

29 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 33

People

(Reporter: Yoric, Assigned: Yoric)

References

Details

Attachments

(1 file)

Summary: TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/newtab/browser_newtab_bug752841.js | A promise chain failed to handle a rejection at chrome://global/content/bindings/browser.xml:299 - A promise chain failed to handle a → TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/newtab/browser_newtab_bug752841.js | A promise chain failed to handle a rejection at chrome://global/content/bindings/browser.xml:299
Component: Tabbed Browser → New Tab Page
Assignee: nobody → dteller
Attachment #8433375 - Flags: review?(felipc)
I could give a r+ for the change itself (hard to argue against "making xx more robust"), but I wonder why this failure is happening in the first place (a browser without a frameLoader?).

Checking to see if Drew has any ideas..
Flags: needinfo?(adw)
Thanks for flagging me.  This is the error I was expecting to see in bug 1013722.  When I was debugging it and actually looking at browser.QI(Ci.nsIFrameLoaderOwner) and browser.QI(Ci.nsIFrameLoaderOwner).frameLoader, what I saw was that browser.QI(Ci.nsIFrameLoaderOwner).frameLoader was null, so the messageManager getter should have been throwing an error like this one when it does frameLoader.messageManager, but instead the getter was returning undefined.  I fixed my bug and didn't ask questions.

What I seemed to be seeing in bug 1013722 was that frameLoader was null after the browser had been closed.  Given that, I think this patch here is good.  Maybe the alternative is to find out why it's null in that case and if anything can be done about it.
Flags: needinfo?(adw)
So, can I land it?
Flags: needinfo?(felipc)
See my comment in bug 1019670 comment 2. Ping me on IRC and I can help with that.
Flags: needinfo?(felipc)
Comment on attachment 8433375 [details] [diff] [review]
Making browser.xml's get_messageManager more robust

I'm more convinced that this patch will be the right thing to do in the end, so r+. Though I think it would be good to understand what set of tests causes the problem to show up. It could be simply that this patch is missing, or that a test or the service itself is adding a message listener and forgeting to remove it. Can you file a follow up for that?
Attachment #8433375 - Flags: review?(felipc) → review+
https://hg.mozilla.org/mozilla-central/rev/3fa3c76ac61f
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: