ipc/ipdl/msgtype-components
author Kate McKinley <kmckinley@mozilla.com>
Wed, 28 Oct 2015 16:32:27 -0700
changeset 307536 14818a2329a4846757098689aa0ef880ce8aee15
parent 98983 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 510125 0bb1f2417265f9c9fbcf1a07f553ea08ad7308d5
permissions -rw-r--r--
Bug 1045891 - CSP 2 child-src implementation. r=ckerschb

#!/usr/bin/python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


import sys

msgid = int(sys.argv[1])
protocol = (msgid >> 16)
msg = (msgid - (protocol << 16))

print 'protocol', protocol, 'message', msg