Closed
Bug 980903
Opened 11 years ago
Closed 11 years ago
Remove onclick from devtools/netmonitor/netmonitor.xul
Categories
(DevTools :: Netmonitor, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: mgoodwin, Assigned: mrspeaker)
References
(Blocks 1 open bug)
Details
(Whiteboard: [mentor=past][lang=html][good first bug][lang=js])
Attachments
(1 file, 2 obsolete files)
3.57 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
I notice, following the inline script cleanup in bug 961085, the network-statistics-back-button still has an onclick attribute (netmonitor.xul line 516-ish);
Comment 1•11 years ago
|
||
Hi Mark,
I would like to work on this bug as my first such for mozilla-devtools. Please assign this bug to me if possible.
I have already submitted a patch for this. Please let me know anything else has to be done.
Comment 2•11 years ago
|
||
Network statistics back button removed along with activity.
Comment 3•11 years ago
|
||
I've assigned the bug to you, but I don't think the intent here is to remove the entire button, just the onclick attribute (and replace it with a dynamically-added one).
Assignee: nobody → avikpal.me
Status: NEW → ASSIGNED
Updated•11 years ago
|
Attachment #8388192 -
Flags: review?(vporof)
Comment 4•11 years ago
|
||
Comment on attachment 8388192 [details] [diff] [review]
statistics-back-button-removed.patch
Review of attachment 8388192 [details] [diff] [review]:
-----------------------------------------------------------------
This is not about removing the button completely.
Brian, care to guide Avik here?
Attachment #8388192 -
Flags: review?(vporof) → review-
Comment 5•11 years ago
|
||
Thanks for pointing this out, I made a terrible mistake of not understanding it properly. Can you please guide me regarding what can be the dynamic attributes and what are the cases in which they they will take those values?
Comment 6•11 years ago
|
||
Brian will be back next week, so until then I would suggest reading this for context:
https://developer.mozilla.org/docs/Web/Guide/Events
The solution here is to not rely on attributes on elements, but on adding event listeners in JS code. You can look into the bugs blocking the dependent bug for inspiration, like bug 961085.
Updated•11 years ago
|
Assignee: avikpal.me → nobody
Comment 7•11 years ago
|
||
hey I want to work on this bug can someone please assigned it to me ?
I am newbie and I urge for proper guidance
Comment 8•11 years ago
|
||
Hey amanjain, I've assigned the bug to you at your request. If this is your first bug, take a look at:
https://wiki.mozilla.org/DevTools/Hacking
For this particular bug, take a look at comment 6.
Assignee: nobody → amanjain110893
Whiteboard: [mentor=bgrins][lang=html][good first bug][lang=js] → [mentor=past][lang=html][good first bug][lang=js]
Assignee | ||
Comment 9•11 years ago
|
||
I didn't realise this was already assigned - but it was a month ago, so maybe my patch is useful: it removes the inline click handler and adds/removes an event handler in the network view statistics.
Assignee | ||
Updated•11 years ago
|
Attachment #8408485 -
Flags: review?(past)
Assignee | ||
Comment 10•11 years ago
|
||
I asked the people on the #introduction irc channel to review the format of my patch, and they spotted some errors (I was using git patch format). Hopefully fixed now.
Attachment #8408485 -
Attachment is obsolete: true
Attachment #8408485 -
Flags: review?(past)
Attachment #8409759 -
Flags: review?(past)
Assignee | ||
Updated•11 years ago
|
Attachment #8409759 -
Attachment description: Fix the HG patch header → remove inline click handler for statistics back button
Comment 11•11 years ago
|
||
Comment on attachment 8409759 [details] [diff] [review]
remove inline click handler for statistics back button
Review of attachment 8409759 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, thanks for the patch! I happened to notice that the patch author field contains a pseudonym, are you sure this is how you want it to land? If so, go ahead and set the checkin-needed keyword in the bug and someone will land it for you. Otherwise attach an updated patch and then flag the bug with checkin-needed.
Looking for another bug to squash? Here is a list of bugs with similar level of difficulty:
http://www.joshmatthews.net/bugsahoy/?devtools=1&simple=1
Attachment #8409759 -
Flags: review?(past) → review+
Updated•11 years ago
|
Assignee: amanjain110893 → mrspeaker
Updated•11 years ago
|
Attachment #8388192 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 12•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [mentor=past][lang=html][good first bug][lang=js] → [mentor=past][lang=html][good first bug][lang=js][fixed-in-fx-team]
Comment 13•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [mentor=past][lang=html][good first bug][lang=js][fixed-in-fx-team] → [mentor=past][lang=html][good first bug][lang=js]
Target Milestone: --- → Firefox 31
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•