Closed Bug 1437230 Opened 8 years ago Closed 7 years ago

Remove feed binding and build DOM using JS

Categories

(Firefox :: Page Info Window, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 60
Tracking Status
firefox60 --- fixed

People

(Reporter: ntim, Assigned: ntim)

References

Details

Attachments

(1 file)

https://raw.githubusercontent.com/mozilla/gecko-dev/master/browser/base/content/pageinfo/feeds.xml It's used for the "Feeds" tab of the page info window, but this looks small enough it probably doesn't need its own binding.
Assignee: nobody → ntim.bugs
Comment on attachment 8951876 [details] Bug 1437230 - Remove feed binding and build DOM using JS. https://reviewboard.mozilla.org/r/221158/#review227040 Code analysis found 2 defects in this patch: - 2 defects found by mozlint You can run this analysis locally with: - `./mach lint path/to/file` (JS/Python) If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx ::: browser/base/content/pageinfo/feeds.js:54 (Diff revision 1) > + > + const subscribeButton = document.createElement("button"); > + subscribeButton.className = "feed-subscribe"; > + subscribeButton.addEventListener("click", > + () => openUILinkIn(url, "current", { ignoreAlt: true })); > + subscribeButton.setAttribute("label", gBundle.getString("feedSubscribe")); Error: 'gbundle' is not defined. [eslint: no-undef] ::: browser/base/content/pageinfo/feeds.js:55 (Diff revision 1) > + const subscribeButton = document.createElement("button"); > + subscribeButton.className = "feed-subscribe"; > + subscribeButton.addEventListener("click", > + () => openUILinkIn(url, "current", { ignoreAlt: true })); > + subscribeButton.setAttribute("label", gBundle.getString("feedSubscribe")); > + subscribeButton.setAttribute("accesskey", gBundle.getString("feedSubscribe.accesskey")); Error: 'gbundle' is not defined. [eslint: no-undef]
Comment on attachment 8951876 [details] Bug 1437230 - Remove feed binding and build DOM using JS. https://reviewboard.mozilla.org/r/221158/#review227160 Looks OK - because you've already done the work I guess we can do this, but I suspect this entire pane can just go away. Note that browser/base/content/test/pageinfo/browser_pageInfo.js is bright orange in the trypush, so this can't land as-is.
Attachment #8951876 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8951876 [details] Bug 1437230 - Remove feed binding and build DOM using JS. https://reviewboard.mozilla.org/r/221158/#review227170 rs=me assuing try is happier.
Attachment #8951876 - Flags: review?(gijskruitbosch+bugs) → review+
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/75e8d75c3de9 Remove feed binding and build DOM using JS. r=Gijs
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: