Closed
Bug 309050
Opened 20 years ago
Closed 20 years ago
Javascript error in pageInfo.js when the page contains: <iframe style="display: none;">
Categories
(Firefox :: Page Info Window, defect)
Firefox
Page Info Window
Tracking
()
RESOLVED
FIXED
People
(Reporter: florian, Assigned: florian)
References
()
Details
(Keywords: fixed1.8)
Attachments
(1 file)
|
2.75 KB,
patch
|
db48x
:
review+
bzbarsky
:
superreview+
mtschrep
:
approval1.8b5+
|
Details | Diff | Splinter Review |
With a page containing "<iframe style="display: none;">" I get those errors in
the javascript console when I open the Page Info window:
Firefox 1.0.4 :
Error: elem.ownerDocument.defaultView has no properties
Source File: chrome://browser/content/pageInfo.js
Line: 477
SeaMonkey (20050904):
Error: elem.ownerDocument.defaultView.getComputedStyle(elem, "") has no properties
Source File: chrome://navigator/content/pageInfo.js
Line: 524
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20050918 Firefox/1.6a1 :
Error: elem.ownerDocument.defaultView.getComputedStyle(elem, "") has no properties
Source File: chrome://browser/content/pageInfo.js
Line: 487
| Assignee | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Comment on attachment 196550 [details] [diff] [review]
patch v1
excellent, thanks.
Attachment #196550 -
Flags: review+
Updated•20 years ago
|
Attachment #196550 -
Flags: superreview+
Comment 3•20 years ago
|
||
Tiny nitpicky nit: camelCaps is standard in at least /browser, so it should be
"computedStyle".
OS: Linux → All
Hardware: PC → All
| Assignee | ||
Comment 4•20 years ago
|
||
Comment on attachment 196550 [details] [diff] [review]
patch v1
fix checked in trunk by bzbarsky
Attachment #196550 -
Flags: approval1.8b5?
Comment 5•20 years ago
|
||
Can you clarify on why this is needed for 1.8b5? What does it break?
| Assignee | ||
Comment 6•20 years ago
|
||
(In reply to comment #5)
> Can you clarify on why this is needed for 1.8b5?
It isn't absolutely needed but it's a safe patch.
> What does it break?
The bug breaks the Page Info window (Forms, Links and Media tabs) on pages
containing <iframe style="display: none;">.
For example, on the homepage of http://www.clubic.com (a big french site)
Updated•20 years ago
|
Flags: blocking1.8b5+
Comment 7•20 years ago
|
||
Comment on attachment 196550 [details] [diff] [review]
patch v1
Per bug meeting - approved for 1.8b5 branch.
Attachment #196550 -
Flags: approval1.8b5? → approval1.8b5+
| Assignee | ||
Comment 8•20 years ago
|
||
fix checked in the 1.8 branch by db48x
You need to log in
before you can comment on or make changes to this bug.
Description
•