Closed
Bug 805585
Opened 12 years ago
Closed 11 years ago
Call to non-existent browserFrame.contentWindow in shell.js
Categories
(Firefox OS Graveyard :: General, defect)
Firefox OS Graveyard
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: ahal, Assigned: ahal)
Details
Attachments
(1 file)
1.72 KB,
patch
|
Details | Diff | Splinter Review |
See https://bugzilla.mozilla.org/show_bug.cgi?id=798580#c10 It seems like nothing past this point is ever getting executed as an exception is thrown. (this is preventing us from loading a custom browser.homescreenURL that we set in some user prefs)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
Giving review to :jlebar as he noticed the issue initially
Attachment #675262 -
Flags: review?(justin.lebar+bug)
Assignee | ||
Comment 2•12 years ago
|
||
Requesting blocking basecamp as this blocks bug 798580 which was +'ed
blocking-basecamp: --- → ?
Comment 3•12 years ago
|
||
> It seems like nothing past this point is ever getting executed as an exception is thrown. That's true in the out-of-process case. But we established that this is an in-process iframe in normal B2G operation. I think this should be fine because of (b) in bug 798580 comment 10. But I'd like someone who knows this code to look at this patch.
Updated•12 years ago
|
Attachment #675262 -
Flags: review?(justin.lebar+bug) → review?(fabrice)
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Justin Lebar [:jlebar] from comment #3) > That's true in the out-of-process case. But we established that this is an > in-process iframe in normal B2G operation. Oh, this makes so much more sense now. In our automation code we were setting dom.ipc.browser_frames.oop_by_default to true (perhaps we shouldn't be doing this). We then restart B2G and an exception gets thrown preventing the onload listener from being registered here: http://mxr.mozilla.org/mozilla-central/source/b2g/chrome/content/shell.js#198 So landing this patch should fix the problem in bug 798580. Not sure if this would be good enough or if I should still go ahead and make mochitests run from inside a shim app though.
Comment 5•12 years ago
|
||
> So landing this patch should fix the problem in bug 798580.
No, I don't think so. You'd have to make shell.xul completely oop-safe, which means removing every reference to contentWindow, changing all "load" events to "mozbrowserloadend", and probably other things.
Unless this is the only place that shell.xul touches contentWindow.
Assignee | ||
Comment 6•12 years ago
|
||
Un-noming due to comment 5 and https://bugzilla.mozilla.org/show_bug.cgi?id=798580#c51 Looks like this might still be something that should be landed, but there probably isn't a huge point. Our automation shouldn't be setting dom.ipc.browser_frames.oop_by_default.
blocking-basecamp: ? → ---
Comment 7•12 years ago
|
||
Comment on attachment 675262 [details] [diff] [review] Patch 1.0 - Remove erroneous code block Review of attachment 675262 [details] [diff] [review]: ----------------------------------------------------------------- Clearing since this does not look like it's really needed.
Attachment #675262 -
Flags: review?(fabrice)
Assignee | ||
Comment 8•11 years ago
|
||
Not sure if this is even still an issue.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•