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.
Build: NetBeans IDE Dev (Build 201211120001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.4-b01, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b06 OS: Mac OS X User Comments: GUEST: editing HTML page esfand: I started the EaselDemo sample on Windows XP and selected the "NetBean Mode" from the context menu of the chrome. kganfield: using inspect in chrome browser to select element GUEST: I opened a html file with javascript embedded and tried to debug the javascript. I set an breakpoint and clicked on run roject buton. After the page were opened in the chrome browser netbeans ide throw an error. Stacktrace: java.lang.IllegalArgumentException: Style attribute is missing! Rule: {"rule":{"sourceLine":0,"style":{"styleId":{"ordinal":49,"styleSheetId":"1"},"height":"","width":"","shorthandEntries":[],"cssProperties":[{"name":"display","value":"list-item"},{"name":"text-align","value":"-webkit-match-parent"}]},"selectorList":{"text":"li","selectors":["li"]},"origin":"user-agent"},"matchingSelectors":[0]} at org.netbeans.modules.web.webkit.debugging.api.css.Rule.<init>(Rule.java:102) at org.netbeans.modules.web.webkit.debugging.api.css.MatchedStyles.<init>(MatchedStyles.java:73) at org.netbeans.modules.web.webkit.debugging.api.css.CSS.getMatchedStyles(CSS.java:228) at org.netbeans.modules.web.inspect.webkit.ui.CSSStylesSelectionPanel$5.run(CSSStylesSelectionPanel.java:338) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Created attachment 127734 [details] stacktrace
upgrading to p2 because it breaks the easel demo Product Version: NetBeans IDE Dev (Build 201211200002) Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.4-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b06 System: Mac OS X version 10.8.2 running on x86_64; US-ASCII; en_US (nb) User directory: /Applications/NetBeans/userdirs/73-20121114-ee Cache directory: /Users/nb/Library/Caches/NetBeans/dev
Recently, there has been a slight change (in WebKit Remote Debugging protocol) in the structure of the data sent when a matched CSS rules are requested. I assume that you are using Chromium because the change is not in Chrome builds yet. I will modify the corresponding code to handle both old and new formats of the data.
Both new and old format should be handled correctly by now. Modified file: http://hg.netbeans.org/web-main/rev/f00ccd76605a
*** Bug 224949 has been marked as a duplicate of this bug. ***
*** Bug 226001 has been marked as a duplicate of this bug. ***