Bug 177743

Summary: Use of uninitialized value $targetIdlFile in hash element at preprocess-idls.pl line 165.
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: BindingsAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, cdumez, cgarcia, commit-queue, darin, Hironori.Fujii, mcatanzaro, svillar, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: PC   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Michael Catanzaro 2017-10-02 06:54:13 PDT
We should fix this regression:

Use of uninitialized value $targetIdlFile in hash element at /home/mcatanzaro/Projects/WebKit/Source/WebCore/bindings/scripts/preprocess-idls.pl line 165.
Comment 1 Michael Catanzaro 2017-10-26 19:57:56 PDT
Summoning lovers slash understanders slash victims of Perl, known or suspected ....
Comment 2 Fujii Hironori 2017-10-26 20:18:31 PDT
Modules/webvr/GamepadWebVR.idl supplements Modules/gamepad/Gamepad.idl.
But, Gamepad.idl is not processed because ENABLE_GAMEPAD is OFF.
Comment 3 Fujii Hironori 2017-10-26 21:20:23 PDT
Created attachment 325121 [details]
Patch
Comment 4 Build Bot 2017-10-26 21:24:34 PDT
Attachment 325121 [details] did not pass style-queue:


ERROR: Source/WebCore/CMakeLists.txt:998:  There should be exactly one empty line instead of 0 between "Modules/gamepad/NavigatorGamepad.idl" and "Modules/webvr/GamepadWebVR.idl".  [list/emptyline] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Fujii Hironori 2017-10-26 21:34:22 PDT
Created attachment 325123 [details]
Patch
Comment 6 Fujii Hironori 2017-10-27 02:59:20 PDT
Created attachment 325146 [details]
Patch
Comment 7 Michael Catanzaro 2017-10-27 08:31:26 PDT
Comment on attachment 325146 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=325146&action=review

> Source/WebCore/Sources.txt:2978
> +Modules/webvr/GamepadWebVR.cpp

There should be a blank line between files in different directories.

> Source/WebCore/bindings/scripts/preprocess-idls.pl:164
> +        my $targetIdlFile = $interfaceNameToIdlFile{$baseFile} or die "${baseFile}.idl is not found which is supplemented by $idlFile";

How about "${baseFile}.idl not found, but it is supplemented by $idlFile"
Comment 8 Michael Catanzaro 2017-10-27 08:31:47 PDT
Also: thanks ;)
Comment 9 Fujii Hironori 2017-10-29 19:27:13 PDT
Created attachment 325311 [details]
Patch

* Addressed review feedbacks.
Comment 10 WebKit Commit Bot 2017-10-29 20:40:53 PDT
Comment on attachment 325311 [details]
Patch

Clearing flags on attachment: 325311

Committed r224168: <https://trac.webkit.org/changeset/224168>
Comment 11 WebKit Commit Bot 2017-10-29 20:40:55 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Radar WebKit Bug Importer 2017-11-15 13:12:32 PST
<rdar://problem/35569005>