WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
161363
Add runtime flag for using URLParser
https://bugs.webkit.org/show_bug.cgi?id=161363
Summary
Add runtime flag for using URLParser
Alex Christensen
Reported
2016-08-29 17:06:22 PDT
Add compile flag for using URLParser
Attachments
Patch
(12.16 KB, patch)
2016-08-29 17:14 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(12.19 KB, patch)
2016-08-29 21:03 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(19.30 KB, patch)
2016-08-30 13:45 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(28.56 KB, patch)
2016-08-30 14:26 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(38.73 KB, patch)
2016-08-30 15:54 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(38.80 KB, patch)
2016-08-31 09:39 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(39.01 KB, patch)
2016-08-31 13:18 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2016-08-29 17:14:37 PDT
Created
attachment 287355
[details]
Patch
Alex Christensen
Comment 2
2016-08-29 21:03:06 PDT
Created
attachment 287370
[details]
Patch
Sam Weinig
Comment 3
2016-08-30 10:12:16 PDT
Is there anyway to do this without using a compile time flag? I would really like this to be runtime switchable for testing.
Alex Christensen
Comment 4
2016-08-30 13:45:09 PDT
Created
attachment 287424
[details]
Patch
Alex Christensen
Comment 5
2016-08-30 14:26:33 PDT
Created
attachment 287431
[details]
Patch
Brady Eidson
Comment 6
2016-08-30 15:10:10 PDT
Comment on
attachment 287431
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=287431&action=review
> Source/WebCore/platform/cocoa/URLParserCocoa.mm:35 > +bool URLParser::URLParserEnabled() > +{ > + static bool use = [[NSUserDefaults standardUserDefaults] boolForKey:@"URLParserEnabled"]; > + return use; > +}
Doesn't this already happen in your WK2 code? Should it happen? (I thought common wisdom was NO)
> Source/WebKit2/Shared/Cocoa/WebKit2InitializeCocoa.mm:40 > + WTFLogAlways("ENABLED %d", getpid());
NOPE
> Source/WebKit2/Shared/Cocoa/WebKit2InitializeCocoa.mm:41 > + URLParser::setEnabled([[NSUserDefaults standardUserDefaults] boolForKey:@"URLParserEnabled"]);
I thought nope...?
Alex Christensen
Comment 7
2016-08-30 15:54:29 PDT
Created
attachment 287443
[details]
Patch
Alex Christensen
Comment 8
2016-08-31 09:39:04 PDT
Created
attachment 287515
[details]
Patch
Alex Christensen
Comment 9
2016-08-31 12:46:20 PDT
I don't know why efl builds and gtk doesn't.
Michael Catanzaro
Comment 10
2016-08-31 12:58:47 PDT
(In reply to
comment #9
)
> I don't know why efl builds and gtk doesn't.
The new file needs to be added to PluginProcessGTK2_SOURCES in WebKit2/PlatformGTK.cmake. It has to be built twice, unfortunately.
Alex Christensen
Comment 11
2016-08-31 13:18:38 PDT
Created
attachment 287533
[details]
Patch
Alex Christensen
Comment 12
2016-08-31 13:21:47 PDT
http://trac.webkit.org/changeset/205266
Csaba Osztrogonác
Comment 13
2016-09-01 08:49:01 PDT
(In reply to
comment #12
)
>
http://trac.webkit.org/changeset/205266
The build is broken on Apple Mac cmake bot: /Volumes/Data/slave/elcapitan-cmake-debug/build/Source/WebCore/platform/cocoa/URLParserCocoa.mm:31:17: error: out-of-line definition of 'URLParserEnabled' does not match any declaration in 'WebCore::URLParser' bool URLParser::URLParserEnabled() ^~~~~~~~~~~~~~~~
Alex Christensen
Comment 14
2016-09-01 11:40:20 PDT
r205302
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