Closed
Bug 1475343
Opened 7 years ago
Closed 7 years ago
Stop using document.width and document.height
Categories
(Thunderbird :: General, defect)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 63.0
People
(Reporter: bgrins, Assigned: jorgk-bmo)
References
Details
Attachments
(1 file)
|
2.27 KB,
patch
|
aceman
:
review+
Fallen
:
review+
|
Details | Diff | Splinter Review |
These APIs are being removed in Bug 1475305. As per https://developer.mozilla.org/en-US/docs/Web/API/Document/width you can use clientWidth / clientHeight instead - I've migrated m-c consumers to use `document.documentElement.clientWidth` / `document.documentElement.clientHeight`.
https://searchfox.org/comm-central/search?q=document.height&path=
https://searchfox.org/comm-central/search?q=document.width&path=
| Assignee | ||
Comment 1•7 years ago
|
||
Thanks for the heads-up, Brian. Could you please CC me in the future.
There are only three uses and bug 1475305 is already on autoland.
| Assignee | ||
Comment 2•7 years ago
|
||
Less than two hours to review this ;-)
Assignee: nobody → jorgk
Status: NEW → ASSIGNED
Attachment #8991803 -
Flags: review?(philipp)
Attachment #8991803 -
Flags: review?(acelists)
Comment on attachment 8991803 [details] [diff] [review]
1475343-doc-width-height.patch
Review of attachment 8991803 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks. Did you intentionally skip /suite? Maybe we could do this type of change for them.
Attachment #8991803 -
Flags: review?(acelists) → review+
| Assignee | ||
Comment 4•7 years ago
|
||
Skip? What did I miss? |browser.imageDocument.height <= sz|? That's something else, no? Hard to tell and impossible to test.
Yes, probably that one. Bz mentioned it in bug 1475305 comment 2.
You may want to investigate what .imageDocument returns. If it is a xul document again, than you need to change it.
I'm not sure, it is at https://dxr.mozilla.org/comm-central/source/mozilla/toolkit/content/widgets/browser.xml#250 .
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/aff6a6f04df9
Port bug 1475305: Replace use of document.width and document.height. r=aceman
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 7•7 years ago
|
||
I'll leave this to the SM folks. We will have enough bustage in bug 1470371 which which we foolishly ignored :-(
Flags: needinfo?(frgrahl)
Target Milestone: --- → Thunderbird 63.0
Version: unspecified → Trunk
Comment 8•7 years ago
|
||
Thanks Jorg for the heads up. Put it on the SeaMonkey comm-central to do list.
Flags: needinfo?(frgrahl)
Updated•7 years ago
|
Attachment #8991803 -
Flags: review?(philipp) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•