Closed Bug 1553077 Opened 5 years ago Closed 5 years ago

Port bug 1479538 to thunderbird - [Rewrite callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...)]

Categories

(Thunderbird :: General, task, P1)

Tracking

(thunderbird68 fixed, thunderbird69 fixed)

RESOLVED FIXED
Thunderbird 69.0
Tracking Status
thunderbird68 --- fixed
thunderbird69 --- fixed

People

(Reporter: mkmelin, Assigned: mkmelin)

Details

Attachments

(2 files, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1479538 +++

Rewrite callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...)

Attachment #9066349 - Flags: review?(jorgk)
Status: NEW → ASSIGNED
Comment on attachment 9066349 [details] [diff] [review]
bug1553077_createElementNS_xul.patch

Looks OK.
Attachment #9066349 - Flags: review?(jorgk) → review+
Keywords: checkin-needed
Comment on attachment 9066349 [details] [diff] [review]
bug1553077_createElementNS_xul.patch

I think we want to backport as much of the de-XBL stuff as possible/reasonable.
Attachment #9066349 - Flags: approval-comm-beta+

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/55a4d4b9df15
Port [Bug 1479538 - Rewrite callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...)]. r=jorgk

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 69.0

According to the commit message, the second variant was only run on JS files but not XML files.

Flags: needinfo?(mkmelin+mozilla)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

There is one more here:
https://searchfox.org/comm-central/rev/3a823d0c0fca436b989c1bef70563741bcbb7228/common/bindings/toolbar.xml#308

Maybe the file is on the de-XBL hit list, so there's not point to change it?

I'm not sure, but there are also XUL_NS occurrences:
EDITED search:
https://searchfox.org/comm-central/search?q=createElementNS(XUL_NS&case=false&regexp=false&path=

Yes, I also think those XUL_NS cases should be replaced as they seem to be the same as what is done here. Even comment 0 mentions XUL_NS but in reality only XULNS was replaced by the script.

Indeed, there was some cleanup missing

Flags: needinfo?(mkmelin+mozilla)
Attachment #9066614 - Flags: review?(jorgk)
Comment on attachment 9066614 [details] [diff] [review]
bug1553077_createElementNS_xul_part2.patch

Thanks, but you still missed a few multi-line ones in base/content/folderDisplay.js and base/content/tabmail.xml.

EDIT: More precisely, one each in those two files.
Attachment #9066614 - Flags: review?(jorgk)
Attachment #9066614 - Attachment is obsolete: true
Attachment #9066629 - Flags: review+

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/f6a39b92a233
Part 2: more createElementNS(XUL_NS,...) -> createXULElement(...) conversions. r=jorgk DONTBUILD

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: