Commit Graph

8335 Commits

Author SHA1 Message Date
Peter Van der Beken
486198a6d8 Fix for bug 785188 (Make Xrays work with newest DOM list bindings). r=mrbkap. 2012-06-06 21:52:26 +02:00
Boris Zbarsky
268aef67fb Bug 784809. Allow null for the repeat argument of canvas createPattern. r=peterv 2012-08-23 12:23:23 -07:00
Luke Wagner
ce71e55555 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Luke Wagner
48412c861d Bug 625199 - kill dummy frames (r=mrbkap)
--HG--
extra : rebase_source : df4e3bddabf20cdc5b9122370fa62b40e64177c7
2012-08-17 18:05:06 -07:00
Rafael Ávila de Espíndola
bece7221d8 Bug 784895 - Remove unnecessary token pasting. r=mrbkap. 2012-08-23 19:57:51 -04:00
Ryan VanderMeulen
6a130b0407 Merge m-c to inbound. 2012-08-23 19:50:46 -04:00
Bobby Holley
60eca7f85c Bug 771354 - Don't special-case principal assignment for chrome windows in nsGlobalWindow.cpp. r=bz 2012-08-23 16:44:53 -07:00
Bobby Holley
63dfef11f8 Bug 774607 - Remove use of JS_{Is,Make}SystemObject from Gecko. r=bz
We currently set this for system globals and anything whose parent
chain leads to a system global. Maybe this was relevant before, but
with CPG this is just equivalent to asking whether the object is in
a system compartment. And the only place where we _check_ this bit
is immediately after checking for a system compartment, in
WrapperFactory. So AFAICT this can go away entirely.
2012-08-23 16:44:53 -07:00
Bobby Holley
b27acb570c Bug 774633 - Assert against switching origins on a compartment. r=jst 2012-08-23 16:44:53 -07:00
Bobby Holley
4e701ac456 Bug 774633 - Remove "is chrome window" condition for inner window reuse. r=jst
WouldReuseInnerWindow also returns true if the new window is same-origin with
the old one about:blank document.

This condition exists in order to handle some sloppiness with respect to the
principals on initial about:blank documents. Chrome callers sometimes parent
chrome windows (with XUL document) to content windows. But this parenting causes
us to push the cx of the content window during window creation, meaning that
the subsequent load of chrome://foo.xul blows away the old inner window and any
expandos on it. We can handle this case more precisely by skipping the cx push
for type="chrome" windows.

Furthermore, this was also necessary to prevent the inner window from being
blown away in the call to SetOpenerScriptPrincipal once nsWindowWatcher gets
the window back from the window creator (and after it's already told consumers
about the window via "domwindowcreated"). But we fixed this nastiness in the
previous patches.

So we can remove this case. By doing so, we can prevent inner windows from ever
changing origins, which is very important for compartment security invariants.
2012-08-23 16:44:53 -07:00
Bobby Holley
0bf2885067 Bug 774633 - Fold SetOpenerScriptPrincipal into SetInitialPrincipalToSubject, and make it indempotent and callable without an existing document. r=jst
There's no reason it has to fail if there's no mDoc, since any document is promptly
blown away with the new about:blank document.

The indempotence is important because we want to be able to call this method
unconditionally in OpenJSWindowInternal (since we may not have gone through
RegisterTopLevelWindow) without worrying about whether we've called it already.
2012-08-23 16:44:52 -07:00
Bobby Holley
875a633f4f Bug 774633 - Remove dead mOpenerScriptPrincipal. r=jst
This value is initialized to null and never set, so we can get rid of it.
2012-08-23 16:44:52 -07:00
Bobby Holley
efd432c75a Bug 774633 - Wean SetInitialPrincipalToSubject off some parameters and clean it up. r=jst
We can remove the fallback to the principal of aParent because we already push the
cx for aParent (callerContextGuard) whenever we're concerned about using its principal.
2012-08-23 16:44:52 -07:00
Bobby Holley
6e122ec16c Bug 774633 - Factor nsWindowWatcher call to SetOpenerScriptPrincipal into a method on nsGlobalWindow. r=jst
This doesn't change any functionality in the code. Note that the name is currently
a bit of a misnomer, but we change that in the next patch when we rip out the
arguments.
2012-08-23 16:44:52 -07:00
Kyle Machulis
684686bee5 Bug 779378: B2G Voicemail: Hook up to permissions manager; r=gwagner 2012-08-23 16:31:02 -07:00
Matt Brubeck
f6e99e646b Back out b88ccf7bd3e3 for Linux test_canvas.html failures on a CLOSED TREE 2012-08-23 14:08:42 -07:00
Ben Turner
2e0265c8ef Bug 784726 - 'Remove old IPC::URI'. r=cjones+khuey.
--HG--
rename : ipc/glue/IPCSerializableParams.ipdlh => ipc/glue/InputStreamParams.ipdlh
extra : transplant_source : %A6%BC%8B%8D%3A_%7Df%2B%FE%AA%94%81%AB%CAW%15K%A7%03
2012-08-23 12:33:46 -07:00
Boris Zbarsky
0a47f4e83c Bug 784809. Allow null for the repeat argument of canvas createPattern. r=peterv 2012-08-23 12:23:23 -07:00
Mounir Lamouri
9d6c98efec Bug 756645 - Implement IndexedDB apps isolation. r=bent 2012-08-23 11:45:01 -07:00
Mounir Lamouri
9963397515 Bug 777072 - 5/7 - Update IPC::Permission to use appId/isInBrowserElement. r=sicking 2012-08-23 11:38:01 -07:00
Mounir Lamouri
49bd52f0f6 Bug 777072 - 3/7 - Update nsHostTable and nsHostEntry to make them aware of new security model. r=sicking,jlebar 2012-08-23 11:47:55 -07:00
Mounir Lamouri
80c28690ad Bug 777072 - 2/7 - AddInternal() and CommonTestPermission() should use nsIPrincipal. r=sicking 2012-08-23 11:36:28 -07:00
Mounir Lamouri
a56f63ad0a Bug 785161 - Stop uninstalling all installed apps in WebApps tests. r=jlebar 2012-08-23 11:46:38 -07:00
Kyle Machulis
8a2582aad8 Backout of f98bea38e654 due to mochi bustage 2012-08-23 12:01:27 -07:00
Kyle Machulis
255406cbe7 Backout of c129811b87ef due to mochi bustage 2012-08-23 12:00:51 -07:00
Fabrice Desré
4c0811ee06 Bug 784678 - Error when calling postCancel and postSuccess in an activity : followup [r=mrbkap] 2012-08-23 11:56:36 -07:00
Gregor Wagner
0f68b8d609 Bug 785147 - Contacts API: fix import contacts from SIM card. r=fabrice 2012-08-23 11:48:33 -07:00
Kyle Machulis
1485cd59c9 Bug 783426: Patch 2 - Async DOMRequest Firing Tests; r=sicking 2012-08-23 09:52:54 -07:00
Kyle Machulis
87763f254a Bug 783426: Patch 1 - Async DOMRequest Firing; r=sicking 2012-08-23 09:52:29 -07:00
Peter Van der Beken
ec7ce6d4f0 Fix for bug 775543 (Passing a Worker object to console.log() results in a crash). r=bz.
--HG--
extra : rebase_source : 60ee731af1e77c21f466026a04c71eeb96b1ff7d
2012-08-22 18:16:14 -07:00
Justin Lebar
44c2b316f2 Bug 784436 - Part 2: Use new infallible nsIDocShell methods. r=bz 2012-08-22 18:27:04 -07:00
Fabrice Desré
0de1c9acd9 Bug 784678 - Error when calling postCancel and postSuccess in an activity [r=gwagner] 2012-08-22 18:20:09 -07:00
Kyle Machulis
7eb2fcd355 Backout be6da7f8989c due to bustage 2012-08-22 18:11:52 -07:00
Kyle Machulis
854a04a0f2 Backout 81fc1a3fc920 due to bustage 2012-08-22 18:11:24 -07:00
Kyle Machulis
b836bcf93f Bug 783426: Patch 2 - Tests for Async DOMRequest Firing; r=sicking 2012-08-22 18:04:01 -07:00
Kyle Machulis
5357f4784c Bug 783426: Patch 1 - Async DOMRequest Firing; r=sicking 2012-08-22 18:03:43 -07:00
Kyle Machulis
7751fd98d3 Backing out df43ad6d04c1 due to incorrect commit messages 2012-08-22 18:02:36 -07:00
Kyle Machulis
b29f5f6001 Backing out 542abbd15139 due to incorrect commit messages 2012-08-22 18:00:57 -07:00
Kyle Machulis
428ec0171b Bug 783426: Patch 2 - Tests for Async DOMRequest Firing 2012-08-22 17:58:05 -07:00
Kyle Machulis
2b37cadee3 Bug 783426: Patch 1 - Async DOMRequest Firing 2012-08-22 17:57:50 -07:00
Ehsan Akhgari
da56516b3c Bug 579517 follow-up: Remove NSPR types that crept in 2012-08-23 11:30:56 -04:00
Rafael Ávila de Espíndola
e3ab16964a Bug 784889 - Use nullptr in a function that returns a pointer. r=ms2ger. 2012-08-23 09:56:10 -04:00
Chris Jones
93b1805471 Bug 762221: Enable font hinting for "app" processes. r=jfkthame,jlebar 2012-08-23 11:23:43 +01:00
KO Myung-Hun
51dedabac3 Bug 773958 - Define NP_CALLBACK as NP_LOADDS for a calling convention consistency. r=josh 2012-08-23 06:18:45 -04:00
Ed Morley
87eb600689 Backout 06f6eede6b77 (bug 762221) for crashes 2012-08-23 10:27:56 +01:00
Chris Jones
c9e6d0cefc Bug 762221: Enable font hinting for "app" processes. r=jfkthame,jlebar 2012-08-23 01:22:19 -07:00
Cervantes Yu
9791d38ee6 Bug 779358 - Fix mousemove event handled twice in content panning, r=cjones 2012-08-21 20:30:34 +08:00
Gina Yeh
db0d9763f3 Bug 783934 - Final Version: Add events onconnected and ondisconnected in BluetoothDevice, r=qdot, sr=mrbkap 2012-08-23 14:14:20 +08:00
Peter Van der Beken
854457d901 Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky.
--HG--
extra : rebase_source : 651a0fac4c9a87ef1c0a9cd91588c6421fd050c4
2012-05-22 15:46:20 +02:00
Gregor Wagner
5693353aa9 Bug 784746 - Contacts API: optimize debug statements. r=bent 2012-08-22 14:34:57 -07:00