Closed
Bug 613480
Opened 15 years ago
Closed 15 years ago
Check for a NULL docShell in browser constructor
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mfinkle, Assigned: mfinkle)
Details
Attachments
(1 file)
|
1.15 KB,
patch
|
Gavin
:
review+
benjamin
:
approval2.0+
|
Details | Diff | Splinter Review |
In Firefox Mobile, where multi-process web content is used, the browser.docShell is NULL. The browser XBL constructor uses the docShell without checking it first and causes errors when run in Firefox Mobile.
This patch just adds a simple check to the constructor.
Attachment #491826 -
Flags: review?(gavin.sharp)
| Assignee | ||
Comment 1•15 years ago
|
||
In addition to errors reported by QA and users, this bug will keep the Mobile browser-chrome tests from ever being green, since the word "Error" is found in the browser-chrome output.
Comment 2•15 years ago
|
||
When is the docShell initialized?
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> When is the docShell initialized?
For remote browsers? It's never available in the chrome (parent) process. Only local browsers have a docShell available to the browser binding.
For remote browsers the docShell is available to the content process scripts.
| Assignee | ||
Comment 4•15 years ago
|
||
Does my answer make sense? Let me know if you need any more explanation.
Comment 5•15 years ago
|
||
A browser binding whose .docShell is always null wouldn't be very useful, so I assumed that patch was working around the fact that the docShell is null when the constructor runs, but non-null at some later point. If you're saying instead that this.docShell is always null, then I don't understand how you wouldn't be running into a bunch of other problems...
OS: Linux → Windows Server 2003
Comment 6•15 years ago
|
||
So as explained on IRC you don't run into other problems because you're using bindings that override the base browser binding and re-implement most of its functionality. So it's just the constructor (which you can't prevent from running) that poses a problem.
Updated•15 years ago
|
Attachment #491826 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 7•15 years ago
|
||
Comment on attachment 491826 [details] [diff] [review]
patch
Removes extraneous errors on console, which get reported as bugs. Also needed for Fennec to pass browser-chrome tests
Attachment #491826 -
Flags: approval2.0?
Updated•15 years ago
|
Attachment #491826 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Comment 8•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•