Olli Pettay
a234639bdb
Bug 1754139, use "null" as the opaque origin in BroadcastChannel messages, r=timhuang
...
This is similar to window.postMessage handling
https://searchfox.org/mozilla-central/rev/2a0b0ababd4541ecffb74cbe0820a9d0a25da636/dom/base/nsGlobalWindowOuter.cpp#5924
Differential Revision: https://phabricator.services.mozilla.com/D138151
2022-02-09 12:52:02 +00:00
Kagami Sascha Rosylight
9deff594c6
Bug 1723050 - Part 4: Replace typedef by using in dom/broadcastchannel/ r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D121296
2021-08-05 12:18:13 +00:00
Andrea Marchesini
6881d7ef4e
Bug 1634395 - BroadcastChannel should not expose originAttributes in the MessageEvent/MessageEventError, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D73264
2020-04-30 14:05:10 +00:00
Eric Rahm
53f27d440b
Bug 1626450 - Remove stray references to "nsAutoPtr.h" in dom/. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D69121
--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:26 +00:00
Andrea Marchesini
c4d5364f80
Bug 1610020 - BroadcastChannel + wasm - part 5 - RefMessageBody for BroadcastChannels, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D60321
--HG--
extra : moz-landing-system : lando
2020-01-24 08:00:08 +00:00
Andrea Marchesini
2cb6cd3581
Bug 1610020 - BroadcastChannel + wasm - part 4 - BroadcastChannel connected to RefMessageBodyService, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D60320
--HG--
extra : moz-landing-system : lando
2020-01-24 07:59:50 +00:00
Andrea Marchesini
3eb9182bd3
Bug 1539524 - BroadcastChannel must bind itself to valid nsIGlobalObject in workers, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D25082
--HG--
extra : moz-landing-system : lando
2019-03-28 22:12:27 +00:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Andrea Marchesini
ba519b7136
Bug 1450644 - WorkerRef should make APIs able to work until the worker is completely terminated - part 2 - BroadcastChannel, r=asuth
2018-04-17 20:51:02 +02:00
Tiberius Oros
78bac61f63
Backed out 7 changesets (bug 1450644, bug 1454633) for for failing browser_storage_permission.js on a CLOSED TREE
...
Backed out changeset f4989e0da221 (bug 1454633)
Backed out changeset 08239799d43e (bug 1450644)
Backed out changeset cbe3ad4833b6 (bug 1450644)
Backed out changeset 0d2088370d0c (bug 1450644)
Backed out changeset 246fb3ee14cd (bug 1450644)
Backed out changeset 629e499c0f75 (bug 1450644)
Backed out changeset ed93e3547096 (bug 1450644)
2018-04-18 01:10:26 +03:00
Andrea Marchesini
fd9678b8b2
Bug 1450644 - WorkerRef should make APIs able to work until the worker is completely terminated - part 2 - BroadcastChannel, r=asuth
2018-04-17 20:51:02 +02:00
Ben Kelly
fad5d8c778
Bug 1450269 Remove the BroadcastChannel inner-window-destroyed observer in favor of DisconnectFromOwner(). r=baku
2018-04-05 07:55:16 -07:00
Andrea Marchesini
d892207595
Bug 1436784 - Use WorkerRef in BroadcastChannel and MessagePort, r=smaug
2018-03-13 21:16:54 +01:00
Andrea Marchesini
063723a1f0
Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug
2018-01-31 08:23:44 +01:00
Andrea Marchesini
e603e86601
Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 1 - BroadcastChannel, r=asuth
2017-10-24 12:02:39 +02:00
Andrea Marchesini
f59c3de953
Bug 1359017 - onmessageerror for BroadcastChannel in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug
2017-09-13 05:59:06 +02:00
Sebastian Hengst
92d408093a
Backed out changeset 354139a05e75 (bug 1359017)
2017-09-13 08:56:23 +02:00
Andrea Marchesini
f3bcbfa12b
Bug 1359017 - onmessageerror for BroadcastChannel in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug
2017-09-13 05:59:06 +02:00
Sebastian Hengst
db70a75d27
Backed out changeset 8936320bf355 (bug 1359017)
2017-09-12 14:16:42 +02:00
Andrea Marchesini
1f151318f4
Bug 1359017 - onmessageerror for BroadcastChannel in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug
2017-09-12 11:57:26 +02:00
Andrea Marchesini
1ee7d66ef2
Bug 1354599 - Use of DOMEventTargetHelper::KeepAliveIfHasListenersFor in BroadcastChannel, r=smaug
2017-04-18 13:51:59 +02:00
Andrea Marchesini
aac2306f2c
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
...
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book
47aeb86e2c
Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
...
--HG--
rename : dom/cache/CacheWorkerHolder.cpp => dom/cache/Feature.cpp
rename : dom/cache/CacheWorkerHolder.h => dom/cache/Feature.h
rename : dom/workers/WorkerHolder.h => dom/workers/WorkerFeature.h
extra : rebase_source : 49f9e9ce0500ac441fe97878cf9308804926544f
2016-06-23 10:13:54 +02:00
Andrea Marchesini
45087a7970
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
...
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-22 17:24:35 +02:00
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
James Andreou
7c273b3eb3
Bug 1276328 - Remove private browsing flags r=baku
...
--HG--
extra : rebase_source : e13f6b834ae22986776ca7cc3dd0cee3fc945992
2016-06-07 13:50:00 +02:00
Andrea Marchesini
f8c6086792
Bug 1278340 - BroadcastChannel should check for closed flag before dispatching events, r=smaug
2016-06-07 00:37:47 +02:00
Andrea Marchesini
55614d4c60
Bug 1266194 - Implement boolean or EventListenerOptions as 3rd param to addEventListener, r=smaug
2016-04-26 16:23:17 +08:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrea Marchesini
ba17d96287
Bug 1212842 - part 1 - BroadcastChannel should not remove the document from bfcache when not used, r=smaug
2015-10-13 12:04:17 +01:00
Bobby Holley
97b9240b34
Bug 1188696
- Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Andrea Marchesini
1181ff2812
Bug 1187371 - Get rid of dom.broadcastChannel.enabled pref, r=bz
2015-07-26 08:38:16 +01:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Andrea Marchesini
4ae7941574
Bug 1165270 - Use origin for BroadcastChannel, r=bholley
2015-07-06 19:28:41 +01:00
Andrea Marchesini
c72540ed84
Bug 1178261 - make BroadcastChannel CC skippable, r=smaug
2015-06-29 17:42:41 +01:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Andrea Marchesini
068dd5f8a6
Bug 1148032 - BroadcastChannel API should not bypass private browsing mode, r=ehsan
2015-04-01 12:41:29 +01:00
Wes Kocher
4f66d44d5b
Backed out changeset 6b886fbb3e48 (bug 1148032) for mochitest-chrome orange on b2g emulators
2015-03-31 15:48:25 -07:00
Andrea Marchesini
621d7068b8
Bug 1148032 - BroadcastChannel API should not bypass private browsing mode, r=ehsan
2015-03-31 22:11:47 +01:00
Wes Kocher
1a65d1c1e9
Backed out changeset 976f64497fbc (bug 1148032) for static analysis bustage
2015-03-31 14:07:07 -07:00
Andrea Marchesini
5a32df3d98
Bug 1148032 - BroadcastChannel API should not bypass private browsing mode, r=ehsan
2015-03-31 21:36:36 +01:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
dc24477d79
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Andrea Marchesini
6e60735e02
Bug 966439 - BroadcastChannel API - patch 9 - Fix a memory leak of Files, r=bent
...
* * *
Bug 966439 - BroadcastChannel API - patch 10 - explicit constructors are needed, CLOSED_TREE
2015-01-15 16:58:42 +00:00
Andrea Marchesini
607d815757
Bug 966439 - BroadcastChannel API - patch 8 - Async BC.close(), r=bent
2015-01-15 16:58:42 +00:00
Andrea Marchesini
698c8a4c6b
Bug 966439 - BroadcastChannel API - patch 7 - Blob supported, r=bent
2015-01-15 16:58:41 +00:00
Andrea Marchesini
24800de279
Bug 966439 - BroadcastChannel API - patch 6 - Support any kind of body messages, r=bent
2015-01-15 16:58:41 +00:00
Andrea Marchesini
e2ecdca8a9
Bug 966439 - BroadcastChannel API - patch 3 - API disabled by pref, r=smaug
2015-01-15 16:58:41 +00:00
Andrea Marchesini
fd3e403cda
Bug 966439 - BroadcastChannel API - patch 2 - close() method, r=smaug
2015-01-15 16:58:40 +00:00