Commit Graph

3715 Commits

Author SHA1 Message Date
Joel Maher
7692cfcb68 Bug 1404914 - Disable dom/workers/test/serviceworkers/browser_multie10s_update.js on linux and osx for frequent failures. r=me, a=testonly 2017-10-24 04:58:42 -04:00
Ho-Pang Hsu
f8d3d218c6 Bug 1359677 - P1: Add a new mochitest to verify the bypassing service worker. r=asuth
Since we decide to do this by setting the nsIChannel::LOAD_BYPASS_SERVICE_WORKER
to defaultLoadFlags in the docShell and the implement of the bypass service
worker flag is done, only having this test to verify the behavior. So that we
can simplely copy the code for setBypassSW() and getBypassSW() to dev-tools
server in the future when we decide the UI/UX and designs on dev-tools clients.

--HG--
extra : rebase_source : 4e6f4e7216b2c4ed8bb64c9abd06e8daf2a6a242
2017-05-10 16:47:36 +08:00
Sebastian Hengst
8072106c67 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-23 23:55:17 +02:00
Ben Kelly
d64c111b67 Bug 1409761 Create dom.serviceWorkers.disable_open_click_delay and set it to a larger value on fennec. r=smaug 2017-10-23 14:24:31 -04:00
Gerald Squelart
d2ed3d6312 Bug 1410252 - Convert 'WrapNotNull(new T(...' to 'MakeNotNull<T*>(...' - r=njn
Most cases where the pointer is stored into an already-declared variable can
trivially be changed to MakeNotNull<T*>, as the NotNull raw pointer will end
up in a smart pointer.

In RAII cases, the target type can be specified (e.g.:
`MakeNotNull<RefPtr<imgFrame>>)`), in which case the variable type may just be
`auto`, similar to the common use of MakeUnique.
Except when the target type is a base pointer, in which case it must be
specified in the declaration.

MozReview-Commit-ID: BYaSsvMhiDi

--HG--
extra : rebase_source : 8fe6f2aeaff5f515b7af2276c439004fa3a1f3ab
2017-10-20 18:25:33 +11:00
Sebastian Hengst
6125e83b28 Backed out changeset c5f2f0e827d0 (bug 1403027) for build bustage at dom/workers/WorkerPrivate.cpp(984): expression did not evaluate to a constant, at least on Windows. r=backout on a CLOSED TREE
--HG--
extra : amend_source : e6eb5cbe9b6b41a929c8f811859efe6093eab3a2
2017-10-21 00:31:07 +02:00
Thomas Wisniewski
ac538c1bc0 Bug 1403027 - Do not throw from PerformanceObserver.observe when none of the entryTypes are known (log a JS console warning instead); r=bz
MozReview-Commit-ID: Lx2cjWDX8sh

--HG--
extra : rebase_source : 7f70818de5e4c31eb1781d524e0129b0b20759e3
2017-10-20 15:58:20 -04:00
Masatoshi Kimura
dbd92543c6 Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
MozReview-Commit-ID: 7JoD4VYzZp3

--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
Andrea Marchesini
6626e900f9 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-19 11:39:30 +02:00
Ben Kelly
7ad5940e12 Bug 1204254 P15 Try to make test_devtools_serviceworker_interception.html handle --verify runs again. r=asuth 2017-10-17 13:38:56 -07:00
Ben Kelly
e836540c57 Bug 1204254 P11 Notify "service-worker-synthesized-response" topic when synthesis starts so devtools can trace the channel. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly
d48b092026 Bug 1204254 P9 Pass the body stream directly to StartSynthesizedResponse() instead of copying. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly
827e1b543b Bug 1204254 P7 Allow the body nsIInputStream to be passed in StartSynthesizeResponse(). r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly
343cdda7a9 Bug 1204254 P6 Wait to start copying data until after we start the response synthesis. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly
414598f71f Bug 1204254 P4 Dispatch the StartResponse runnable when body copying begins. r=asuth 2017-10-17 13:38:54 -07:00
Ben Kelly
7ab3bc5f8b Bug 1204254 P3 Move logic into StartFinish() runnable separate from FinishRunnable() in ServiceWorkerEvents. r=asuth 2017-10-17 13:38:54 -07:00
Ben Kelly
262c2cb4f2 Bug 1204254 P2 Move StartSynthesizedResponse() out from FinishSynthesizedResponse(). r=asuth 2017-10-17 13:38:54 -07:00
Sebastian Hengst
b1cdb2af00 Backed out changeset 03e4f9175b16 (bug 1409329) 2017-10-17 22:03:39 +02:00
Sebastian Hengst
66e04dcde6 Backed out changeset 4666cde20909 (bug 1409327) 2017-10-17 22:03:33 +02:00
Andrea Marchesini
d526801916 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-17 20:38:05 +02:00
Andrea Marchesini
fe04c2050c Bug 1409329 - NS_NewBufferedOutputStream should take the ownership of the outputStream, r=smaug 2017-10-17 20:38:05 +02:00
Andrea Marchesini
faf078bd88 Bug 1400098 - Using common_fileReader.js for test_fileapi in workers, r=qdot 2017-10-17 13:21:39 +02:00
Sebastian Hengst
4a6ef4d29e Backed out changeset 7d032e676aef (bug 1400098) 2017-10-17 17:04:26 +02:00
Andrea Marchesini
72c79e182d Bug 1400098 - Using common_fileReader.js for test_fileapi in workers, r=qdot 2017-10-17 13:21:39 +02:00
Kris Maglione
60d080b412 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu

--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
Joel Maher
9be0d7276b Bug 1400098 - Disable dom/workers/test/test_fileReader.html on !debug for frequent failures. r=me, a=test-only 2017-10-15 05:55:12 -04:00
Kris Maglione
5fdcb5a5d2 Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.

As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.

MozReview-Commit-ID: LqD9GxdzMte

--HG--
extra : rebase_source : 41ce439912ae7b895e0a3b0e660fa6ba571eb50f
2017-10-12 15:43:55 -07:00
Ryan VanderMeulen
f5ad9c3d44 Bug 1348882 - Add crashtest. r=me
--HG--
extra : rebase_source : d6dfdc7752b99992f26bca05e983478104b0aebd
2017-10-11 19:54:09 -04:00
Ben Kelly
fa33ed763d Bug 1407245 Fix service worker update 24-hour time check conversion from microseconds. r=asuth 2017-10-10 13:50:36 -07:00
Luke Wagner
cf897d6fcb Bug 1347644 - Baldr: implement ConsumeStreamCallback in browser (r=bkelly)
MozReview-Commit-ID: DXv2MegefDw

--HG--
extra : rebase_source : aca4d6e40ae9af03e05520ec8bdef92889e44acc
2017-10-10 14:41:24 -05:00
Ben Kelly
20f23200cd Bug 1391693 P1 Rename nsIInterceptedChannel.cancel() to cancelInterception() r=jdm 2017-10-09 10:03:40 -07:00
Nicholas Nethercote
8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
David Major
7e599076a6 Bug 1405735 - Make worker JS context options respect safe mode. r=billm
--HG--
extra : amend_source : 94345cc176019885832a57c5d441b3ed5cc63973
2017-10-06 12:50:50 -04:00
Ben Kelly
5c16150f0b Bug 1405529 Make test_devtools_serviceworker_interception.html close its window so its registration cleans up. r=asuth 2017-10-04 07:36:25 -07:00
Andrea Marchesini
9067ec472c Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
Andrea Marchesini
ca3c8d9064 Bug 1388413 - ServiceWorkerClients::openWindow() - OriginAttributes test, r=smaug 2017-09-28 10:38:58 +02:00
Andrea Marchesini
70898ad20b Bug 1388413 - ServiceWorkerClients::OpenWindow() should use the triggeringPrincipal, r=bz
This is done using a JS Sandbox with the triggering Principal.
2017-09-28 10:38:58 +02:00
Kris Maglione
a2f046914a Bug 1403348: Include details about AsyncShutdown failure in crash reason. r=baku data-r=rweiss
MozReview-Commit-ID: L6U2MVshZl8

--HG--
extra : rebase_source : 028be91b15947c77961747f534fc6895ffb6e756
2017-09-27 15:11:43 -07:00
Wes Kocher
1cdb198bd9 Backed out 3 changesets (bug 1388413) for failures in browser_userContextId_openWindow.js a=bustage
Backed out changeset aa2f3c4c3242 (bug 1388413)
Backed out changeset 8f8b7e60f397 (bug 1388413)
Backed out changeset a4d6924a59f1 (bug 1388413)

MozReview-Commit-ID: Gp0AwTKEAGO
2017-09-28 16:57:21 -07:00
Andrea Marchesini
bbf878e76d Bug 1388413 - ServiceWorkerClients::openWindow() - OriginAttributes test using tabs, r=me 2017-09-28 16:42:23 +02:00
Andrea Marchesini
baa04d619a Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug 2017-08-06 20:47:00 +03:00
Andrea Marchesini
5979294bc0 Bug 1388413 - ServiceWorkerClients::openWindow() - OriginAttributes test, r=smaug 2017-09-28 10:38:58 +02:00
Andrea Marchesini
1404ec98cb Bug 1388413 - ServiceWorkerClients::OpenWindow() should use the triggeringPrincipal, r=bz
This is done using a JS Sandbox with the triggering Principal.
2017-09-28 10:38:58 +02:00
Sebastian Hengst
72d1ea4a4b merge mozilla-central to autoland. r=merge a=merge 2017-09-27 11:49:57 +02:00
Andrea Marchesini
04cd5ddc32 Bug 1402317 - Remove dom.abortController.enabled and dom.abortController.fetch.enabled prefs, r=qdot 2017-09-27 03:50:46 +02:00
Alexandre Poirot
8558f8dcb0 Bug 1392540 - Keep running debugger Promise while debugging workers. r=baku
MozReview-Commit-ID: JsA0Y943egB

--HG--
extra : rebase_source : 1087aa8a1b56330bdb1b5ed32ebeeb3b2bb1defb
2017-08-10 13:27:07 +02:00
Andrea Marchesini
53d31f2d9c Bug 1402888 - Remove nsIInputStreamPump::Init() offset and limit params, r=smaug 2017-09-26 07:21:44 +02:00
Sebastian Hengst
1a3935a05f merge autoland to mozilla-central.r=merge a=merge
MozReview-Commit-ID: JRQXsnsRpCS
2017-09-25 11:56:13 +02:00
Chris Peterson
1ca3d5aa46 Bug 870698 - Part 8: Replace Equals(NS_LITERAL_CSTRING("")) with EqualsLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: B5Y8KyExPQ8

--HG--
extra : rebase_source : e27b266c145daa5acd887e998c6d5b408101e1db
extra : source : 33f49977a33cbdb1c7127871b940eefccc018f65
2017-09-06 15:00:31 -07:00
Chris Peterson
98b2f2fcd6 Bug 870698 - Part 7: Replace Insert(NS_LITERAL_CSTRING("")) with InsertLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: DbTW5Bhd9E1

--HG--
extra : rebase_source : b27f666e5ca832d814fb6846208474e1ec66e5f4
extra : source : 9ff4e11402a9a43ed90298a9c354b0164cf9414f
2017-09-07 18:15:42 -07:00