This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This issue was reported manually by jstola. It already has 1 duplicates Build: NetBeans IDE Dev (Build 20130201-b3804b2f60dc) VM: Java HotSpot(TM) Client VM, 20.12-b01, Java(TM) SE Runtime Environment, 1.6.0_37-b06 OS: Windows 7 User Comments: jstola: Open a read-only stylesheet and place the caret into some rule => CSS Styles view is opened and Rule Editor is populated. => The properties in the Rule Editor are editable. They should be read-only. Modify some property in the Rule Editor => the attached exception is thrown. Stacktrace: org.netbeans.editor.GuardedException: Modification prohibited at org.netbeans.editor.BaseDocument.checkModifiable(BaseDocument.java:1046) at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:926) at org.netbeans.modules.css.model.api.Model.applyChanges(Model.java:501) at org.netbeans.modules.css.model.api.Model.access$100(Model.java:95) at org.netbeans.modules.css.model.api.Model$3.run(Model.java:400) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:347)
Created attachment 131087 [details] stacktrace
Created attachment 132143 [details] stacktrace Steps that caused it: - create JavaEE sample project ScrumToys - open index.html, right click in editor and select Run File - in browser (Chrome with NB integration), start inspect mode and select the main menu ("Home", "Projects"...) - in CSS Styles in Properties, click on background-color - in CSS Styles, try to change background-color to "aqua" and confirm => exception
*** Bug 228182 has been marked as a duplicate of this bug. ***
Created attachment 134159 [details] stacktrace I changed a property in CSS Styles window while debugging Tyrus Auction app on an Android device.
fixed in web-main#d124d8309b6a
Integrated into 'main-golden', will be available in build *201305232300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d124d8309b6a User: Marek Fukala <mfukala@netbeans.org> Log: #225826 - org.netbeans.editor.GuardedException: Modification prohibited
Thank you for fix, properties are read only, but this exception could be still reproduced by these 2 ways: - have some rules/properties in CSS Styles from read-only file (e.g. link remote css file to html page and use inspect mode to select element with "remote rule" - try either of these: - right click on property in "Rule editor" (bottom) part and select "Remove property" (exception report [1]) - or invoke Add property dialog and try to add new property [1] http://statistics.netbeans.org/exceptions/exception.do?id=673822
fixed in web-main#96e6cfbf6fa7
changeset: 254518:5985bd6febc0 summary: #225826 /3 one more fix + better performance
Integrated into 'main-golden', will be available in build *201305292301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/96e6cfbf6fa7 User: Marek Fukala <mfukala@netbeans.org> Log: #225826 /2 additional fix