Closed
Bug 514029
Opened 17 years ago
Closed 17 years ago
renderCanvas JS error: cr is null
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(fennec1.0+)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| fennec | 1.0+ | --- |
People
(Reporter: stechz, Assigned: stechz)
Details
Attachments
(1 file)
|
854 bytes,
patch
|
pavlov
:
review+
|
Details | Diff | Splinter Review |
Steps to repro:
1. Go to https://developer.mozilla.org/En/Error_Console
2. Click Firebug (basically anything that opens a new tab).
3. JS console error: cr is null
| Assignee | ||
Comment 1•17 years ago
|
||
http://mxr.mozilla.org/mobile-browser/source/chrome/content/BrowserView.js#534
If the intersection of two rectangles is the null set, then intersect (and thus visibleRectToCriticalRect) return null. This can happen if a tab's browser view state has been initialized for a tab but the viewport has not been set (for example, a fit to page call hasn't been made).
I think it is counterintuitive that any rectangle operation could return null. Maybe intersect should return a rect(0,0,0,0) and rect should have an isEmpty method. Thoughts?
| Assignee | ||
Updated•17 years ago
|
Assignee: nobody → webapps
| Assignee | ||
Comment 2•17 years ago
|
||
If document has not finished loading, default to a browser width and height of (1,1) so viewport isn't empty and intersection is null.
Attachment #398540 -
Flags: review?(pavlov)
Updated•17 years ago
|
Attachment #398540 -
Flags: review?(pavlov) → review+
Updated•17 years ago
|
tracking-fennec: ? → 1.0+
Keywords: checkin-needed
Comment 3•17 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•