Summary: | Add a runtime flag for SubtleCrypto | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jiewen Tan <jiewen_tan> | ||||||||
Component: | WebCore Misc. | Assignee: | Jiewen Tan <jiewen_tan> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | bfulgham, cdumez, commit-queue, esprehn+autocc, jiewen_tan, joepeck, kondapallykalyan, rniwa, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 160880 | ||||||||||
Attachments: |
|
Description
Jiewen Tan
2016-11-18 21:46:44 PST
Created attachment 295252 [details]
Patch
Comment on attachment 295252 [details]
Patch
Can someone tell me why minibrowser WK2 doesn't work?
Created attachment 295325 [details]
Patch
(In reply to comment #2) > Comment on attachment 295252 [details] > Patch > > Can someone tell me why minibrowser WK2 doesn't work? I think you need to modify AppDelegate.m "defaultConfiguration" to add turn your new flag on. Otherwise it will default to off. I assume you want to turn it on for MiniBrowser by default, not allow the user to toggle it at runtime? (In reply to comment #4) > (In reply to comment #2) > > Comment on attachment 295252 [details] > > Patch > > > > Can someone tell me why minibrowser WK2 doesn't work? > > I think you need to modify AppDelegate.m "defaultConfiguration" to add turn > your new flag on. Otherwise it will default to off. > > I assume you want to turn it on for MiniBrowser by default, not allow the > user to toggle it at runtime? Thanks Brent, let me try. (In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #2) > > > Comment on attachment 295252 [details] > > > Patch > > > > > > Can someone tell me why minibrowser WK2 doesn't work? > > > > I think you need to modify AppDelegate.m "defaultConfiguration" to add turn > > your new flag on. Otherwise it will default to off. > > > > I assume you want to turn it on for MiniBrowser by default, not allow the > > user to toggle it at runtime? > > Thanks Brent, let me try. It seems like experimental features are default off. If that's the case for miniBrowser, I have no objection on it. I can use WK1 window for test purpose. Comment on attachment 295325 [details]
Patch
Looks correct. r=me.
(In reply to comment #8) > Comment on attachment 295325 [details] > Patch > > Looks correct. r=me. Thanks Brent for r+ my patch. Created attachment 295922 [details]
Patch for landing
Comment on attachment 295922 [details] Patch for landing Clearing flags on attachment: 295922 Committed r209230: <http://trac.webkit.org/changeset/209230> Comment on attachment 295922 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=295922&action=review > Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h:372 > +#if ENABLE(SUBTLE_CRYPTO) > + bool m_isSubtleCryptoEnabled; > +#endif This member variable doesn't appear to be initialed to anything by default, or in reset(). Could this cause problems for Windows / Linux ports that doesn't explicitly set this in their WebKit APIs? |