RESOLVED FIXED 34089
Web Inspector overrides methods defined by the inspected application
https://bugs.webkit.org/show_bug.cgi?id=34089
Summary Web Inspector overrides methods defined by the inspected application
Yury Semikhatsky
Reported 2010-01-25 08:34:47 PST
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
Attachments
patch (11.38 KB, patch)
2010-01-25 08:43 PST, Yury Semikhatsky
timothy: review-
patch (10.59 KB, patch)
2010-01-25 10:34 PST, Yury Semikhatsky
no flags
Timothy Hatcher
Comment 1 2010-01-25 08:36:44 PST
Just to be clear, we shoulnt use the page's version if it exists. We need to namespace our own.
Yury Semikhatsky
Comment 2 2010-01-25 08:43:31 PST
Timothy Hatcher
Comment 3 2010-01-25 08:47:08 PST
Comment on attachment 47349 [details] patch All the new "InjectedScript." calls should be "this.".
Pavel Feldman
Comment 4 2010-01-25 08:59:55 PST
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.
Yury Semikhatsky
Comment 5 2010-01-25 10:34:49 PST
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.
WebKit Commit Bot
Comment 6 2010-01-25 10:57:46 PST
Comment on attachment 47356 [details] patch Clearing flags on attachment: 47356 Committed r53807: <http://trac.webkit.org/changeset/53807>
WebKit Commit Bot
Comment 7 2010-01-25 10:57:51 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.