GC doesn't preserve Crypto wrapper even when it's observable.
Created attachment 214179 [details] proposed fix
Attachment 214179 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/security/crypto-gc-expected.txt', u'LayoutTests/security/crypto-gc.html', u'Source/WebCore/ChangeLog', u'Source/WebCore/page/Crypto.cpp', u'Source/WebCore/page/Crypto.h', u'Source/WebCore/page/Crypto.idl', u'Source/WebCore/page/DOMWindow.cpp']" exit_code: 1 Source/WebCore/page/Crypto.h:57: The parameter name "document" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 214179 [details] proposed fix r=me
Committed r157417.
Comment on attachment 214179 [details] proposed fix View in context: https://bugs.webkit.org/attachment.cgi?id=214179&action=review > Source/WebCore/page/DOMWindow.cpp:596 > + // FIXME: Why is crypto not available when the window is not currently displayed in a frame? > if (!isCurrentlyDisplayedInFrame()) > return 0; Shenanigans!