Commit Graph

6962 Commits

Author SHA1 Message Date
Nikhil Marathe
8b0d2b2ce4 Bug 1143857 - Add FormData serialize support to Fetch API. r=ehsan 2015-03-17 08:32:04 -07:00
Tooru Fujisawa
8eab6f064e Bug 1141455 - Do not treat an element with tabindex as an interactive content in label. r=smaug 2015-03-18 05:42:14 +09:00
Ryan VanderMeulen
a4fe1a181c Merge m-c to inbound. a=merge
CLOSED TREE
2015-03-17 14:28:42 -04:00
Ryan VanderMeulen
61149e5ecc Merge b2g-inbound to m-c. a=merge
CLOSED TREE
2015-03-17 14:22:40 -04:00
Daniel Holbert
2c24121797 Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Nikhil Marathe
3ffd94ea37 Bug 739173 - Support FormData in workers. r=khuey,baku 2015-01-27 15:16:21 -08:00
Nikhil Marathe
6c963623ba Bug 1127150 - Use File's name instead of explicit file name in form submission related classes. r=baku
Our nsFormSubmission and subclasses accepted a third filename argument to
explicitly specify the filename. Since switching from nsIDOMBlob to File in Bug
1085283, we can read out the filename directly from the File. This simplifies
the code, but introduces a change in the way Firefox submits form data to
servers.

Consider the code:
var fd = new FormData();
fd.append("blob1", new Blob(["hi"]), ""); // explicit empty filename as third arg
fd.append("file1", new File(["hi"], "")); // File's name is empty, no third arg.
xhr.send(fd);

Previously, the request body had filename="" in the first case, and filename="blob" in the second.
This patch will change it to both cases result in filename=""

This behaviour isn't exactly specced anywhere, nor in the HTML spec [1], nor in
RFC 2388. In addition Blink (at least Chromium v40) has the same behaviour
introduced by this patch. So shipping it seems ok to me.

[1]: http://www.w3.org/html/wg/drafts/html/master/semantics.html#multipart/form-data-encoding-algorithm
2015-02-21 11:54:44 -08:00
Botond Ballo
b7b1daa972 Bug 1139675 - Simplify the APIs for getting and setting the pres shell resolution. r=mstange,mattwoodrow 2015-03-06 18:07:59 -05:00
Blake Kaplan
6ff11e9604 Bug 1112040 - Report invalid regular expressions to the console. r=bholley 2015-03-16 08:39:46 -07:00
Albert Crespell
5cb6d620a6 Bug 1139425 - Service Worker Client id should return a DOMString uuid. r=baku 2015-03-13 07:15:25 +01:00
Jeff Lu
f4aadcd9a9 Bug 1098415 - Skip DNS prefetch requests that point to local resources. r=sworkman r=dragana 2015-03-12 09:00:00 +01:00
Cameron McCormack
a96d456d1d Bug 1123523 - Followup build fix. (CLOSED TREE) 2015-03-14 16:55:37 +11:00
Cameron McCormack
1059a43375 Bug 1123523 - Part 7: Add utility functions to notify registered nsIAnimationObservers. r=smaug 2015-03-14 16:34:40 +11:00
Cameron McCormack
6c21224a8d Bug 1123523 - Part 6: Listen for nsIAnimationObserver notifications and translate them to MutationObserver notifications. r=smaug 2015-03-14 16:34:40 +11:00
Cameron McCormack
4c6ede90a2 Bug 1123523 - Part 5: Record on a document whether it might have any nsIAnimationObservers registered. r=smaug 2015-03-14 16:34:40 +11:00
Cameron McCormack
f984425c1b Bug 1123523 - Part 3: Store a flag on AnimationPlayer for whether it is exposed by Element.getAnimationPlayers(). r=birtles 2015-03-14 16:34:40 +11:00
Cameron McCormack
af083b5de5 Bug 1123523 - Part 2: Add an "animations" option for MutationObservers and expose chrome-only animation members on MutationRecords. r=smaug 2015-03-14 16:34:40 +11:00
Cameron McCormack
a41c2756e5 Bug 1123523 - Part 1: Add an nsIAnimationObserver interface to watch adding/changing/removing AnimationPlayer objects. r=smaug 2015-03-14 16:34:40 +11:00
Ryan VanderMeulen
a12c6d2dfc Backed out changesets f63a2cf3fa11 and 7d9a91ee3d48 (bug 1126089) for mochitest-bc failures. 2015-03-13 13:42:57 -04:00
Bill McCloskey
12af381a9e Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-13 08:24:20 -07:00
Bill McCloskey
9f9ecf4e04 Bug 1126089 - Add test for pageload event on browser element when tab closed (r=smaug) 2015-03-13 08:24:14 -07:00
Jason Orendorff
3c188fc686 Bug 1133081, part 5 - Remove non-asserting PropertyDescriptor accessors in favor of the new PropDesc-inspired asserting accessors. r=efaust.
value() can't assert hasValue() because too many places have plausible reasons for calling it on a PropertyDescriptor they basically know nothing about. One such place is CompartmentChecker::check(Handle<JSPropertyDescriptor>). Another is DefinePropertyByDescriptor. Maybe this will change with time.

In some cases we do things like `desc.hasWritable() && desc.writable() != existing_desc.writable()`. It is OK to write it this way, even though we have not checked existing_desc.hasWritable(), because in these cases we already know existingDesc is a complete property descriptor.
2015-02-15 06:18:30 -06:00
Boris Zbarsky
f93ad8e329 Bug 1142478 followup. Fix bogus test, and don't get the value of an invalid CheckedInt. Then we can reopen the CLOSED TREE. 2015-03-12 22:59:00 -04:00
Boris Zbarsky
e9ab0b6864 Bug 1142478. Fix integer attribute parsing to not lose track of leading zeroes. r=sicking 2015-03-12 21:46:57 -04:00
Jonathan Griffin
84011a87cc Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Markus Stange
02b07f6efa Bug 1142211 - Add layerization testing mechanisms to reftest. r=roc
This adds support for class="reftest-opaque-layer" and for
reftest-assigned-layer="some-layer-name" to the reftest harness.

From reftest/README.txt:

Opaque Layer Tests: class="reftest-opaque-layer"
================================================

If an element should be assigned to a PaintedLayer that's opaque, set the class
"reftest-opaque-layer" on it. This checks whether the layer is opaque during
the last paint of the test, and it works whether your test is an invalidation
test or not. In order to pass the test, the element has to have a primary
frame, and that frame's display items must all be assigned to a single painted
layer and no other layers, so it can't be used on elements that create stacking
contexts (active or inactive).

Layerization Tests: reftest-assigned-layer="layer-name"
=======================================================

If two elements should be assigned to the same PaintedLayer, choose any string
value as the layer name and set the attribute reftest-assigned-layer="yourname"
on both elements. Reftest will check whether all elements with the same
reftest-assigned-layer value share the same layer. It will also test whether
elements with different reftest-assigned-layer values are assigned to different
layers.
The same restrictions as with class="reftest-opaque-layer" apply: All elements
must have a primary frame, and that frame's display items must all be assigned
to the same PaintedLayer and no other layers. If these requirements are not
met, the test will fail.
2015-03-11 14:51:59 -04:00
Mantaroh Yoshinaga
46662b3fb2 Bug 1106905 - Modify mobile desktop mode implementation to use a desktop viewport. r=kats 2015-03-12 12:14:55 -04:00
Christoph Kerschbaumer
a546c14189 Bug 1036399 - Multiple CSP policies should be combined towards an intersection (r=sstamm) 2015-02-09 15:32:36 -08:00
Jason Orendorff
f4f54e1e08 Bug 828137, part 2 - Make [[Set]] always fail on window elements. With this change, window[0] = null; is a TypeError in strict mode code. r=bz. 2015-02-11 11:47:39 -06:00
Jason Orendorff
93b2f19ac6 Bug 828137, part 1 - Make Object.defineProperty fail on window elements. r=bz. 2015-02-11 11:38:36 -06:00
Alexandre Lissy
e30ef38a2d Bug 1141029 - Disabling mochitests on Mulet with parity to B2G Desktop for taskcluster. r=ahal 2015-03-11 08:15:00 -04:00
Bevis Tseng
3cb11fd177 Bug 1114935 - Part 5.2: Build MozIccManager by default. r=echen, r=htsai, r=glandium 2015-01-14 14:43:32 +08:00
Nathan Froyd
e9f067ac2a Bug 1141689 - use services::GetObserverService more; r=ehsan 2014-04-29 13:31:06 -04:00
Jed Davis
ede516cea6 Bug 1043143: Step 3: Convert nsJARChannel from temporary files to temporary memory. r=honzab
This also requires changing XMLHttpRequest so that it doesn't crash if
memory-mapping would be applicable but the channel has no associated
nsIFile; a regression test for that case is added.

Bonus fix: nsJARChannel::AsyncOpen now checks whether the inner channel's
AsyncOpen failed.
2015-03-10 17:00:01 -07:00
Jed Davis
1fb2cb6088 Bug 1034143: Step 1: Fix tests for bug 945152 and bug 1008126. r=smaug
This bug will make jar:http:// no longer eligible for the memory-mapping
optimization tested in these test cases, so this patch changes them
to use local files, which is the case that that optimization is meant
for.  Specifically, it changes them to chrome tests and pre-resolves
the chrome: URL of the jar file so that nsJARChannel recognizes it as a
local file.

Note that the bug 945152 test jar file remains in the file list for
plain mochitests as well as being added to chrome.ini; there is a test
in another directory that uses it, and a later patch in this series will
add another.
2015-03-10 17:00:01 -07:00
Blake Kaplan
b9d723a7c1 Bug 1134006 - Avoid IPC for domElement.QueryInterface(nsISupports) and nsIClassInfo. r=billm 2015-03-10 14:36:01 -07:00
Wes Kocher
f87c38fe16 Merge m-c to inbound a=merge CLOSED TREE 2015-03-10 16:11:23 -07:00
Wes Kocher
f303b4d81c Merge b2g-inbound to m-c a=merge CLOSED TREE 2015-03-10 15:44:53 -07:00
Carsten "Tomcat" Book
b3a1935b89 Merge mozilla-central to b2g-inbound 2015-03-10 14:07:36 +01:00
Carsten "Tomcat" Book
6f7826c5fc merge mozilla-inbound to mozilla-central a=merge 2015-03-10 13:54:35 +01:00
Xidorn Quan
73f76ee8c6 Bug 1130891 part 4 - Do copy with ruby when the whole selection is inside ruby. r=smaug 2015-03-10 17:11:55 +11:00
Xidorn Quan
2fc35acb99 Bug 1130891 part 3 - Add param to HTMLCopy to allow copy with ruby annotation. r=smaug 2015-03-10 17:11:55 +11:00
Xidorn Quan
b1b2bf17d4 Bug 1130891 part 2 - Add option in document encoder for including ruby annotation in plain text. r=roc 2015-03-10 17:11:55 +11:00
Xidorn Quan
2c36da3202 Bug 1130891 part 1 - Add W3C HTML5 ruby tags to atom list. r=smaug 2015-03-10 17:11:55 +11:00
Boris Zbarsky
cb2a1d6e2a Bug 453969. Fix the race in test_bug382113.html so we don't set our child-onload-fired boolean to false _after_ the child onload has already fired. r=froydnj 2015-03-09 21:36:47 -04:00
Ben Tian
5da78bd2e7 Bug 1128383 - [bluetooth2] Add adapter.onpairingaborted event handler, f=jocelyn, f=jaliu, r=shuang, r=bz 2015-03-06 11:55:30 +08:00
Boris Zbarsky
7c3e3e3096 Bug 1140573 part 3. Drop the parent argument from js::NewFunctionWithReserved. r=waldo 2015-03-09 12:50:07 -04:00
Boris Zbarsky
7f7b76aa0c Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. r=waldo 2015-03-09 12:50:03 -04:00
Boris Zbarsky
8ece71391b Bug 1140582. Remove the parent argument from JS_NewObjectWithUniqueType. r=waldo 2015-03-09 12:49:50 -04:00
Carsten "Tomcat" Book
9f406a7b29 Backed out changeset df26246112ad (bug 828137) 2015-03-09 16:49:34 +01:00