Closed Bug 843094 Opened 12 years ago Closed 12 years ago

Remove the Property Panel

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: msucan, Assigned: bbenvie)

References

Details

Attachments

(1 file, 4 obsolete files)

Once bug 808370 and bug 808369 are both fixed we need to remove all of the Property Panel code from the Web Console and PropertyPanel.jsm.
Also note that WebConsoleUtils.jsm needs to be cleaned-up here.
Assignee: nobody → bbenvie
Status: NEW → ASSIGNED
Attached patch WIP1 (obsolete) — Splinter Review
First stab at this.
Yay, thank you! When this patch is ready please ask for review.
Attached patch WIP2 (obsolete) — Splinter Review
I think those failures were something not related to my patch, but we'll see. Let's try again. https://tbpl.mozilla.org/?tree=Try&rev=70434821b1c3
Attachment #743282 - Attachment is obsolete: true
Priority: -- → P3
Attached patch WIP3 (obsolete) — Splinter Review
Attachment #743718 - Attachment is obsolete: true
Attachment #743799 - Flags: review?(mihai.sucan)
Comment on attachment 743799 [details] [diff] [review] WIP3 This is a much welcome clean up. Giving it r+ but I think it's not complete. In WebConsoleUtils.jsm there are a bunch of methods you can now remove: getObjectGrip, formatResult, formatResultString, getResultType, getObjectClassName, isObjectInspectable, getFunctionName, getFunctionArguments, createValueGrip, inspectObject, inspectObjectProperty, propertiesSort, objectActorGripToString. I hope I didn't miss anything. Please remove these as well and do another try push, all systems, enable all tests - just to make sure there's no other code that uses these methods. Thank you!
Attachment #743799 - Flags: review?(mihai.sucan) → review+
Attached patch WIP4 (obsolete) — Splinter Review
Removed from WebConsuleUtils.jsm: * getObjectGrip * formatResult * formatResultString * getResultType * objectActorGripToString * getPropertyPanelValue * getFunctionArguments Not removed: * getObjectClassName (used in VariablesView) * isObjectInspectable (used in a test) * getFunctionName (used in getObjectClassName) * inspectObject (used in a test) * inspectObjectProperty (used in inspectObject) https://tbpl.mozilla.org/?tree=Try&rev=0a04c70fe735
Attachment #743799 - Attachment is obsolete: true
(In reply to Brandon Benvie [:bbenvie] from comment #8) > Created attachment 744711 [details] [diff] [review] > WIP4 > [...] > Not removed: > > * isObjectInspectable (used in a test) Please remove the check that calls isObjectInspectable() - that was intended to check things which no longer apply to how the web console works. That test is browser_webconsole_bug_632347_iterators_generators.js. > * inspectObject (used in a test) > * inspectObjectProperty (used in inspectObject) In browser_webconsole_bug_651501_document_body_autocomplete.js you can remove the call to inspectObject() and only check that, say, more than 14 properties are displayed. The purpose of the test is to check that document.body autocomplete works twice, it doesn't matter how many properties are displayed in the popup (as long as the number is greater than 0). Thank you!
Attached patch WIP5Splinter Review
* remove isObjectInspectable and update test that used it * remove inspectObject and update test that used it * remove inspectObjectProperty * remove sandbox.inspect (front for inspectObject)
Attachment #744711 - Attachment is obsolete: true
Whiteboard: [land-in-fx-team]
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Blocks: 869981
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: