Closed Bug 1291866 Opened 8 years ago Closed 8 years ago

replace inIDOMUtils.cssPropertyIsValid

Categories

(DevTools :: Framework, enhancement, P1)

enhancement

Tracking

(firefox52 fixed)

RESOLVED FIXED
Firefox 52
Iteration:
52.1 - Oct 3
Tracking Status
firefox52 --- fixed

People

(Reporter: tromey, Assigned: gregtatum)

References

(Blocks 1 open bug)

Details

(Whiteboard: [reserve-html])

Attachments

(1 file)

Flags: qe-verify-
Priority: -- → P2
Whiteboard: [devtools-html] → [reserve-html]
Assignee: nobody → gtatum
Status: NEW → ASSIGNED
Iteration: --- → 51.1 - Aug 15
Priority: P2 → P1
Depends on: 1265796
Setting this to dependent on bug 1265796 as we're introducing a lot of async calls to the stack, and hopefully (maybe) once that lands it will make this bug a little more tractable.
Iteration: 51.1 - Aug 15 → 51.2 - Aug 29
Iteration: 51.2 - Aug 29 → 51.3 - Sep 12
No longer depends on: 1265796
Comment on attachment 8792520 [details] Bug 1291866 - Replace inIDOMUtils.cssPropertyIsValid; https://reviewboard.mozilla.org/r/79536/#review78198 ::: devtools/client/shared/widgets/Tooltip.js:922 (Diff revision 1) > * CSSFilterEditorWidget. > * > * @param {Toolbox} toolbox > * The devtools toolbox, needed to get the devtools main window. > */ > -function SwatchFilterTooltip(toolbox) { > +function SwatchFilterTooltip(toolbox, cssIsValid) { This needs an update to the function documentation. ::: devtools/shared/fronts/css-properties.js:101 (Diff revision 1) > + this._dummyElement = doc.createElement("div"); > + } > + > + // `!important` is not a valid value when setting a style declaration in the > + // CSS Object Model. > + const sanitizedValue = ("" + value).replace(/!important$\s*$/, ""); There can be spaces between the "!" and "important" tokens.
Comment on attachment 8792520 [details] Bug 1291866 - Replace inIDOMUtils.cssPropertyIsValid; https://reviewboard.mozilla.org/r/79536/#review78208 Thank you for doing this. It looks good. I had a couple of nits.
Attachment #8792520 - Flags: review?(ttromey) → review+
Iteration: 51.3 - Sep 19 → 52.1 - Oct 3
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4b65f0d1008a Replace inIDOMUtils.cssPropertyIsValid; r=tromey
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Blocks: 1311743
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: