Skip to content

Instantly share code, notes, and snippets.

@simonlindholm
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonlindholm/b92358e80d0bea2dc24a to your computer and use it in GitHub Desktop.
Save simonlindholm/b92358e80d0bea2dc24a to your computer and use it in GitHub Desktop.
diff --git a/browser/devtools/styleinspector/rule-view.js b/browser/devtools/styleinspector/rule-view.js
index fb41f9a..e4ae10b 100644
--- a/browser/devtools/styleinspector/rule-view.js
+++ b/browser/devtools/styleinspector/rule-view.js
@@ -1813,17 +1813,17 @@ CssRuleView.prototype = {
* @param {Rule} aRule
* The Rule object we're editing.
* @constructor
*/
function RuleEditor(aRuleView, aRule) {
this.ruleView = aRuleView;
this.doc = this.ruleView.doc;
this.rule = aRule;
- this.isEditable = !aRule.isSystem;
+ this.isEditable = true;
// Flag that blocks updates of the selector and properties when it is
// being edited
this.isEditing = false;
this._onNewProperty = this._onNewProperty.bind(this);
this._newPropertyDestroy = this._newPropertyDestroy.bind(this);
this._onSelectorDone = this._onSelectorDone.bind(this);
@@ -1853,19 +1853,16 @@ RuleEditor.prototype = {
// span to be placed absolutely against.
this.element.style.position = "relative";
// Add the source link.
let source = createChild(this.element, "div", {
class: "ruleview-rule-source theme-link"
});
source.addEventListener("click", function() {
- if (source.hasAttribute("unselectable")) {
- return;
- }
let rule = this.rule.domRule;
let evt = this.doc.createEvent("CustomEvent");
evt.initCustomEvent("CssRuleViewCSSLinkClicked", true, false, {
rule: rule,
});
this.element.dispatchEvent(evt);
}.bind(this));
let sourceLabel = this.doc.createElementNS(XUL_NS, "label");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment