Commit Graph

63 Commits

Author SHA1 Message Date
Andrea Marchesini
a87ad490c6 Bug 1037715 - Implement .searchParams on Location, r=bz, r=ehsan 2014-08-07 17:45:21 -07:00
David Zbarsky
21dba40d04 Bug 1044305: Remove Location classinfo r=bz 2014-07-26 13:28:48 -04:00
Boris Zbarsky
618671a12c Bug 832014 part 8. Switch Location to WebIDL bindings. r=peterv,bholley 2014-07-11 19:32:46 -04:00
Boris Zbarsky
8b6f6f643e Bug 832014 part 5. Add WebIDL API to nsLocation. r=peterv,bholley 2014-07-11 19:31:46 -04:00
Trevor Saunders
78966cf36b bug 966059 - add nsIDocShell::GetWindow and GetDocument r=smaug 2014-01-09 21:03:47 -05:00
Nick Lebedev
c49e263d0f Bug 998002 - Rename nsContentUtils::Get{Subject,Object}Principal to nsContentUtils::{Subject,Object}Principal. r=bholley 2014-05-13 11:58:00 +02:00
Bobby Holley
9c988d6c40 Bug 997987 - Remove nsIScriptSecurityManager::GetCxSubjectPrincipal. r=Ms2ger 2014-05-06 15:43:02 -07:00
Bob Owen
6ff37ba8dc Bug 986439 - Don't use nsNullPrincipalURI for referrer. r=bz 2014-03-29 19:10:27 +00:00
Kyle Huey
fe6c4e28d6 Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg 2014-03-15 12:00:15 -07:00
Bobby Holley
dd83e5257f Bug 973401 - Handle null from GetURI. r=smaug 2014-02-19 18:23:48 -08:00
Bobby Holley
02b3bf5876 Bug 956382 - Consider document.domain when doing Location security checks. r=mrbkap 2014-02-13 18:57:35 -08:00
Bob Owen
bcb32b4d36 Bug 944363 - Change functions that call SetURI in nsLocation to propagate return values. r=bholley 2014-01-14 08:54:58 +00:00
Bob Owen
1a5046cc2f Bug 785310 - HTML5 sandboxed iframe should not be able to perform top navigation when scripts are allowed. r=bholley, r=smaug 2014-01-13 07:58:16 +00:00
Ehsan Akhgari
2e67154d02 Merge m-c into inbound 2014-01-04 12:14:57 -05:00
Ehsan Akhgari
1b83407ce9 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Bobby Holley
578b352a21 Bug 887928 - document.referrer should be based on the incument script settings object. r=bz 2014-01-03 14:37:17 -08:00
Andrea Marchesini
9c751db030 Bug 930450 - Setting port to the empty string should set URL's port to "0", r=ehsan 2013-12-05 21:05:51 +00:00
Ehsan Akhgari
99058b577c Bug 905353 - Minimize the #includes in dom/base; r=jst
--HG--
extra : rebase_source : e7a1d2262bf6d8c9b78057b8eb6cdbfd98262f68
2013-08-15 14:17:48 -04:00
David Zbarsky
f6f620d05f Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Bobby Holley
7e45dcce35 Bug 865729 - Remove nsIJSContextStack from dom/foo. r=gabor 2013-04-29 11:16:18 -07:00
David Zbarsky
720289e06b Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
Olli Pettay
1defaa48e6 Bug 825544: backout Bug 825544, Bug 825544, Bug 765192 and Bug 808035 to bring back the old .location=val behavior, r=bz 2013-01-15 13:46:35 +02:00
Mike West
e4b50cc11c Bug 828261: Implement 'window.location.origin'. r=bholley, sr=sicking 2013-01-09 17:37:25 +01:00
Bobby Holley
bcd798914e Bug 809290 - Fix nsLocation::CheckURL. r=bz 2012-11-08 08:26:49 -08:00
Bobby Holley
a209826b20 Bug 808611 - Move valueOf to nsIDOMLocation. r=mrbkap 2012-11-07 08:27:23 -08:00
Bobby Holley
9213a086b6 Bug 808612 - Wrapper cache and cycle collect nsLocation. r=smaug 2012-11-06 14:29:09 -08:00
Jacek Szpot
761b11160f Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Bobby Holley
1847a73fea Bug 747607 - Remove GetContextFromStack. r=bz 2012-10-19 23:26:17 +02:00
Bobby Holley
fdb9000352 Bug 747607 - Don't throw when we fail to find a source document. r=bz 2012-10-19 23:26:17 +02:00
Bobby Holley
dbc1d55ec8 Bug 801305 - Use the bonafide subject for the loadinfo owner. r=bz 2012-10-19 01:45:09 +02:00
Bobby Holley
3de9006dfd Bug 802557 - Do more direct comparisons with the outer window. r=bz 2012-10-19 01:37:14 +02:00
Bobby Holley
e799cc3495 Bug 801241 - Properly handle |false| return false from JS_DescribeScriptedCaller. r=bz 2012-10-17 19:44:30 +02:00
Oonishi Atsushi
44213f6f12 Bug 754029 - Navigating from a new script tag does not add a session history entry. r=smaug, r=bz 2012-10-13 13:20:55 -04:00
Trevor Saunders
000b6e89a1 bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
Bobby Holley
b66264251d Bug 797204 - Use JS_GetScriptedCaller instead of JSStackFrames in nsLocation. r=bz 2012-10-10 11:01:26 +02:00
Bobby Holley
7ec98ae224 Bug 797204 - Compare the document URI to the document principal, not the subject principal. r=bz
Per an IRC discussion with jlebar, this is what we're actually intending to
do here. Justin's original reasoning for this check is in bug 593174 comment 25.
2012-10-10 11:01:26 +02:00
Randell Jesup
65539ef89c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Luke Wagner
ad90af9ca5 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Ehsan Akhgari
e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

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 "*.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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
4e199a1679 Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Aryeh Gregor
d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Matt Brubeck
2c56bfa56b Back out 551b6acdafb9 and ae0b0dd6dfa2 (bug 754029) on suspicion of causing mochitest-other timeouts 2012-07-27 17:03:23 -07:00
Oonishi Atsushi
0fe829b2cd Bug 754029 - Navigating from a new script tag does not add a session history entry. r=smaug 2012-07-27 17:51:52 -04:00
Olli Pettay
bcf8849a2f Bug 770429, do uri load check earlier to avoid running code unnecessarily, r=mrbkap
--HG--
extra : rebase_source : f28bd4edb4c055f5674923ffb82bae20bc502dd2
2012-07-19 10:43:33 +03:00
David Zbarsky
d2ee12f6f9 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ehsan Akhgari
92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Luke Wagner
7afec73791 Bug 632064 - remove JS_GetScopeChain (r=mrbkap)
--HG--
extra : rebase_source : dcaab70f180d23ad3e9cd12c2d84d326b012fbb2
2011-09-28 17:57:27 -07:00
Peter Van der Beken
9fe2ac6cc5 Stop including nsDOMClassInfo.h all over the place.
--HG--
extra : rebase_source : 24bd6a84238834f8ca50990a91849dff2c5040ba
2011-10-03 21:11:31 +02:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00