WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 203383
Add more information to SRI failure console messages
https://bugs.webkit.org/show_bug.cgi?id=203383
Summary
Add more information to SRI failure console messages
Alex Christensen
Reported
2019-10-24 14:26:42 PDT
Add more information to SRI failure console messages
Attachments
Patch
(20.69 KB, patch)
2019-10-24 14:29 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews212 for win-future
(13.90 MB, application/zip)
2019-10-24 16:38 PDT
,
EWS Watchlist
no flags
Details
Patch
(22.53 KB, patch)
2019-10-24 17:20 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2019-10-24 14:29:36 PDT
Created
attachment 381843
[details]
Patch
EWS Watchlist
Comment 2
2019-10-24 16:38:10 PDT
Comment on
attachment 381843
[details]
Patch
Attachment 381843
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/13174705
New failing tests: js/dom/modules/module-fetch-failure-not-cached.html
EWS Watchlist
Comment 3
2019-10-24 16:38:12 PDT
Created
attachment 381858
[details]
Archive of layout-test-results from ews212 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews212 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Geoffrey Garen
Comment 4
2019-10-24 16:43:25 PDT
Comment on
attachment 381843
[details]
Patch r=me but please update test result expectations before landing
Alex Christensen
Comment 5
2019-10-24 17:20:11 PDT
Created
attachment 381861
[details]
Patch
Chris Dumez
Comment 6
2019-10-24 18:18:52 PDT
Comment on
attachment 381861
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=381861&action=review
> Source/WebCore/loader/SubresourceIntegrity.cpp:216 > + builder.append(". Failed integrity metadata check. ");
appendLiteral
> Source/WebCore/loader/SubresourceIntegrity.cpp:217 > + builder.append("Content length: ");
appendLiteral
> Source/WebCore/loader/SubresourceIntegrity.cpp:221 > + builder.append("(no content)");
appendLiteral
> Source/WebCore/loader/SubresourceIntegrity.cpp:222 > + builder.append(", Expected content length: ");
appendLiteral
> Source/WebCore/loader/SubresourceIntegrity.cpp:224 > + builder.append(", Expected metadata: ");
appendLiteral
> Source/WebCore/loader/SubresourceIntegrity.cpp:225 > + builder.append(integrityMetadata);
appendLiteral
WebKit Commit Bot
Comment 7
2019-10-24 19:49:57 PDT
The commit-queue encountered the following flaky tests while processing
attachment 381861
[details]
: The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 8
2019-10-24 19:50:05 PDT
The commit-queue encountered the following flaky tests while processing
attachment 381861
[details]
: imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/integrity.html
bug 203394
(author:
ysuzuki@apple.com
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 9
2019-10-24 20:52:11 PDT
The commit-queue encountered the following flaky tests while processing
attachment 381861
[details]
: The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 10
2019-10-24 20:52:18 PDT
The commit-queue encountered the following flaky tests while processing
attachment 381861
[details]
: imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/integrity.html
bug 203394
(author:
ysuzuki@apple.com
) The commit-queue is continuing to process your patch.
Chris Dumez
Comment 11
2019-10-24 21:05:33 PDT
(In reply to WebKit Commit Bot from
comment #10
)
> The commit-queue encountered the following flaky tests while processing >
attachment 381861
[details]
: > > imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script- > element/module/integrity.html
bug 203394
(author:
ysuzuki@apple.com
) > The commit-queue is continuing to process your patch.
Given how related this test is, I would not be surprised if this patch was the cause of the flakiness.
WebKit Commit Bot
Comment 12
2019-10-24 22:06:01 PDT
Comment on
attachment 381861
[details]
Patch Clearing flags on attachment: 381861 Committed
r251582
: <
https://trac.webkit.org/changeset/251582
>
WebKit Commit Bot
Comment 13
2019-10-24 22:06:03 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 14
2019-10-24 22:07:18 PDT
<
rdar://problem/56607815
>
Truitt Savell
Comment 15
2019-10-25 09:39:53 PDT
It looks like the changes in
https://trac.webkit.org/changeset/251582/webkit
broke imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/integrity.html on Mac wk1 history:
https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fsemantics%2Fscripting-1%2Fthe-script-element%2Fmodule%2Fintegrity.html
Diff: --- /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/integrity-expected.txt +++ /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/integrity-actual.txt @@ -1,4 +1,4 @@ -CONSOLE MESSAGE: line 1: TypeError: Cannot load script
http://localhost:8800/html/semantics/scripting-1/the-script-element/module/integrity-mismatches.js
. Failed integrity metadata check. Content length: 93, Expected content length: -1, Expected metadata: sha384-doesnotmatch +CONSOLE MESSAGE: line 1: TypeError: Cannot load script
http://localhost:8800/html/semantics/scripting-1/the-script-element/module/integrity-mismatches.js
. Failed integrity metadata check. Content length: 93, Expected content length: 93, Expected metadata: sha384-doesnotmatch PASS The integrity attribute must have no affect on inline module scripts PASS The integrity attribute must be verified on the top-level of a module and allow it to execute when it matches
Alex Christensen
Comment 16
2019-10-25 10:47:25 PDT
http://trac.webkit.org/r251596
fixes that test
Truitt Savell
Comment 17
2019-10-28 10:25:46 PDT
It looks like this test is still flakey: imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/integrity.html History:
https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fsemantics%2Fscripting-1%2Fthe-script-element%2Fmodule%2Fintegrity.html&platform=ios&platform=mac
Diff: --- /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/integrity-expected.txt +++ /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/integrity-actual.txt @@ -1,4 +1,4 @@ -CONSOLE MESSAGE: line 1: TypeError: Cannot load script
http://localhost:8800/html/semantics/scripting-1/the-script-element/module/integrity-mismatches.js
. Failed integrity metadata check. Content length: 93, Expected content length: 93, Expected metadata: sha384-doesnotmatch +CONSOLE MESSAGE: line 1: TypeError: Cannot load script
http://localhost:8800/html/semantics/scripting-1/the-script-element/module/integrity-mismatches.js
. Failed integrity metadata check. Content length: 93, Expected content length: -1, Expected metadata: sha384-doesnotmatch PASS The integrity attribute must have no affect on inline module scripts PASS The integrity attribute must be verified on the top-level of a module and allow it to execute when it matches
Alex Christensen
Comment 18
2019-10-28 11:27:09 PDT
http://trac.webkit.org/r251660
makes it always pass.
Alexey Proskuryakov
Comment 19
2019-10-28 12:56:29 PDT
Is it understood why the expected content length became unreliable here?
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