Commit Graph

498 Commits

Author SHA1 Message Date
Nikhil Marathe
2f098f3bcf Bug 1180754 - Get serviceworkerobject-scripturl test passing. r=bkelly
This commit does several things:
1. Change to https so the test does not fail due to security exceptions.
2. Change function service_worker_unregister to get around the "getRegistration() matches most specific registration" issue by matching exact scope.
3. Uses the URL object for the "absolute" test instead of relying on server substitution since it achieves the same thing.
4. Allows fragments in the scriptURL since I cannot find anything in the spec preventing this. I have filed https://github.com/slightlyoff/ServiceWorker/issues/742 to resolve this.

Update web-platform-tests expected data
2015-08-31 17:52:52 -07:00
Nikhil Marathe
9c5c6b1cc4 Bug 1198636 - Remove incorrect ini file. r=bkelly
Bug 1189678 forgot to remove the ini file itself though the expectation data was updated.
2015-09-08 16:57:03 -07:00
Nikhil Marathe
40bf141a0d Bug 1186833 - register-same-scope-different-script-url.https.html fixes. r=bkelly
Update web-platform-tests expected data
2015-09-08 12:56:40 -07:00
Nikhil Marathe
33d00f662c Bug 1198230 - Respect FetchEvent.preventDefault(). r=jdm
Update web-platform-tests expected data
2015-09-04 12:00:24 -07:00
Nikhil Marathe
41d10b9764 Bug 1201632 - wptserve.py should send JSON failure message with correct mime type. r=jgraham
According to the JSON RFC [1] the official mime type is "application/json". If
we do not send this, Gecko will not fire the onload event for a frame trying to
load such a URL but will instead load an error page.

Several service worker tests rely on loading 'fake' iframes that 404 but
contribute to the progress of the test by watching for the onload event.
These tests are fixed by this patch.

[1]: http://www.ietf.org/rfc/rfc4627.txt
2015-09-08 16:05:43 -07:00
Ehsan Akhgari
2b52b18a64 Bug 815299 - Part 3: Accept empty HTTP headers in XHR; r=jdm 2015-09-09 07:54:33 -04:00
Nigel Babu
61855501b5 Backed out changeset 0a2a9972b4c7 (bug 815299) for M4 bustage. 2015-09-09 09:12:28 +05:30
Ehsan Akhgari
26ff686dbd Bug 815299 - Part 3: Accept empty HTTP headers in XHR; r=jdm 2015-09-08 20:08:32 -04:00
Nikhil Marathe
7a785f28ec Bug 1181036 - Fix waiting/active expectations. r=bkelly
Update web-platform-tests expected data
2015-08-31 16:59:38 -07:00
James Graham
ca73fce3f0 Bug 1201822 - Update web-platform-tests expected data to revision d0571e01e1a2e4b8c5f696af2f81cbc1be9a5842, a=testonly 2015-09-04 10:39:27 +01:00
James Graham
07c8de4f02 Bug 1201822 - Update to latest wptrunner, a=testonly 2015-09-04 10:39:26 +01:00
James Graham
9b37007ee3 Bug 1201822 - Update web-platform-tests to revision d0571e01e1a2e4b8c5f696af2f81cbc1be9a5842, a=testonly 2015-09-04 10:39:26 +01:00
Nikhil Marathe
41c68c7aa3 Bug 1186832 - Fix multiple-register.https.html test. r=bkelly,jgraham
Standard scope comparison stuff for the most part. Added <body> tag so
document.body.appendChild() in with_iframe() works. I had to add a simple 404
script because <iframe> apparently only fires the onload event if the
content-type was text/plain or text/html but our test harness delivers JSON by
default leading to timeouts.

Update web-platform-tests expected data
2015-08-28 17:06:00 -07:00
Kyle Huey
bce4c195ad Bug 1200884: Make postmessage-to-client.https.html pass. r=jdm 2015-09-02 17:17:09 -07:00
Kyle Huey
a30211dfde Bug 1200843: Make fetch-mixed-content tests pass. r=jdm 2015-09-02 17:17:01 -07:00
Nikhil Marathe
2eb4206a08 Bug 1180737 - Add update-test.py and update test to latest version. r=bkelly.
Added update-test.py which is a conversion of Blink update-test.php to deliver workers with different mime types.
Updated test file to latest version to check for SecurityError.
Dealt with the usual waiting/active issue.
Update web-platform-tests expected data
2015-08-31 18:56:21 -07:00
Ben Kelly
d10b0673ca Bug 1184967 P2 Update fetch-frame-resource.https.html CORS checks to expect pass. r=jgraham 2015-09-01 07:58:34 -07:00
James Graham
4f5f79290f Bug 1197365 - Enable e10s for web-platform-tests, r=ahal,Ms2ger 2015-09-01 14:10:17 +01:00
Ben Kelly
76c12346b3 Bug 1184607 P9 Add wpt tests to verify service worker redirect logic. r=nsm 2015-08-31 14:26:30 -07:00
Ryan VanderMeulen
ee8e70a066 Bug 1199846 - Mark uncontrolled-page.https.html as passing.
CLOSED TREE
2015-08-30 16:02:11 -04:00
Ryan VanderMeulen
5f6b2ba059 Bug 1198982 - Mark WorkerGlobalScope_importScripts_NetworkErr.htm as passing now. 2015-08-30 16:00:10 -04:00
Kyle Huey
7bc668ecad Bug 1199846: Make uncontrolled-page.https.html pass. r=jdm 2015-08-30 10:33:41 -07:00
Kyle Huey
da52f1b0dc Bug 1199831: Fix a bunch of mixed-content violations in imported ServiceWorker WPTs. r=jdm 2015-08-28 16:53:43 -07:00
Josh Matthews
94cf58081f Bug 1189582 - Fix test-response-xhr.https.html and expectation data. r=nsm 2015-07-30 21:27:34 -04:00
Nikhil Marathe
03f2de8e31 Bug 1176988 - Patch 3 - Tests. r=jdm
Update web-platform-tests expected data
2015-08-26 08:59:04 -07:00
James Graham
3f3a9ad244 Bug 1199127 - Update web-platform-tests expected data to revision 4600b7dbae996754fe52f48bc9c225834f11a686, a=testonly 2015-08-27 09:41:22 +01:00
James Graham
856912927d Bug 1199127 - Update to latest wptrunner, a=testonly 2015-08-27 09:41:21 +01:00
James Graham
a5b4bb0777 Bug 1199127 - Update web-platform-tests to revision 4600b7dbae996754fe52f48bc9c225834f11a686, a=testonly 2015-08-27 09:41:20 +01:00
Emilio Cobos Álvarez
ae9dfd524f Bug 1195820 - Request constructor should throw TypeError if URL has credentials or parse fails. r=bkelly 2015-08-24 22:54:52 +02:00
James Graham
47022afeee Bug 1184351 - Disable unstable CSP test on Linux debug builds, a=testonly 2015-08-26 12:37:59 +01:00
James Graham
6588a68f34 Bug 1193349 - Disable unstable image mutations test on Windows, a=testonly 2015-08-26 12:36:59 +01:00
Nikhil Marathe
f2e8d79180 Bug 1180861 - Various ServiceWorker registration fixes to get test passing. r=bkelly,jgraham.
This commit implements the following changes to get registration.https.html working.
1) Fail with NS_ERROR_DOM_SECURITY_ERR where the spec requires it.
2) Propagate JSExnType to ServiceWorkerManager::HandleError() so that a JS
   exception object with the correct .name can be created.
3) Fail with security error on redirect failure.
4) Check fetched script's mimetype.
5) Add missing python server files for web-platform-tests.
6) Update web-platform-tests expected data.
7) Several tests have been changed to use TypeError or more appropriate JS
   errors based on my reading of the spec.
2015-08-19 16:21:25 -07:00
Kyle Huey
0106bdbc32 Bug 1164834: MessageEvents coming from postMessage should not be cancelable. r=Ms2ger 2015-08-25 13:30:19 -07:00
Nikhil Marathe
30dd51860f Bug 1189678 - check if worker is already active. r=bkelly
Similar to other tests, the registration process allows workers to activate right after install.

Update web-platform-tests expected data
2015-08-21 17:55:50 -07:00
Nikhil Marathe
7e8f8a2320 Bug 1189675 - Make all ServiceWorker events non cancelable. r=catalinb
Update web-platform-tests expected data
2015-08-21 17:38:18 -07:00
Nikhil Marathe
31c44b01f4 Bug 1189644 - Update waitUntil() and activation to spec. r=catalinb
waitUntil() has been updated to accept multiple calls and concatenate them into Promise.all().
activation does not fail any more even if the promise(s) passed to waitUntil() reject.

Update web-platform-tests expected data
2015-08-24 14:42:14 -07:00
Nikhil Marathe
379054b785 Bug 1189661 - either of active or waiting can be valid. r=bkelly
Update wpt expectation data.
2015-08-24 14:43:16 -07:00
Wei-Cheng Pan
e4e4541496 Bug 1050749 - Expose BatteryManager via getBattery() returning a Promise. r=bz, r=baku, r=jgraham 2015-08-21 18:29:25 +08:00
Ryan VanderMeulen
3da35b0f50 Backed out 7 changesets (bug 1189678, bug 1193128, bug 1189661, bug 1189644, bug 1189675) for various serviceworker mochitest and wpt failures.
Backed out changeset 696463139720 (bug 1189661)
Backed out changeset 7babb5b9d74a (bug 1189644)
Backed out changeset d4fa5cfc4b86 (bug 1189678)
Backed out changeset a7c27770b861 (bug 1189675)
Backed out changeset 471a45b97ce2 (bug 1189644)
Backed out changeset 4d96f2d48077 (bug 1193128)
Backed out changeset a9d5366288ff (bug 1189661)

CLOSED TREE
2015-08-24 18:09:47 -04:00
Nikhil Marathe
979f11c445 Bug 1189661 - Update wpt expectation data. a=bustage.
CLOSED TREE
2015-08-24 13:59:46 -07:00
Nikhil Marathe
e5d1a9a6f3 Bug 1189678 - check if worker is already active. r=bkelly
Similar to other tests, the registration process allows workers to activate right after install.

Update web-platform-tests expected data
2015-08-21 17:55:50 -07:00
Nikhil Marathe
34e039a751 Bug 1189675 - Make all ServiceWorker events non cancelable. r=catalinb
Update web-platform-tests expected data
2015-08-21 17:38:18 -07:00
Nikhil Marathe
6b5a7a37f1 Bug 1189644 - Update waitUntil() and activation to spec. r=catalinb
waitUntil() has been updated to accept multiple calls and concatenate them into Promise.all().
activation does not fail any more even if the promise(s) passed to waitUntil() reject.

Update web-platform-tests expected data
2015-08-21 16:13:54 -07:00
Nikhil Marathe
ccb6fdc92c Bug 1189661 - either of active or waiting can be valid. r=bkelly 2015-08-21 14:25:46 -07:00
Jean-Yves Avenard
5529daa65b Bug 1188806: [MSE] Disable tests timing out intermittently. r=karlt
MSE with MP4 isn't enabled on linux, so those tests should always be failing.
2015-08-24 23:13:52 +10:00
Jean-Yves Avenard
f8b99f5c37 Bug 1195073: [MSE] P9. Update webref meta files. r=karlt
Remove unecessary files.
2015-08-24 23:13:51 +10:00
Jean-Yves Avenard
8efdf2a198 Bug 1195073: [MSE] P8. Update webref results. r=karlt 2015-08-24 23:13:51 +10:00
Sebastian Hengst
746c4ae183 Backed out changeset aed2e9e74697 (bug 1195073) because it will now pass unexpected due to the previous backout. r=backout 2015-08-21 11:26:39 +02:00
Jean-Yves Avenard
7a6cc3d4cb Bug 1195073: [MSE] P7. Disable invalid webm test. a=test-only 2015-08-21 17:53:30 +10:00
Nikhil Marathe
6acfb8be64 Bug 1181056 - waitUntil() should throw if called when event is not dispatching. r=smaug 2015-08-18 16:28:04 -07:00