Reenable quota and indexedDB tests that are skipped or expected to fail
Categories
(Core :: Storage: IndexedDB, task, P2)
Tracking
()
People
(Reporter: tt, Assigned: tt)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 1 obsolete file)
dom/indexedDB/test/browser_forgetThisSite.js
test1()
~ test4()
involve running cross origin tabs
dom/indexedDB/test/browser_permissionsPromptAllow.js
dom/indexedDB/test/browser_permissionsPromptDeny.js
dom/indexedDB/test/browser_permissionsPromptWorker.js
Might be related to helper functions in BrowserTestUtils
or issues in Permission
dom/indexedDB/test/browser_perwindow_privateBrowsing.js
Might be related to helper functions in BrowserTestUtils
dom/indexedDB/test/test_third_party.html
The test runs cross-origin windows
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
dom/indexedDB/test/test_third_party.html
has assertion failures for four of the test cases:
Unexpected Results
------------------
dom/indexedDB/test/test_third_party.html
FAIL Good result for testData[9] == {"host":"http://example.com","cookieBehavior":1,"expectedResult":false} - got true, expected false
SimpleTest.is@SimpleTest/SimpleTest.js:322:16
messageListener@dom/indexedDB/test/test_third_party.html:80:9
EventListener.handleEvent*runTest@dom/indexedDB/test/test_third_party.html:98:14
onload@dom/indexedDB/test/test_third_party.html:1:1
FAIL Good result for testData[10] == {"host":"http://sub1.test2.example.org:8000","cookieBehavior":1,"expectedResult":false} - got true, expected false
SimpleTest.is@SimpleTest/SimpleTest.js:322:16
messageListener@dom/indexedDB/test/test_third_party.html:80:9
EventListener.handleEvent*runTest@dom/indexedDB/test/test_third_party.html:98:14
onload@dom/indexedDB/test/test_third_party.html:1:1
FAIL Good result for testData[13] == {"host":"http://example.com","cookieBehavior":3,"expectedResult":false} - got true, expected false
SimpleTest.is@SimpleTest/SimpleTest.js:322:16
messageListener@dom/indexedDB/test/test_third_party.html:80:9
EventListener.handleEvent*runTest@dom/indexedDB/test/test_third_party.html:98:14
onload@dom/indexedDB/test/test_third_party.html:1:1
FAIL Good result for testData[14] == {"host":"http://sub1.test2.example.org:8000","cookieBehavior":3,"expectedResult":false} - got true, expected false
SimpleTest.is@SimpleTest/SimpleTest.js:322:16
messageListener@dom/indexedDB/test/test_third_party.html:80:9
EventListener.handleEvent*runTest@dom/indexedDB/test/test_third_party.html:98:14
onload@dom/indexedDB/test/test_third_party.html:1:1
All other mentioned tests are timing out.
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
I think the test_third_party.html tests are failing because ThirdPartyUtil::IsThirdPartyWindow wrongly returns false for these cases. There is a loop iterating through towards the parent, but due to https://searchfox.org/mozilla-central/source/dom/base/ThirdPartyUtil.cpp#229, this does not go beyond process boundaries.
Comment 5•5 years ago
|
||
Removed expected failure with fission for dom/indexedDB/test/test_third_party.html
and dom/workers/test/test_sharedWorker_thirdparty.html.
Comment 6•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Comment 8•5 years ago
|
||
Depends on D49752
Comment 9•5 years ago
|
||
See https://treeherder.mozilla.org/#/jobs?repo=try&revision=db94c4907bb4bbc539ca141644812d05524d24d9 for the test result with the reworked waitForMessage implementation (also for dom/quota tests).
Assignee | ||
Comment 10•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 12•5 years ago
|
||
The attachment 9102549 [details] is mostly correct but there is something that needs to be fixed before landing.
There are some nit and some issues on the attachment 9102549 [details]. And this is only a suggestion or suggest for direction (if there is another way to fix the remaining issues, then that would be great.)
So, the major one is that the way it tunnels a value into a javascript closure is incorrect. The existing one doesn't work. And there seems no easy way to do that. (I checked the arguments.callee
, but it isn't allowed under the strict mode). Thus, I think the short term way is to hard code the value into checkFun
.
Minor stuff (e.g. dump
, typo) that need to be fixed before landing.
I will update the current patch under this direction once bug 1588193 is fixed. (I'll recheck if there is an easy way to pass a local variable to a js closure)
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
Backed out as per request: https://hg.mozilla.org/integration/autoland/rev/36b3dc6256ff193525c7419fd470ff39d05be2f4
Updated•5 years ago
|
Assignee | ||
Comment 15•5 years ago
|
||
Will merge "Some idea for 9102549" into D49752
Comment 16•5 years ago
|
||
(In reply to Tom Tung [:tt, :ttung] from comment #12)
So, the major one is that the way it tunnels a value into a javascript closure is incorrect. The existing one doesn't work. And there seems no easy way to do that. (I checked the
arguments.callee
, but it isn't allowed under the strict mode). Thus, I think the short term way is to hard code the value intocheckFun
.
Based on something I saw on the toSource() mdn page, one idea might be to pass in a dummy object where you have overriden toSource to just return the string you want. You could use a template literal to splice in the message. That's ugly, but hopefully nicer than hard coding specific types.
Assignee | ||
Comment 17•5 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #16)
(In reply to Tom Tung [:tt, :ttung] from comment #12)
So, the major one is that the way it tunnels a value into a javascript closure is incorrect. The existing one doesn't work. And there seems no easy way to do that. (I checked the
arguments.callee
, but it isn't allowed under the strict mode). Thus, I think the short term way is to hard code the value intocheckFun
.Based on something I saw on the toSource() mdn page, one idea might be to pass in a dummy object where you have overriden toSource to just return the string you want. You could use a template literal to splice in the message. That's ugly, but hopefully nicer than hard coding specific types.
Thanks! Will make a patch taking this idea!
Updated•5 years ago
|
Assignee | ||
Comment 18•5 years ago
|
||
Comment 19•5 years ago
|
||
Assignee | ||
Comment 20•5 years ago
|
||
Note that D49753 is expected to be landed once bug 1588193 is fixed.
Assignee | ||
Updated•5 years ago
|
Comment 21•5 years ago
|
||
bugherder |
Comment 22•5 years ago
|
||
Updated•5 years ago
|
Comment 23•5 years ago
|
||
bugherder |
Comment 24•5 years ago
|
||
bugherder landing |
Comment 25•5 years ago
|
||
Updated•5 years ago
|
Comment 26•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•