Changeset 249173 in webkit
- Timestamp:
- Aug 27, 2019, 2:40:11 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/inspector/dom/cross-domain-inspected-node-access-expected.txt (modified) (1 diff)
-
LayoutTests/inspector/console/command-line-api-expected.txt (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/inspector/InjectedScriptSource.js (modified) (3 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/inspector/CommandLineAPIModuleSource.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r249162 r249173 1 2019-08-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: don't attach properties to `injectedScript` for the CommandLineAPI 4 https://bugs.webkit.org/show_bug.cgi?id=201193 5 6 Reviewed by Joseph Pecoraro. 7 8 * http/tests/inspector/dom/cross-domain-inspected-node-access-expected.txt: 9 * inspector/console/command-line-api-expected.txt: 10 1 11 2019-08-27 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 12 -
trunk/LayoutTests/http/tests/inspector/dom/cross-domain-inspected-node-access-expected.txt
r249078 r249173 1 CONSOLE MESSAGE: line 8: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.2 CONSOLE MESSAGE: line 8: Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://127.0.0.1:8000". Protocols, domains, and ports must match.1 CONSOLE MESSAGE: line 6: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match. 2 CONSOLE MESSAGE: line 6: Blocked a frame with origin "http://localhost:8000" from accessing a frame with origin "http://127.0.0.1:8000". Protocols, domains, and ports must match. 3 3 Test that code evaluated in the main frame cannot access $0 that resolves to a node in a frame from a different domain. Bug 105423. 4 4 -
trunk/LayoutTests/inspector/console/command-line-api-expected.txt
r249078 r249173 1 CONSOLE MESSAGE: line 31: The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $("#%s")1 CONSOLE MESSAGE: line 29: The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $("#%s") 2 2 Tests that command line api works. 3 3 -
trunk/Source/JavaScriptCore/ChangeLog
r249164 r249173 1 2019-08-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: don't attach properties to `injectedScript` for the CommandLineAPI 4 https://bugs.webkit.org/show_bug.cgi?id=201193 5 6 Reviewed by Joseph Pecoraro. 7 8 For some reason, adding `injectedScript._inspectObject` inside CommandLineAPIModuleSource.js 9 causes inspector/debugger/tail-deleted-frames-this-value.html to fail. 10 11 We should have a similar approach to adding command line api getters and functions, in that 12 the CommandLineAPIModuleSource.js calls a function with a callback. 13 14 * inspector/InjectedScriptSource.js: 15 (InjectedScript.prototype.inspectObject): 16 (InjectedScript.prototype.setInspectObject): Added. 17 (InjectedScript.prototype._evaluateOn): 18 1 19 2019-08-27 Mark Lam <mark.lam@apple.com> 2 20 -
trunk/Source/JavaScriptCore/inspector/InjectedScriptSource.js
r249078 r249173 388 388 } 389 389 390 inspectObject(object)391 {392 if (this._inspectObject)393 this._inspectObject(object);394 }395 396 390 releaseObject(objectId) 397 391 { … … 419 413 420 414 // CommandLineAPI 415 416 inspectObject(object) 417 { 418 if (this._inspectObject) 419 this._inspectObject(object); 420 } 421 422 setInspectObject(callback) 423 { 424 this._inspectObject = callback; 425 } 421 426 422 427 addCommandLineAPIGetter(name, func) … … 579 584 let commandLineAPI = null; 580 585 if (includeCommandLineAPI) 581 commandLineAPI = new InjectedScript.CommandLineAPI(isEvalOnCallFrame ? object : null) 586 commandLineAPI = new InjectedScript.CommandLineAPI(isEvalOnCallFrame ? object : null); 582 587 return evalFunction.call(object, expression, commandLineAPI); 583 588 } -
trunk/Source/WebCore/ChangeLog
r249172 r249173 1 2019-08-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: don't attach properties to `injectedScript` for the CommandLineAPI 4 https://bugs.webkit.org/show_bug.cgi?id=201193 5 6 Reviewed by Joseph Pecoraro. 7 8 For some reason, adding `injectedScript._inspectObject` inside CommandLineAPIModuleSource.js 9 causes inspector/debugger/tail-deleted-frames-this-value.html to fail. 10 11 We should have a similar approach to adding command line api getters and functions, in that 12 the CommandLineAPIModuleSource.js calls a function with a callback. 13 14 * inspector/CommandLineAPIModuleSource.js: 15 (injectedScript._inspectObject): Deleted. 16 1 17 2019-08-27 Zalan Bujtas <zalan@apple.com> 2 18 -
trunk/Source/WebCore/inspector/CommandLineAPIModuleSource.js
r249078 r249173 33 33 // FIXME: <https://webkit.org/b/152294> Web Inspector: Parse InjectedScriptSource as a built-in to get guaranteed non-user-overridden built-ins 34 34 35 injectedScript. _inspectObject =function(object) {35 injectedScript.setInspectObject(function(object) { 36 36 if (arguments.length === 0) 37 37 return; 38 38 39 let objectId = RemoteObject.create(object , "");39 let objectId = RemoteObject.create(object); 40 40 let hints = {}; 41 41 42 42 switch (RemoteObject.describe(object)) { 43 43 case "Database": 44 let databaseId = CommandLineAPIHost.databaseId(object)44 var databaseId = CommandLineAPIHost.databaseId(object); 45 45 if (databaseId) 46 46 hints.databaseId = databaseId; 47 47 break; 48 48 case "Storage": 49 let storageId = CommandLineAPIHost.storageId(object)49 var storageId = CommandLineAPIHost.storageId(object); 50 50 if (storageId) 51 51 hints.domStorageId = InjectedScriptHost.evaluate("(" + storageId + ")"); … … 54 54 55 55 CommandLineAPIHost.inspect(objectId, hints); 56 return object; 57 }; 56 }); 58 57 59 58 injectedScript.addCommandLineAPIGetter("0", function() {
Note:
See TracChangeset
for help on using the changeset viewer.