Commit Graph

215 Commits

Author SHA1 Message Date
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Kit Cambridge
3cf5513966 Bug 1266821 - Remove PushPermissionDescriptor from the Permissions API. r=baku
MozReview-Commit-ID: 7BngZ6Lwpfu

--HG--
extra : rebase_source : 844c129d3cbaa016f44f3cc6aaa65d4202ca70e0
extra : histedit_source : b2aee5b9c8d8857ad5385255aab9092e7715d61c
2016-04-22 11:22:42 -07:00
Kit Cambridge
3ee90ac4e9 Bug 1261405 - Rename PushPermissionDescriptor.userVisible to userVisibleOnly. r=baku
MozReview-Commit-ID: AORVoEAR4uN

--HG--
extra : rebase_source : 81ee53bed449a272e7e04800b2769378470952cc
2016-04-07 13:54:44 -07:00
Boris Zbarsky
4a64ef833e Bug 1257725 part 2. Fix permissions code to not make unwarranted assumptions about what happens when you reject a promise with an ErrorResult while a permission is pending on an on-stack JSContext. r=baku 2016-03-23 11:02:57 -04:00
Marco Castelluccio
1dc9a8c882 Bug 1197461 - Tests for Permissions.revoke. r=poiru,baku 2016-03-02 21:09:56 +00:00
Marco Castelluccio
991a1d63b2 Bug 1197461 - e10s support for Permissions.revoke. r=poiru 2016-03-02 21:09:48 +00:00
Marco Castelluccio
ff693ea459 Bug 1197461 - Implement Permissions.revoke. r=poiru,baku 2016-03-02 21:09:38 +00:00
J. Ryan Stinnett
2a55d065b7 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Sebastian Hengst
52418f89a7 Backed out 2 changesets (bug 1197461) for various test failures. r=backout on a CLOSED TREE
Backed out changeset d776c61906c1 (bug 1197461)
Backed out changeset c046a81ab5a3 (bug 1197461)
2016-02-15 19:38:11 +01:00
Marco Castelluccio
405b900180 Bug 1197461 - Tests for Permissions.revoke. r=poiru,baku 2016-02-09 17:46:36 +00:00
Marco Castelluccio
b9391900e0 Bug 1197461 - Implement Permissions.revoke. r=poiru,baku 2016-02-09 17:46:23 +00:00
Myk Melez
a6aff185d2 Bug 1238576 - disable mozApps API on desktop/Android; r=ehsan,ochameau,bz,mcmanus,jmaher,marco 2016-02-08 11:24:22 -08:00
Birunthan Mohanathas
bf5e6b94d0 Bug 1233702 - Remove dom.permissions.enabled pref. r=baku 2016-02-03 18:21:31 +02:00
John Shih
d212525a4c Bug 993311 - Convert Network Stats API to WebIDL. r=bzbarsky.
--HG--
extra : rebase_source : c2523e634288c95213f44a789e6d46bfd40b8681
2014-04-08 14:42:12 +08:00
Kyle Huey
91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Andrew McCreight
92df033f69 Bug 1239749 - Remove extra space from PermissionSettings.js debug message. r=gwagner 2016-01-14 10:02:00 -05:00
Birunthan Mohanathas
e84dd12876 Bug 1221104 - Throw NS_ERROR_NOT_IMPLEMENTED instead of NS_ERROR_UNEXPECTED for PushPermissionDescriptor.userVisible. r=baku
This is merely for clarity. The spec does not require a TypeError to be thrown here.
2015-12-18 15:02:50 +02:00
Birunthan Mohanathas
67d3279e83 Bug 1221104 - Revoke 'midi' permission queries with TypeError. r=baku
According to the spec, we should reject unsupported permissions with a
TypeError. This removes the 'midi' entry entirely so that we get the expected
behaviour.
2015-12-18 15:02:50 +02:00
Gregor Wagner
96837db759 Bug 1222478 - Enable more mulet tests. r=gerard-majax 2015-11-06 20:01:45 +01: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
Stephanie Ouillon
ca377ad7db Bug 1201626 - Remove reference to kind attribute to calls to isExplicitInPermissionsTable(). r=fabrice 2015-10-12 14:20:00 +02:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Kit Cambridge
74ef03c1a6 Bug 1192458, Part 1 - Consolidate push and desktop notification permissions. r=nsm,wchen,MattN
--HG--
extra : commitid : 1veevVaOOYv
2015-10-05 16:39:34 -07:00
Stephanie Ouillon
5e14a3b3a8 Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages r=bholley,fabrice,valentin 2015-08-26 13:12:13 +02:00
Carsten "Tomcat" Book
64c0a617b7 Backed out 1 changesets (bug 1178533) for xpcshell-1 test failures
Backed out changeset b12584fad334 (bug 1178533)
2015-09-24 08:41:04 +02:00
Stephanie Ouillon
478b31c634 Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages. r=bholley, r=fabrice, r=valentin 2015-09-23 07:41:00 +02:00
Carsten "Tomcat" Book
58878018ac Backed out 1 changesets (bug 1178533) for s4 testfailures
Backed out changeset 8bbdb80f67e0 (bug 1178533)

--HG--
extra : rebase_source : 040491f382ad7b03ba803686601f1272416ab47d
2015-09-23 10:17:54 +02:00
Chris Peterson
71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Stephanie Ouillon
ad9e2b8a95 Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages. r=bholley, r=fabrice, r=valentin 2015-09-22 11:55:00 +02:00
Josh Matthews
6d8316690f Bug 885982 - Part 1: Convert TCPSocket to WebIDL and rewrite in C++. r=asuth,mayhemer,bz 2015-03-25 10:35:59 -04:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Yoshi Huang
4347bb2318 Bug 1165272 - Part 1: remove getAppCodebasePrincipal. r=bholley 2015-08-17 17:03:19 +08:00
Bobby Holley
edfe287f26 Backed out 3 changesets (bug 1165272) for b2g sanity blocker. 2015-08-25 11:16:21 -07:00
Yoshi Huang
12efacfa8c Bug 1165272 - Part 1: Remove getAppCodebasePrincipal. r=bholley 2015-08-24 01:31:00 -04:00
Birunthan Mohanathas
bfc1b00a28 Bug 1105827 - Add test for invalid query. r=me 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas
e53e26f42e Bug 1105827 - Part 11: Use nsRefPtr to store PermissionStatus. r=baku 2015-07-31 14:56:59 -07:00
Birunthan Mohanathas
e08489fa66 Bug 1105827 - Part 10: Fire change event for PermissionStatus objects. r=baku 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas
4e546017c9 Bug 1105827 - Part 9: Add PermissionObserver to watch for perm-changed notifications. r=baku 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas
9b37a607e3 Bug 1105827 - Part 8: Move permission checking into PermissionStatus. r=baku 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas
1d9d861e76 Bug 1105827 - Part 7: Add helpers to convert between PermissionName and permission type. r=baku 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas
b791230538 Bug 1105827 - Part 6: Add PermissionUtils.h for helper functions. r=baku 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas
9067fe58d8 Backed out changeset 1e13c9c09273 (bug 1105827)
CLOSED TREE
2015-08-11 10:04:36 -07:00
Birunthan Mohanathas
e0592c3416 Backed out changeset 92d2843b5938 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas
02595ce842 Backed out changeset fc34b9b8e874 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas
8eab0f2e68 Backed out changeset 7ee1772ffc10 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas
af382947b1 Backed out changeset b78a97800675 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas
39a3ef841c Bug 1105827 - Part 10: Fire change event for PermissionStatus objects. r=baku 2015-07-31 15:57:02 -07:00