WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
141634
Web Inspector: ES6: Improved Console Support for Promise Objects
https://bugs.webkit.org/show_bug.cgi?id=141634
Summary
Web Inspector: ES6: Improved Console Support for Promise Objects
Joseph Pecoraro
Reported
2015-02-16 00:01:49 PST
* SUMMARY Improved Console Support for Promise Objects. Promises have internal state that would be useful to show in Inspector: (Table 59 — Internal Slots of Promise Instances) [[PromiseState]] - A string value that governs how a promise will react to incoming calls to its then method. - The possible values are: undefined, "pending", "fulfilled", and "rejected". [[PromiseResult]] - The value with which the promise has been fulfilled or rejected, if any. - Only meaningful if [[PromiseState]] is not "pending". [[PromiseFulfillReactions]] - A List of PromiseReaction records to be processed when/if the promise transitions from the "pending" state to the "fulfilled" state. [[PromiseRejectReactions]] - A List of PromiseReaction records to be processed when/if the promise transitions from the "pending" state to the "rejected" state.
Attachments
[PATCH] Work In Progress
(16.71 KB, patch)
2015-02-16 00:06 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(19.28 KB, patch)
2015-02-16 13:51 PST
,
Joseph Pecoraro
timothy
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-mavericks
(628.67 KB, application/zip)
2015-02-16 14:19 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews105 for mac-mavericks-wk2
(676.04 KB, application/zip)
2015-02-16 14:27 PST
,
Build Bot
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-02-16 00:02:10 PST
<
rdar://problem/19843138
>
Joseph Pecoraro
Comment 2
2015-02-16 00:06:47 PST
Created
attachment 246637
[details]
[PATCH] Work In Progress Work in progress patch: - First time we make sure of InjectedScriptHost.getInternalProperties - Add a way to distinguish Internal property previews from regular properties - Trivially supports [[PromiseState]] and [[PromiseResult]]. Whats next: - show the chain of reactions next (the .thens, and .catches) - discuss UI for Internal Properties in ObjectPreviews / ObjectTrees
Joseph Pecoraro
Comment 3
2015-02-16 13:47:01 PST
> [[PromiseFulfillReactions]] > - A List of PromiseReaction records to be processed when/if the promise > transitions from the "pending" state to the "fulfilled" state. > > [[PromiseRejectReactions]] > - A List of PromiseReaction records to be processed when/if the promise > transitions from the "pending" state to the "rejected" state.
I will handle these states in: <
https://webkit.org/b/141664
> Web Inspector: ES6: Improved Support for Promises - Promise Reactions For now, lets just do state / value.
Joseph Pecoraro
Comment 4
2015-02-16 13:51:02 PST
Created
attachment 246675
[details]
[PATCH] Proposed Fix
Build Bot
Comment 5
2015-02-16 14:19:00 PST
Comment on
attachment 246675
[details]
[PATCH] Proposed Fix
Attachment 246675
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5867389241524224
New failing tests: inspector-protocol/runtime/getProperties.html
Build Bot
Comment 6
2015-02-16 14:19:03 PST
Created
attachment 246682
[details]
Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 7
2015-02-16 14:27:54 PST
Comment on
attachment 246675
[details]
[PATCH] Proposed Fix
Attachment 246675
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/4929187995451392
New failing tests: inspector-protocol/runtime/getProperties.html
Build Bot
Comment 8
2015-02-16 14:27:57 PST
Created
attachment 246683
[details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Joseph Pecoraro
Comment 9
2015-02-16 14:28:45 PST
Comment on
attachment 246675
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=246675&action=review
> Source/JavaScriptCore/inspector/InjectedScript.cpp:139 > - auto array = BindingTraits<Array<Inspector::Protocol::Runtime::InternalPropertyDescriptor>>::runtimeCast(WTF::move(result)); > - *properties = array->length() > 0 ? array : nullptr; > + *properties = BindingTraits<Array<Inspector::Protocol::Runtime::InternalPropertyDescriptor>>::runtimeCast(WTF::move(result));
I should revert this part for: spector-protocol/runtime/getProperties.html I wanted to always include the array, but not including it if the array is empty will simplify the response.
Timothy Hatcher
Comment 10
2015-02-16 14:41:03 PST
Comment on
attachment 246675
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=246675&action=review
> Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp:200 > + result->putDirect(exec->vm(), Identifier(exec, "name"), jsString(exec, name));
jsNontrivialString and ASCIILiteral for name?
Joseph Pecoraro
Comment 11
2015-02-16 14:47:33 PST
Comment on
attachment 246675
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=246675&action=review
>> Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp:200 >> + result->putDirect(exec->vm(), Identifier(exec, "name"), jsString(exec, name)); > > jsNontrivialString and ASCIILiteral for name?
jsNontrivialString - I debated it, and said no in case we ever have a single character string. (it asserts length > 1, not >= 1). ASCIILiteral - I thought there was a jsString for char* but there isn't. I'll change the param to const String& and use ASCIILiteral above.
Joseph Pecoraro
Comment 12
2015-02-17 12:18:13 PST
http://trac.webkit.org/changeset/180235
Csaba Osztrogonác
Comment 13
2015-02-17 23:59:24 PST
(In reply to
comment #12
)
>
http://trac.webkit.org/changeset/180235
It broke the !ENABLE(PROMISES) build, see
bug141746
for details.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug