Tom Tung
a70276a99c
Bug 1222008 - P9: Expected failure for loading a same origin XML Document but being responded with a cors response. r=bkelly
...
Modify test to be expected failure to load cross origin XML Document via a
same origin request.
--HG--
extra : rebase_source : 1fd3e699447436b47205537009b5ba23bbab3278
2017-11-29 17:06:33 +08:00
Tom Tung
5658a1d598
Bug 1222008 - P6: Reject the cors synthesized response for same-origin request. r=bkelly
...
--HG--
extra : rebase_source : ae4c9545d42af0dff1879bd77a39ae432bf07f20
2017-11-28 10:21:07 +08:00
Tom Tung
47cc13a854
Bug 1222008 - P4: Fix the interception test since we decide to propagate the response's URLs to the content. r=bkelly
...
--HG--
extra : rebase_source : 7e92f7a719143c5379120b45c7766d99fc11c8c4
2017-11-23 09:26:07 +08:00
Tom Tung
afa535333a
Bug 1222008 - P1: Propagate the URLs from respondWith() if the response's URL is different from the request's. r=bkelly
...
--HG--
extra : rebase_source : 97bc74f18e734673ab598925410c8b284c4aaba8
2017-11-01 15:45:35 +08:00
Cosmin Sabou
5c4663243d
Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
...
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Andrea Marchesini
d841e8c395
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 22 - Get rid of WorkerPrefs.h, r=asuth
2017-11-30 18:16:47 +01:00
Andrea Marchesini
7560ffd56e
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 21 - DevTools enabled, r=asuth
2017-11-30 18:16:47 +01:00
Andrea Marchesini
ec279a6bc2
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 20 - Resist finger-printing enabled, r=asuth
2017-11-30 18:16:47 +01:00
Andrea Marchesini
ff3102232c
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 19 - FetchObserver API enabled, r=asuth
2017-11-30 18:16:46 +01:00
Andrea Marchesini
87b88ecf23
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 18 - Network Information enabled, r=asuth
2017-11-30 18:16:46 +01:00
Andrea Marchesini
278c4a3bc7
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 17 - Webkit/Blink directory picker enabled, r=asuth
2017-11-30 18:16:46 +01:00
Andrea Marchesini
68264e1209
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 16 - Offscreen Canvas enabled, r=asuth
2017-11-30 18:16:46 +01:00
Andrea Marchesini
4f8c375ea7
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 15 - Request Context enabled, r=asuth
2017-11-30 18:16:46 +01:00
Andrea Marchesini
5c6a04a6d2
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 14 - Streams API enabled, r=asuth
2017-11-30 18:16:46 +01:00
Andrea Marchesini
dd319f861b
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 13 - Push enabled, r=asuth
2017-11-30 18:16:45 +01:00
Andrea Marchesini
02c4d1fc9d
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 12 - Promise Rejection Event enabled, r=asuth
2017-11-30 18:16:45 +01:00
Andrea Marchesini
cd7b81714c
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 11 - StorageManager enabled, r=asuth
2017-11-30 18:16:45 +01:00
Andrea Marchesini
41df4c1f5b
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 10 - ServiceWorker Client OpenWindow enabled, r=asuth
2017-11-30 18:16:45 +01:00
Andrea Marchesini
6449cfcb08
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 9 - ServiceWorker testing enabled, r=asuth
2017-11-30 18:16:45 +01:00
Andrea Marchesini
22b345720e
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 8 - ServiceWorkers enabled, r=asuth
2017-11-30 18:16:45 +01:00
Andrea Marchesini
156213d7e8
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 7 - Notification Request-Interaction enabled, r=asuth
2017-11-30 18:16:45 +01:00
Andrea Marchesini
4f40b313a3
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 6 - Notification API enabled, r=asuth
2017-11-30 18:16:44 +01:00
Andrea Marchesini
c8ae53b657
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 5 - Performance logging enabled, r=asuth
2017-11-30 18:16:44 +01:00
Andrea Marchesini
cb9c14e86e
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 4 - DOM Cache testing enabled, r=asuth
2017-11-30 18:16:44 +01:00
Andrea Marchesini
6868bd1bd3
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 3 - DOM Caches enabled, r=asuth
2017-11-30 18:16:44 +01:00
Andrea Marchesini
df66e497b8
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 2 - image bitmap, r=asuth
2017-11-30 18:16:44 +01:00
Andrea Marchesini
a8cc2c7114
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 1 - dump enabled, r=asuth
2017-11-30 18:16:44 +01:00
Ben Kelly
3472ec54e0
Bug 1420221 Make workers handle the case when the ClientSource cannot be created during shutdown. r=baku
2017-11-27 14:48:17 -05:00
Andrea Marchesini
2b3039c021
Bug 1419166 - Use nsIPrincipal to decide if a SharedWorker should be shared, r=bkelly
2017-11-27 17:07:39 +01:00
Tom Tung
7dd219f393
Bug 1416629: Add a telemetry to get how many precentage of synthesized cors response for same-origin mode request. r=bkelly, data-r=francois
...
--HG--
extra : rebase_source : af6c7186f7b4c08fd94f5613d8bfe67666903c6e
2017-11-16 09:45:39 +08:00
Nika Layzell
f1ac9bf744
Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug
...
MozReview-Commit-ID: DAAm6tLubhJ
2017-11-23 13:12:13 -05:00
Andrea Marchesini
1fd1731f81
Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 3 - NS_NewInputStreamPump, r=smaug
2017-11-22 11:18:57 +01:00
Tom Tung
9988d0b61e
Bug 1415388 - P3: Fix the issues on try. r=bkelly
...
Basically, this patch does three things as following:
1. Limit the scope of service worker to the controlling document so that it
won't influence other tests.
2. Ensure to catch the channel to controlling document if it's an internal
redirect. We should get two channel with the response.URL(The first one for the
service worker and the second one for the controlling document). Distingulish
them by the order.
3. Ensure to get the controller change event after posting the "claim" message
to the service worker.
--HG--
extra : rebase_source : fb2395fb6dce59ae0fd49b0b915aca52c78206e0
2017-11-17 17:16:05 +08:00
Tom Tung
85f0ee018d
Bug 1415388 - P2: Add a test to verify pass timing data correctlly after an internal redirect. r=bkelly
...
--HG--
extra : rebase_source : 1aa1a35954a7246ce240922e56819a8b5bb45da5
2017-11-14 15:12:33 +08:00
Tom Tung
58a1ed2f13
Bug 1415388 - P1: Move the test_devtools_serviceworker_interception to a browser test. r=bkelly
...
--HG--
extra : rebase_source : 4645db6b0211020574a3228774bf578bad40ace6
2017-11-09 09:24:20 +08:00
Ben Kelly
9af975dbfd
Bug 1419536 P4 Allow ClientSource objects to be frozen while in bfcache. r=baku
2017-11-21 15:13:05 -05:00
Ben Kelly
c223495e4f
Bug 1419536 P2 Create a ClientSource for the WorkerPrivate and mark it execution ready after the script loads. r=baku
2017-11-21 15:13:04 -05:00
Jan de Mooij
7f30bf48a7
Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie
2017-11-17 12:12:39 +01:00
Andrea Marchesini
155b15b8e0
Bug 1414755 - Get rid of ContentPrincipalInfoOriginNoSuffix, r=bz, r=bkelly
...
This patch uses MozURL in ServiceWorkerRegistrar and in DBScheme to obtain the
origin of a URL. This is safe because the URL is always http/https/ftp.
It also changes the serialization of Principal in nsJSPrincipals in order to
pass the originNoSuffix together with the OriginAttributes and the spec.
2017-11-15 11:19:26 +01:00
Andrea Marchesini
73712f7d05
Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth
2017-11-15 07:58:38 +01:00
Andrea Marchesini
cae6951635
Bug 1405290 - Improve logging of workers when shutting down - part 2 - Implement RuntimeService::CrashIfHanging(), r=asuth
2017-11-15 07:58:38 +01:00
Andrea Marchesini
2ec09fb927
Bug 1405290 - Improve logging of workers when shutting down - part 1 - WorkerHolder must assert in release, r=asuth
2017-11-15 07:58:38 +01:00
Andrea Marchesini
b06af90b93
Bug 1416174 - part 1 - OSFileConstants must be a singleton, r=smaug
2017-11-10 19:27:03 +01:00
Geoff Brown
cbb956e0c3
Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh
2017-11-10 07:03:36 -07:00
Andrea Marchesini
3794888bc4
Bug 1416151 - Moving websocket code and tests in dom/websocket, r=qdot
...
--HG--
rename : dom/base/WebSocket.cpp => dom/websocket/WebSocket.cpp
rename : dom/base/WebSocket.h => dom/websocket/WebSocket.h
rename : dom/base/test/file_bug1384658.html => dom/websocket/tests/file_bug1384658.html
rename : dom/base/test/file_websocket_basic_wsh.py => dom/websocket/tests/file_websocket_basic_wsh.py
rename : dom/base/test/file_websocket_bigBlob_wsh.py => dom/websocket/tests/file_websocket_bigBlob_wsh.py
rename : dom/base/test/file_websocket_hello_wsh.py => dom/websocket/tests/file_websocket_hello_wsh.py
rename : dom/base/test/file_websocket_http_resource.txt => dom/websocket/tests/file_websocket_http_resource.txt
rename : dom/base/test/file_websocket_permessage_deflate_disabled_wsh.py => dom/websocket/tests/file_websocket_permessage_deflate_disabled_wsh.py
rename : dom/base/test/file_websocket_permessage_deflate_params_wsh.py => dom/websocket/tests/file_websocket_permessage_deflate_params_wsh.py
rename : dom/base/test/file_websocket_permessage_deflate_rejected_wsh.py => dom/websocket/tests/file_websocket_permessage_deflate_rejected_wsh.py
rename : dom/base/test/file_websocket_permessage_deflate_wsh.py => dom/websocket/tests/file_websocket_permessage_deflate_wsh.py
rename : dom/base/test/file_websocket_wsh.py => dom/websocket/tests/file_websocket_wsh.py
rename : dom/base/test/frame_bug1384658.html => dom/websocket/tests/frame_bug1384658.html
rename : dom/base/test/iframe_webSocket_sandbox.html => dom/websocket/tests/iframe_webSocket_sandbox.html
rename : dom/base/test/test_bug1081686.html => dom/websocket/tests/test_bug1081686.html
rename : dom/base/test/test_bug1384658.html => dom/websocket/tests/test_bug1384658.html
rename : dom/base/test/test_webSocket_sandbox.html => dom/websocket/tests/test_webSocket_sandbox.html
rename : dom/workers/test/test_webSocket_sharedWorker.html => dom/websocket/tests/test_webSocket_sharedWorker.html
rename : dom/base/test/test_websocket1.html => dom/websocket/tests/test_websocket1.html
rename : dom/base/test/test_websocket2.html => dom/websocket/tests/test_websocket2.html
rename : dom/base/test/test_websocket3.html => dom/websocket/tests/test_websocket3.html
rename : dom/base/test/test_websocket4.html => dom/websocket/tests/test_websocket4.html
rename : dom/base/test/test_websocket5.html => dom/websocket/tests/test_websocket5.html
rename : dom/base/test/test_websocket_basic.html => dom/websocket/tests/test_websocket_basic.html
rename : dom/base/test/test_websocket_bigBlob.html => dom/websocket/tests/test_websocket_bigBlob.html
rename : dom/base/test/test_websocket_frame.html => dom/websocket/tests/test_websocket_frame.html
rename : dom/base/test/test_websocket_hello.html => dom/websocket/tests/test_websocket_hello.html
rename : dom/base/test/test_websocket_permessage_deflate.html => dom/websocket/tests/test_websocket_permessage_deflate.html
rename : dom/workers/test/test_websocket1.html => dom/websocket/tests/test_worker_websocket1.html
rename : dom/workers/test/test_websocket2.html => dom/websocket/tests/test_worker_websocket2.html
rename : dom/workers/test/test_websocket3.html => dom/websocket/tests/test_worker_websocket3.html
rename : dom/workers/test/test_websocket4.html => dom/websocket/tests/test_worker_websocket4.html
rename : dom/workers/test/test_websocket5.html => dom/websocket/tests/test_worker_websocket5.html
rename : dom/workers/test/test_websocket_basic.html => dom/websocket/tests/test_worker_websocket_basic.html
rename : dom/workers/test/test_websocket_https.html => dom/websocket/tests/test_worker_websocket_https.html
rename : dom/workers/test/test_websocket_loadgroup.html => dom/websocket/tests/test_worker_websocket_loadgroup.html
rename : dom/workers/test/webSocket_sharedWorker.js => dom/websocket/tests/webSocket_sharedWorker.js
rename : dom/workers/test/websocket_basic_worker.js => dom/websocket/tests/websocket_basic_worker.js
rename : dom/base/test/websocket_helpers.js => dom/websocket/tests/websocket_helpers.js
rename : dom/workers/test/websocket_https_worker.js => dom/websocket/tests/websocket_https_worker.js
rename : dom/base/test/websocket_hybi/file_binary-frames_wsh.py => dom/websocket/tests/websocket_hybi/file_binary-frames_wsh.py
rename : dom/base/test/websocket_hybi/file_check-binary-messages_wsh.py => dom/websocket/tests/websocket_hybi/file_check-binary-messages_wsh.py
rename : dom/base/test/websocket_hybi/mochitest.ini => dom/websocket/tests/websocket_hybi/mochitest.ini
rename : dom/base/test/websocket_hybi/test_receive-arraybuffer.html => dom/websocket/tests/websocket_hybi/test_receive-arraybuffer.html
rename : dom/base/test/websocket_hybi/test_receive-blob.html => dom/websocket/tests/websocket_hybi/test_receive-blob.html
rename : dom/base/test/websocket_hybi/test_send-arraybuffer.html => dom/websocket/tests/websocket_hybi/test_send-arraybuffer.html
rename : dom/base/test/websocket_hybi/test_send-blob.html => dom/websocket/tests/websocket_hybi/test_send-blob.html
rename : dom/workers/test/websocket_loadgroup_worker.js => dom/websocket/tests/websocket_loadgroup_worker.js
rename : dom/base/test/websocket_tests.js => dom/websocket/tests/websocket_tests.js
rename : dom/workers/test/websocket_worker1.js => dom/websocket/tests/websocket_worker1.js
rename : dom/workers/test/websocket_worker2.js => dom/websocket/tests/websocket_worker2.js
rename : dom/workers/test/websocket_worker3.js => dom/websocket/tests/websocket_worker3.js
rename : dom/workers/test/websocket_worker4.js => dom/websocket/tests/websocket_worker4.js
rename : dom/workers/test/websocket_worker5.js => dom/websocket/tests/websocket_worker5.js
rename : dom/workers/test/websocket_https.html => dom/websocket/tests/websocket_worker_https.html
rename : dom/base/test/window_bug1384658.html => dom/websocket/tests/window_bug1384658.html
2017-11-10 12:00:33 +01:00
Nika Layzell
ff8b5bd178
Bug 1414974 - Part 3: Move Get{Inner,Outer}WindowWithId onto the specific subclasses, r=smaug
...
These were originally exposed directly as static methods on nsGlobalWindow, but
as they are clearly associated with either the inner or outer window, it makes
more sense for them to be called as such.
MozReview-Commit-ID: LFq8EfnhDlo
2017-11-09 10:44:47 -05:00
Nika Layzell
3409141758
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Jan de Mooij
2681f26832
Bug 1413867 - Remove StopIteration object. r=evilpie
2017-11-05 19:01:04 +01:00
Bevis Tseng
f1fc4f0776
Bug 1413466 - Fire events after iterating ServiceWorkerManager::mControlledDocuments is done. r=bkelly
...
It's possible to modify mControlledDocuments from oncontrollerchange handler.
We should fire events after iteration to prevent updating this hashtable while reading it.
2017-11-01 15:18:23 +08:00
Ben Kelly
55385cd906
Bug 1413604 P2 Make WorkerHolderToken use an nsTObserverArray to allow for mutation during iteration. r=asuth
2017-11-01 16:20:14 -04:00