Closed
Bug 1091187
Opened 10 years ago
Closed 1 year ago
Move selectionchange code in nsGlobalWindow::UpdateCommands
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
118 Branch
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: enndeakin, Assigned: Logan, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(2 files, 1 obsolete file)
Bug 987040 made an unnecessary api change here and added code that doesn't have anything to do with updating commands. This should be undone and the code moved elsewhere.
Reporter | ||
Updated•10 years ago
|
Whiteboard: [good first bug]
Comment 1•9 years ago
|
||
Hi, I'd like to take this on as my first bug assuming its still valid.
From what I can see the affected code is here:
https://dxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#9754
Can you give an explanation of the intended function of this code and the intended function of the code to be moved?
Flags: needinfo?(enndeakin)
Reporter | ||
Comment 2•9 years ago
|
||
Hi Jamie, thanks for taking this on. Some of the work for this has already been done in another bug. The remaining work is fairly simple:
1. Remove the two unused arguments from nsGlobalWindow::UpdateCommands.
2. Remove the check that looks for "selectionchange" within this method.
Mentor: enndeakin
Flags: needinfo?(enndeakin)
Comment 3•9 years ago
|
||
Updated•9 years ago
|
Attachment #8674765 -
Flags: review?(enndeakin)
Reporter | ||
Comment 4•9 years ago
|
||
Comment on attachment 8674765 [details] [diff] [review]
v1 Remove checks from UpdateCommands
>diff --git a/dom/interfaces/base/nsIDOMWindow.idl b/dom/interfaces/base/nsIDOMWindow.idl
...
>
> // XXX Should this be in nsIDOMChromeWindow?
>- void updateCommands(in DOMString action,
>- [optional] in nsISelection sel,
>- [optional] in short reason);
>+ void updateCommands(in DOMString action);
You'll need to change the uuid on the interface when the interface is changed. See https://developer.mozilla.org/en-US/docs/Generating_GUIDs
Otherwise this looks good.
Attachment #8674765 -
Flags: review?(enndeakin) → review+
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → flintj3
Status: NEW → ASSIGNED
Comment 5•9 years ago
|
||
Updated UUID in idl file
Attachment #8674765 -
Attachment is obsolete: true
Flags: needinfo?(enndeakin)
Attachment #8675579 -
Flags: review?(enndeakin)
Reporter | ||
Comment 6•9 years ago
|
||
Comment on attachment 8675579 [details] [diff] [review]
dom-updatecommands-v1.patch
OK!
Flags: needinfo?(enndeakin)
Attachment #8675579 -
Flags: review?(enndeakin) → review+
Comment 7•8 years ago
|
||
Was this patch ready to land? Looks like this got stalled after being r+'d.
Flags: needinfo?(enndeakin)
Reporter | ||
Comment 8•8 years ago
|
||
Yes, it should be ok, but we likely will need an updated patch.
Flags: needinfo?(enndeakin)
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•5 years ago
|
Keywords: good-first-bug
Whiteboard: [good first bug]
Comment 9•4 years ago
|
||
This good-first-bug hasn't had any activity for 6 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Assignee: flintj3 → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: normal → S3
Assignee | ||
Comment 10•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → loganrosen
Status: NEW → ASSIGNED
Comment 11•1 year ago
|
||
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/28398da7d5d6
remove unused arguments and check from UpdateCommands r=dom-core,webidl,masayuki,smaug
Comment 12•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox118:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•