Bug 148602

Summary: NodeFilter.SHOW_ALL has wrong value on 32-bit
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: BindingsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, bfulgham, commit-queue, ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=148531
https://bugs.webkit.org/show_bug.cgi?id=148546
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Chris Dumez 2015-08-28 19:20:02 PDT
NodeFilter.SHOW_ALL has wrong value on 32-bit. This is because NodeFilter.SHOW_ALL is an unsigned long whose value is 0xFFFFFFFF but our bindings code is casting it to an intptr_t type which is not wide enough on 32-bit.
Comment 1 Chris Dumez 2015-08-28 19:26:16 PDT
Causes the following test to fail on our Windows bots:
fast/dom/node-filter-interface.html
Comment 2 Chris Dumez 2015-08-28 19:54:49 PDT
Created attachment 260205 [details]
Patch
Comment 3 Chris Dumez 2015-08-28 19:55:25 PDT
Let's see if MSVC is willing to build this...
Comment 4 Chris Dumez 2015-08-28 20:19:32 PDT
(In reply to comment #3)
> Let's see if MSVC is willing to build this...

Arg. the win EWS seems to be in a bad state:
C:\cygwin\home\buildbot\WebKit\Source\WebCore\platform\sql\SQLiteDatabase.h(31): fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory (compiling source file ..\Modules\webdatabase\Database.cpp) [C:\cygwin\home\buildbot\WebKit\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
  DatabaseManager.cpp
Comment 5 Chris Dumez 2015-08-29 18:08:03 PDT
Created attachment 260230 [details]
Patch
Comment 6 Chris Dumez 2015-08-31 09:08:42 PDT
This bug also causes the following new tests to fail on Windows:
http/tests/w3c/dom/interfaces.html
http/tests/w3c/dom/traversal/NodeFilter-constants.html
Comment 7 Chris Dumez 2015-08-31 10:54:12 PDT
Created attachment 260295 [details]
Patch
Comment 8 Chris Dumez 2015-08-31 12:50:44 PDT
Comment on attachment 260295 [details]
Patch

Brent tells me it is building.
Comment 9 Brent Fulgham 2015-08-31 12:59:46 PDT
(In reply to comment #8)
> Comment on attachment 260295 [details]
> Patch
> 
> Brent tells me it is building.

Yes -- it's true!
Comment 10 Geoffrey Garen 2015-08-31 13:12:13 PDT
Comment on attachment 260295 [details]
Patch

constexpr constructor, nice
Comment 11 WebKit Commit Bot 2015-08-31 14:05:48 PDT
Comment on attachment 260295 [details]
Patch

Clearing flags on attachment: 260295

Committed r189184: <http://trac.webkit.org/changeset/189184>
Comment 12 WebKit Commit Bot 2015-08-31 14:05:54 PDT
All reviewed patches have been landed.  Closing bug.
Comment 13 Chris Dumez 2015-09-02 13:32:16 PDT
rdar://problem/22544610