Commit Graph

169 Commits

Author SHA1 Message Date
Steve Fink
5a483a53e6 Bug 925916 - Revert computThis() to thisv(). r=bz
--HG--
extra : rebase_source : 9de03d5a7c8867f92984eee80a185ca3f3c0f764
2013-10-21 10:52:22 -07:00
Steve Fink
123565e1c6 Bug 925916 - Random minor code cleanups, r=smaug 2013-10-15 15:34:13 -07:00
Steve Fink
76e5f386d2 Bug 925916 - Add some handles to dom/bindings, r=bz
--HG--
extra : rebase_source : 2443d2b988dea432c4961e8b042b0288e1dc7016
2013-10-11 22:02:39 -07:00
Bobby Holley
77b2db9b9b Bug 922009 - MOZ_CRASH when trying to transplant objects with SCSWs. r=mrbkap 2013-10-17 10:00:02 +02:00
Tom Schuster
a513788fdb Bug 8844105 - Handlify JS_WrapObject. r=terrence 2013-10-15 20:02:23 -04:00
Boris Zbarsky
00e9ca7625 Bug 923010. When rethrowing exceptions from JS-implemented components to content script, make sure to give them a useful filename and line number, pointing to the content script location that triggered the exception. r=peterv 2013-10-03 08:34:47 -04:00
Andrew McCreight
e6a955ab27 Bug 920840 - Crash when JS-implemented WebIDL's init method returns a value other than undefined. r=bz 2013-09-26 16:46:42 -07:00
Boris Zbarsky
51daf6d4ad Bug 921553. Fix some binding rooting hazards that have popped up. r=peterv 2013-09-30 10:29:10 -04:00
Ryan VanderMeulen
66d481fff9 Backed out changeset 6d0b41d53c32 (bug 920840) for B2G mochitest-3 timeouts.
CLOSED TREE
2013-09-27 18:00:59 -04:00
Andrew McCreight
232783c6e4 Bug 920840 - Crash when JS-implemented WebIDL's init method returns a value other than undefined. r=bz 2013-09-26 16:46:42 -07:00
Andy Wingo
22c73af975 Bug 920433 - Improve API support for self-hosted functions. r=till, r=bz 2013-09-26 10:11:38 -04:00
Boris Zbarsky
191073b8c9 Bug 919603 part 2. Change this-handling in codegen to only do the special global object stuff on interfaces where it might matter. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky
1f4ea61007 Bug 920125. getOwnPropertyDescriptor on Xrays for DOM interface and prototype objects should actually work. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky
a041761e19 Bug 905493. Fix setting document.location via an Xray to not enter the content compartment. r=peterv 2013-09-25 14:38:29 -04:00
Ryan VanderMeulen
72c8f599cd Backed out 5 changesets (bug 905493, bug 920125, bug 919603) for mochitest orange on a CLOSED TREE.
Backed out changeset ccef656b2973 (bug 919603)
Backed out changeset 4b29ce0b2fff (bug 919603)
Backed out changeset b0a051ec55b7 (bug 919603)
Backed out changeset baa9a774aad1 (bug 920125)
Backed out changeset e03276bf4eaa (bug 905493)
2013-09-25 18:22:33 -04:00
Boris Zbarsky
6201a817fb Bug 919603 part 2. Change this-handling in codegen to only do the special global object stuff on interfaces where it might matter. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky
9aecf1e30c Bug 920125. getOwnPropertyDescriptor on Xrays for DOM interface and prototype objects should actually work. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky
9ed67107a4 Bug 905493. Fix setting document.location via an Xray to not enter the content compartment. r=peterv 2013-09-25 14:38:29 -04:00
Jon Coppeard
38b602931b Bug 917798 - Handlify JS exception APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Terrence Cole
b25c74c014 Bug 916993 - Handlify the public JSString APIs; r=bz,jonco
--HG--
extra : rebase_source : 35c5d7832d794ce37be622db3140309d2605c212
2013-09-16 18:33:40 -07:00
Dan Gohman
8b7074b6dc Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Olli Pettay
f805ec81b0 Bug 910910 - Enable Event ctors in workers, r=khuey
--HG--
extra : rebase_source : 983d01d13aa66a8499350a4960b5913b22c9783a
2013-09-10 21:27:32 +03:00
Nikhil Marathe
f10d854d1c Bug 901291 - Get WebIDL callbacks working on Workers. r=khuey 2013-09-09 14:58:29 -07:00
Kyle Huey
27e346e22d Bug 911258: Part 5 - Use the unified exception handling mechanism on workers. r=bz 2013-09-08 20:29:21 -07:00
Peter Van der Beken
dcf5712030 Bug 905392 - Need way to throw web-console-visible exception-message from JS-implemented webidl object. r=bz. 2013-09-03 14:01:53 +02:00
Boris Zbarsky
a912d1fc13 Bug 908576 part 3. Get rid of PrototypeIDMap structs. r=smaug 2013-08-23 22:42:41 -04:00
Kyle Huey
de0ee30e74 Bug 903772: Part 3 - Refactor GlobalObject. r=peterv 2013-08-22 22:17:08 -07:00
Ms2ger
8bfa279bb1 Merge m-c to inbound 2013-08-22 10:38:48 +02:00
Ms2ger
ce99c00e31 Bug 903778 - Move dom::Date into its own files; r=khuey 2013-08-22 08:30:38 +02:00
Nicholas Nethercote
42ccf38dcd Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Ms2ger
df8525f77d Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar 2013-08-14 08:56:21 +02:00
Jon Coppeard
11678aa48c Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug 2013-08-12 12:09:14 +01:00
Peter Van der Beken
3256529063 Bug 895758. Make the global scope polluter a proxy. r=bzbarsky 2013-07-09 10:45:13 -04:00
Terrence Cole
61b15c2fbb Bug 862115 - Use Rooted<JSPropertyDescriptor> in favor of JSPropertyDescriptor::AutoRooter r=terrence r=smaug r=bholley 2013-04-30 10:29:40 -07:00
Nicholas Nethercote
b756f6b258 Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Boris Zbarsky
3c09e9975f Bug 897913 part 2. Allow touching interface objects via an Xray even if the page they're in can't touch them. r=bholley,smaug 2013-08-07 17:40:00 -04:00
Nicholas Nethercote
ba723f1034 Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Bill McCloskey
4c6e8822a8 Bug 899804 - Make CPOWs handle instanceof with WebIDL interfaces (r=bz,dvander) 2013-08-01 16:45:17 -07:00
Tom Schuster
0b021a6fa2 Bug 884410 - Handlify JS_GetPrototype. r=terrence 2013-07-31 12:20:33 -04:00
Ehsan Akhgari
5ee21d6d3f Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Jon Coppeard
8278efd42a Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
8c89deb65b Backed out changeset ae8d72538dee (bug 897484) for b2g bustage 2013-07-26 12:34:25 +02:00
Jon Coppeard
fc9b509d4f Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Jon Coppeard
c561caee58 Bug 888338 - 6 - more browser post barriers r=mccr8 2013-07-23 10:58:27 +01:00
Nicholas Nethercote
40833186f3 Bug 887558 (part 1) - Introduce ProxyObject and some sub-classes. r=jorendorff.
--HG--
extra : rebase_source : 33ed2aff35acbe4de8891a9fb34c60e7a314d9c8
2013-06-20 21:27:28 -07:00
Kyle Huey
49b422d01c Bug 885866: Separate deferred finalization from XPConnect so we can use it off the main thread. r=mccr8, peterv, bsmedberg, jorendorff 2013-07-09 07:28:15 -07:00
Ehsan Akhgari
8b46075683 Bug 889016 - Part 1: Add an API to report a not-enough-arguments error in Web IDL bindings; r=bzbarsky 2013-07-04 09:24:49 -04:00
Ms2ger
2dcf517a55 Bug 888579 - Remove some code that handled WN Nodes; r=bholley 2013-07-01 09:14:36 +02:00
Ms2ger
ff63d2149b Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug 2013-06-23 09:15:42 +02:00
Jon Coppeard
4b40ce1453 Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz 2013-06-21 14:12:46 +01:00