Closed Bug 784198 Opened 14 years ago Closed 14 years ago

browserIter.docShell is undefined errors

Categories

(Firefox Graveyard :: SocialAPI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 17

People

(Reporter: Gavin, Assigned: jaws)

Details

(Whiteboard: [Fx17])

Attachments

(2 files, 1 obsolete file)

These are showing up in tests and sometimes in normal use as well. I think it's caused by us trying to access the docshell too shortly after document insertion of the iframe.
Whiteboard: [Fx17]
Attached patch Patch (obsolete) — — Splinter Review
This sets isAppTab to true when the panel is opened. I tried adding a separate "load" event listener within updateButton but I still got iframe.docShell undefined errors (not sure why though). This patch works though without generating the errors.
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Attachment #653965 - Flags: review?(felipc)
Attached patch Patch (part 2) — — Splinter Review
This patch renames the variables from notifBrowser to notificationFrame (and related changes). Just some cleanup that Gavin did while looking at this bug. r=me, author=gavin
Attachment #653966 - Flags: review+
Comment on attachment 653965 [details] [diff] [review] Patch Review of attachment 653965 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/browser-social.js @@ +446,5 @@ > }); > > panel.addEventListener("popupshown", function onpopupshown() { > panel.removeEventListener("popupshown", onpopupshown); > SocialToolbar.button.setAttribute("open", "true"); if notifBrowser.contentDocument exists, notifBrowser.docShell should exist as well. So you could set it unconditionally outside the if. But perhaps you have tried it and it didn't work?
Thanks, I just didn't think of that. I tested it and it works fine.
Attachment #653965 - Attachment is obsolete: true
Attachment #653965 - Flags: review?(felipc)
Attachment #653977 - Flags: review?(felipc)
Attachment #653977 - Flags: review?(felipc) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: