WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176165
Implement FileSystemEntry.getParent()
https://bugs.webkit.org/show_bug.cgi?id=176165
Summary
Implement FileSystemEntry.getParent()
Chris Dumez
Reported
2017-08-31 09:44:59 PDT
Implement FileSystemEntry.getParent(): -
https://wicg.github.io/entries-api/#dom-filesystementry-getparent
Attachments
Patch
(36.88 KB, patch)
2017-08-31 19:11 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(36.94 KB, patch)
2017-09-01 09:59 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(36.94 KB, patch)
2017-09-01 10:14 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-08-31 09:45:30 PDT
<
rdar://problem/34187743
>
Chris Dumez
Comment 2
2017-08-31 19:11:59 PDT
Created
attachment 319564
[details]
Patch
Andreas Kling
Comment 3
2017-09-01 09:54:51 PDT
Comment on
attachment 319564
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319564&action=review
> Source/WebCore/Modules/entriesapi/DOMFileSystem.cpp:92 > + return !virtualPath.isEmpty() && virtualPath[0] == '/';
The isEmpty() check here is redundant but I hate that operator[] API returns a null character for invalid indices so let's not even care about that.
> Source/WebCore/Modules/entriesapi/FileSystemEntry.cpp:67 > +void FileSystemEntry::getParent(ScriptExecutionContext& context, RefPtr<FileSystemEntryCallback>&& successCallback, RefPtr<ErrorCallback>&& errorCallback)
If we have neither successCallback or errorCallback, we could just early return here, no need to do work. Silly that the API allows this at all.
> Source/WebCore/Modules/entriesapi/FileSystemEntry.cpp:74 > + if (result.hasException()) { > + if (errorCallback) > + errorCallback->handleEvent(DOMException::create(result.releaseException())); > + return; > + }
This is not covered by the layout tests.
Chris Dumez
Comment 4
2017-09-01 09:59:06 PDT
Created
attachment 319607
[details]
Patch
WebKit Commit Bot
Comment 5
2017-09-01 10:01:56 PDT
Comment on
attachment 319607
[details]
Patch Rejecting
attachment 319607
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 319607, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Ansdreas Kling found in /Volumes/Data/EWS/WebKit/LayoutTests/ChangeLog does not appear to be a valid reviewer according to contributors.json. /Volumes/Data/EWS/WebKit/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output:
http://webkit-queues.webkit.org/results/4427131
Chris Dumez
Comment 6
2017-09-01 10:14:20 PDT
Created
attachment 319609
[details]
Patch
Andreas Kling
Comment 7
2017-09-01 10:20:51 PDT
r=hans
WebKit Commit Bot
Comment 8
2017-09-01 10:37:04 PDT
Comment on
attachment 319609
[details]
Patch Clearing flags on attachment: 319609 Committed
r221481
: <
http://trac.webkit.org/changeset/221481
>
WebKit Commit Bot
Comment 9
2017-09-01 10:37:06 PDT
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.
Top of Page
Format For Printing
XML
Clone This Bug