Web Inspector shouldn't override methods defined by the inspected application. Currently Web Inspector provides its own implementation for Object.type Object.hasProperties Object.describe Object.className String.prototype.escapeCharacters
Just to be clear, we shoulnt use the page's version if it exists. We need to namespace our own.
Created attachment 47349 [details] patch
Comment on attachment 47349 [details] patch All the new "InjectedScript." calls should be "this.".
Comment on attachment 47349 [details] patch Please remove // throw ... comment. Also, do not dump dom tree here - your test should be local to the problem. Wrt InjectedScript. vs this., I am not sure. I'd do that when we migrate to the prototype-based implementation of InjectedScript's functions.
Created attachment 47356 [details] patch - Removed commented code. - Removed DOM tree dump. - I'd rather keep the new calls to InjectedScript methods with InjectedScript. prefix because they are "static" routines, i.e. they don't depend on the state of "this". Also if we want to use "this" in InjectedScript methods I'd convert it into prototype based implementation to be consistent with the rest if the code.
Comment on attachment 47356 [details] patch Clearing flags on attachment: 47356 Committed r53807: <http://trac.webkit.org/changeset/53807>
All reviewed patches have been landed. Closing bug.