Commit Graph

590557 Commits

Author SHA1 Message Date
Coroiu Cristina
4f61ba5899 Backed out changeset 9d0fc1d12d9a (bug 1449327) for browser-chrome failures at toolkit/components/extensions/test/browser/browser_ext_themes_sanitization.js
--HG--
extra : rebase_source : 157263ac5ffebb19b14198e5f7927b0de91a12bb
2018-04-10 20:44:49 +03:00
Matthew Gaudet
a7339ba012 Bug 1451976: Temporary fix for --enable-more-deterministic when doing DoubleNot IC r=tcampbell
--HG--
extra : rebase_source : 8707974f966b748c214e9d0534e25c623839ca07
2018-04-09 18:23:49 -04:00
Andrew Halberstadt
823b6dea94 Bug 1452769 - [mozprofile] Fix a couple of missed instances of 'addon_manager' leftover after bug 1451733, r=jmaher
I missed a couple of references in cleanup code. This wouldn't have caused any
failures but might result in addons not being cleaned up properly.

MozReview-Commit-ID: BX0oX2GRGWT

--HG--
extra : rebase_source : 2193adb4e96b8e70faa6ffb1afd6db698b10ad2d
2018-04-09 17:05:27 -04:00
Andreas Tolfsen
50514918d4 Bug 1452483 - Preserve stacktrace from sandbox evaluation. r=maja_zf
Now that the correct filename and line number is being passed to
Cu.evalInSandbox, the stacktrace of the thrown error is correct.
JavaScriptError uses the line number to index the injected source
script, but the line number refers to the file represented by the
"filename" parameter and not to the script.

This effectively means that the line numbers in the produced
stacktrace are wrong because line number 0 was hard-coded as an
argument to Cu.evalInSandbox.

This patch harmonises the stacktraces returned from
WebDriver:ExecuteScript and WebDriver:ExecuteAsyncScript with
stacktraces from normal JavaScript errors, by removing some extra clutter.

MozReview-Commit-ID: 9nm6HeA4YVJ

--HG--
extra : rebase_source : e0f6e0c9595456fb59123adc98cea6d3d32abce3
2018-04-09 11:45:49 +01:00
Andreas Tolfsen
edb0e19511 Bug 1452483 - Use relative path to source file for injected scripts. r=maja_zf
The basename is not sufficient to locate the file.  Using the file's
relative path will match the behaviour of JavaScript stacktraces.

We can't use relative paths on Windows because the source file may
exist on another disk drive, and on Windows you cannot make relative
paths across disk drives because they don't share the same root.

MozReview-Commit-ID: 4EPITa2kH6J

--HG--
extra : rebase_source : 44781ee506b5150b8e48e8a6b63142badee5b172
2018-04-09 11:43:08 +01:00
Andreas Tolfsen
578b658ea0 Bug 1452483 - Strip whitespace from injected scripts. r=maja_zf
The injected script may contain a lot of whitespace padding on
either side of the string when using multi-line strings ("""foo""")
in Python.  To improve readability of the trace log we can strip
it off before sending it to Marionette.

MozReview-Commit-ID: 2cNlwVzqWTK

--HG--
extra : rebase_source : 1ec06523a6e99e188b8cb7b616b357c1e9dea125
2018-04-09 11:41:46 +01:00
Andreas Tolfsen
989c6a2abd Bug 1452483 - Set correct line number for JS evaluation. r=maja_zf
Marionette incorrectly sets the JavaScript context line number to 0.
The line number is provided to us in in the input, so we should
use this.  The default fallback if line is not provided is 0 as before.

MozReview-Commit-ID: 8gOt9r4awee

--HG--
extra : rebase_source : 3d268fff56554c76cbcb831dd2c8665dffd2ca08
2018-04-08 17:44:55 +01:00
Tim Nguyen
cf2045e297 Bug 1452303 - Use -moz-appearance:separator instead of background for toolbar separators. r=dao
MozReview-Commit-ID: HQfeCJmAwk3

--HG--
extra : rebase_source : ee9eeba9c8e2ee2f64594365b73507c5b4b1ce44
2018-04-11 13:56:02 +02:00
Gijs Kruitbosch
fcacf5d0a3 Bug 1427726 - remove pref from preference_usage performance test, r=johannh
MozReview-Commit-ID: saPO7fgcow

--HG--
extra : rebase_source : d0306dd8f0efe7deb5b350b1c49bff380c4b0ea7
2018-04-09 19:16:34 +01:00
Johan Lorenzo
0ee2315067 Bug 1441353 - part 2: Add beetmover job to publish signed langpacks r=Callek
MozReview-Commit-ID: HXjcclf3OeX

--HG--
extra : rebase_source : 6373b17fc730d6d1b301a874ae0686991f3fdbb2
2018-04-06 16:04:27 +02:00
Trisha
54231b162c Bug 1444445 - Remove unsafeSetInnerHTML in browser_l10n_localizeMarkup.js. r=johannh
MozReview-Commit-ID: 1eaABunZe0B
2018-04-06 19:44:57 +08:00
Boris Zbarsky
4ec0cf9709 Bug 1453132. Change nsIEventListenerService to use WebIDL event listeners, not nsIDOMEventListener. r=smaug
The test change is needed because there is no notok() function.  But the old
nsIDOMEventListener setup would fail to report the exception anywhere, so the
test still passed (albeit without testing what it thought it was testing).  The
new setup reports the exception via an error event on the window, and the test
harness notices that.

MozReview-Commit-ID: 3ISmcyhMk0R
2018-04-11 10:27:01 -04:00
Boris Zbarsky
409641ea37 Bug 1452819. Use the right URI when getting data from the image cache for the "Save Image As..." context menu options. r=dao
MozReview-Commit-ID: zZggyJ6y7n
2018-04-11 10:27:01 -04:00
Boris Zbarsky
7477a7ddce Bug 1452862. Remove various pointless QueryInterface implementations from bindings. r=qdot
BarProp, CaretPosition, Crypto, CSSMozDocumentRule, CSSPrimitiveValue,
CSSStyleDeclaration, CSSStyleRule, CSSValueList, DOMImplementation,
DOMTokenList, FileList, FrameLoader, FormData, HTMLCollection, History,
MimeTypeArray, NamedNodeMap, MutationObserver, MutationRecord, Navigator,
NodeIterator, PaintRequest, PaintRequestList, Plugin, Rect,
SVGAnimatedEnumeration, SVGAnimatedInteger, SVGAnimatedNumber,
SVGAnimatedNumberList, SVGAnimatedPreserveAspectRatio, SVGAnimatedString,
SVGLengthList, SVGNumberList, SVGPathSegList, SVGPoint, SVGPointList,
SVGPreserveAspectRatio, SVGRect, SVGStringList, SVGTransformList, Touch,
TouchList, TreeWalker, ValidityState only implement nsISupports, so
there's no point QIing them.

DOMStringMap, FrameLoader, NodeIterator, SVGPoint, StyleSheet only implement
non-scriptable non-shimmed interfaces (nsIMutationObserver, nsISVGPoint,
nsICSSLoaderObserver), so can't be usefully QIed from script.

EventSource, Notification, OfflineResourceList, Performance, Screen,
WebSocket, XMLHttpRequestUpload only implement nsIDOMEventTarget, and nothing
QIs to that in script.

PluginArray QIs to nsIObserver but doesn't expose any corresponding methods.
None of the QIs to that interface seem to be on PluginArray objects.

Range QIs to nsIDOMRange, but there is no JS code that QIs to that.

NodeList QIs to nsIDOMNodeList, but there is no JS code that QIs to that.

XMLSerializer doesn't even implement nsISupports.

MozReview-Commit-ID: Fil5cBd4K4d
2018-04-11 10:27:00 -04:00
Boris Zbarsky
2542e6eb8a Bug 1452741. Stop using the no-arg DOMEventTargetHelper constructor in MediaTrack. r=bkelly
MozReview-Commit-ID: AbE3XJdj4KO
2018-04-11 10:27:00 -04:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Nathan Froyd
798efd6d66 Bug 1453134 - part 3 - be smarter about input stream semantics in DataTransfer; r=baku
We could have used the new NS_NewCStringInputStream overload here, but
it seemed nicer to directly transfer ownership into the newly-created
stream.  If we're going to be more efficient here, we might as well go
as far as when can without making the code too ugly.
2018-04-11 10:06:17 -04:00
Nathan Froyd
62f2c5af64 Bug 1453134 - part 2 - use new string input stream constructor in FSURLEncoded; r=baku
The XXX comment here wants to give up the string data when we create the
outgoing stream.  Giving up the string data is legitimate, because
GetEncodedSubmission is the last operation to be called on this object;
mQueryString is effectively dead after this function returns.
Accordingly, we can Move() mQueryString into the outgoing stream for a
nice efficiency boost.
2018-04-11 10:06:17 -04:00
Nathan Froyd
7bb7ffd8c9 Bug 1453134 - part 1 - add a string input stream constructor that accepts move references; r=baku
This method is more efficient when we know we're not going to need the
string afterwards, and should cut down on intermediate allocations.
2018-04-11 10:06:17 -04:00
Tom Prince
5c0397226f Bug 1451968: Add comm-central bracnhes to taskgraph project aliases; r=dustin a=reland
There are several project aliases for taskgraph's `run_on_projects`. Add the
appropriate `comm-*` branches to those aliases.

Differential Revision: https://phabricator.services.mozilla.com/D863

--HG--
extra : source : 918004b0cc5d69f7fb05b1fcbb0adb06f6966bf0
extra : amend_source : 34414fd9ced8b73306836397e3acee26c68bb968
2018-04-05 15:48:24 -06:00
Csoregi Natalia
2b084713ed Merge inbound to mozilla-central. a=merge 2018-04-10 12:56:48 +03:00
Tooru Fujisawa
e8598b2796 Bug 1448531 - Part 7: Request longer timeout for browser/base/content/test/general/browser_newTabDrop.js. r=bustage 2018-04-10 14:12:28 +09:00
Daisuke Akatsuka
fa46acbfc3 Bug 1449804 - Part 2: Avoid overwrapping the label content of animation detail title. r=gl
MozReview-Commit-ID: EOAto87YjFP

--HG--
extra : rebase_source : 8137e23a8f15b4de0b26b916eb592a92523cbae1
2018-04-10 07:34:36 +09:00
Daisuke Akatsuka
b715e36b8c Bug 1449804 - Part 1: Avoid overwrapping the label content of animation target. r=gl
MozReview-Commit-ID: DJE842tgzfC

--HG--
extra : rebase_source : c67a5a3e50b94ed1efd4e93df5e511c54df7a478
2018-04-10 07:34:08 +09:00
Markus Stange
cf7fd3319a Bug 1444373 - Don't crash when trying to draw an empty RectTextureImage. r=mattwoodrow
MozReview-Commit-ID: EsnxswIaABQ

--HG--
extra : rebase_source : 44e2fce7502a0bf9f8097cbb98d0a1ace36d51f1
2018-04-09 17:07:58 -04:00
Markus Stange
ffbedcffe2 Bug 1444373 - Update mBounds on mPopupContentView every time mBounds on the containing window changes. r=spohl
MozReview-Commit-ID: GpwXVOQNgIj

--HG--
extra : rebase_source : 867ecfc5422d8b5d98cd7d3797a46360f1dca260
2018-04-09 17:31:49 -04:00
Markus Stange
99a7e50644 Bug 1445787 - Correctly set the initial size of the ChildView we create for the popup contents. r=spohl
Remote WebExtension panels can cause us to recreate the widget for a view that
already has a size. In the past, popup widgets were always created with an
initial size of 0x0, so setting the initial size of the ChildView to 0x0
resulted in correct behavior because the window would be resized to the correct
size shortly afterwards, and resize the ChildView along with it via its auto
resizing mask.

When we recreate a widget which already has a known size, setting the initial
size to 0x0 is wrong. We need to set the ChildView's size so that it fills the
contentView of the popup window completely.

MozReview-Commit-ID: 53d3AX3z5h2

--HG--
extra : rebase_source : 7720a6dd12ad7f8efc102cd1430a9e1ed2f5ee0f
2018-04-09 16:25:14 -04:00
Andreea Pavel
108954cccc Backed out 2 changesets (bug 1435373) for patch failing to be applied on a CLOSED TREE
Backed out changeset 0ea578dacf23 (bug 1435373)
Backed out changeset c3b0f6497bb7 (bug 1435373)
2018-04-10 04:46:23 +03:00
Chris Pearce
79ee61bdff Bug 1435133 - Test that we delay media play start until we know whether a media has audio or not. r=bryce
Test that play() on a media without audio called before
readyState >= HAVE_METADATA will still play.

MozReview-Commit-ID: 1FeDrEfCEum

--HG--
extra : rebase_source : be6d07905aad853ad028eac372e4e380bdeb1a49
extra : source : e98b4a7aaf020fa3d6d59cb0f53680ef6466d154
2018-04-06 17:13:39 +12:00
Bryce Van Dyk
f16be73b01 Bug 1447273 - Add test to check that different GainNode configuraitons produce correct output. r=padenot
MozReview-Commit-ID: 6iaCqotLmug

--HG--
extra : rebase_source : abdc6daf57979cb117e4a0e41078594c68d6d58e
2018-04-05 14:58:08 -04:00
Nicolas Chevobbe
4c83c733c3 Bug 1451025 - Convert SymbolIteratorActor to protocol.js; r=ochameau.
MozReview-Commit-ID: E9xjaaV50mt

--HG--
extra : rebase_source : 52f34bcc9a9c54669c9b41494bf566915607fab9
2018-04-05 16:49:30 +02:00
Erica Wright
5a58c5d8bf Bug 1431071 - Grid line names suggestions offered in inspector autocomplete if element is in a grid and rule applies. r=gl, jdescottes
MozReview-Commit-ID: HGINxducS4x
2018-04-04 14:01:19 -04:00
Boris Zbarsky
2eb01e881f Bug 1453053 part 4. Remove the QI implementation from ChildProcessMessageManager, ChromeMessageBroadcaster, ChromeMessageSender, ContentFrameMessageManager, ContentProcessMessageManager. r=qdot
ChildProcessMessageManager, ChromeMessageBroadcaster, and ChromeMessageSender
only implement nsIMessageSender and nsIContentFrameMessageManager.  Neither one
has QIs in JS now.

ContentFrameMessageManager only implements nsIDOMEventTarget, which there are
no JS QIs for.

ContentProcessMessageManager implements nsIMessageSender and
nsISupportsWeakReference.  The only JS QI for nsISupportsWeakReference is
definitely not happening on this object.

MozReview-Commit-ID: 67dxaQlhpGc
2018-04-12 00:06:25 -04:00
Boris Zbarsky
72db616bb9 Bug 1453053 part 3. Remove JS QIs to nsIMessageSender. r=qdot
MozReview-Commit-ID: 4TS38gebl7l
2018-04-12 00:06:25 -04:00
Boris Zbarsky
e5e6a94e94 Bug 1453053 part 2. Remove the QI implementation from Attr, Comment, DocumentType, ProcessingInstruction, Text. r=qdot
All of these have implementations that only QI to nsIDOMNode and nsISupports, and no one QIs things to nsIDOMNode in script anymore.

MozReview-Commit-ID: 2L4VCEEsLkS
2018-04-12 00:06:25 -04:00
Boris Zbarsky
a730b3a9ad Bug 1453053 part 1. Remove useless QIs to nsIDOMNode. r=qdot
MozReview-Commit-ID: GokPD2buxzN
2018-04-12 00:06:25 -04:00
Boris Zbarsky
ed3406b369 Bug 1452786 part 2. Stop using a generated chromeonly isInstance method. r=qdot
This changes semantics in all sorts of ways (e.g. now we get the right proto
from our |this| value instead of it being baked into the function).  But if all
our chrome callers are well-behaved this should be ok.

We _could_ bake the proto id and depth into the function itself by using
js::NewFunctionWithReserved if it were not for Xrays.  Those already need the
reserved slots on functions we Xray.

MozReview-Commit-ID: 1bYrKWWIc1P
2018-04-12 00:06:07 -04:00
Boris Zbarsky
e94c1c593e Bug 1452786 part 1. Move the "is chrome" check for installing [ChromeOnly] stuff into the shared CreateInterfaceObjects method. r=qdot
Right now we do this check pretty much always anyway for isInstance... we do it
twice for anything that actually has [ChromeOnly] bits.

MozReview-Commit-ID: FHbYED4FPJe
2018-04-12 00:06:05 -04:00
Boris Zbarsky
3431b01985 Bug 1453487 part 3. Make nsIDOMEventListener noscript. r=smaug
MozReview-Commit-ID: 9jakAl7hMbb
2018-04-12 00:06:00 -04:00
Boris Zbarsky
d32ec123dc Bug 1453487 part 2. Remove useless implements="nsIDOMEventListener" from XBL bindings. r=smaug
MozReview-Commit-ID: 4OjGuYkpXMM
2018-04-12 00:05:49 -04:00
Boris Zbarsky
35ef0df4d4 Bug 1453487 part 1. Stop using XPCWrappedNative for nsIDOMEventListener. r=smaug
MozReview-Commit-ID: Es4fEdGDzbx
2018-04-12 00:05:38 -04:00
Boris Zbarsky
8264c3a7c1 Bug 1453345 part 6. Mark nsIDOMEventListener builtinclass. r=smaug
We can't make it non-scriptable, becuse we have _one_ case in which we actually
expose a C++ event listener to script: the return value of
nsISessionStoreUtils.createDynamicFrameEventFilter.

MozReview-Commit-ID: KTv2WsvGN52
2018-04-12 00:03:45 -04:00
Boris Zbarsky
b43b5abed4 Bug 1453345 part 5. Remove pointless JS implemenations of QI to nsIDOMEventListener. r=smaug
MozReview-Commit-ID: Db0v6GZ0deo
2018-04-12 00:03:45 -04:00
Boris Zbarsky
3914e3a54e Bug 1453345 part 4. Stop using XPCWrappedJS implementing nsIDOMEventListener in EventListenerInfo. r=smaug
MozReview-Commit-ID: I5oYAYaA6CV
2018-04-12 00:03:44 -04:00
Boris Zbarsky
4cfde58ac8 Bug 1453345 part 3. Remove the eWrappedJSListener listener type, now that we shouldn't have them anymore. r=smaug
MozReview-Commit-ID: LycJUIJm5p9
2018-04-12 00:03:44 -04:00
Boris Zbarsky
ce20fb6291 Bug 1453345 part 2. Switch geckoview's prompt setup to not rely on XPCWrappedJS implementing nsIDOMEventListener. r=jchen
MozReview-Commit-ID: 3CKiDtpQePU
2018-04-12 00:03:44 -04:00
Boris Zbarsky
05a68eb365 Bug 1453345 part 1. Switch session storage content scripts to not rely on XPCWrappedJS implementing nsIDOMEventListener. r=smaug
MozReview-Commit-ID: LPYKxngcXJw
2018-04-12 00:03:44 -04:00
sotaro
d411e21feb Bug 1453195 - Reduce mOptions.UseWebRender() usage in CompositorBridgeParent r=nical 2018-04-12 12:18:50 +09:00
Noemi Erli
1fcf5e9c6a Backed out changeset b4dcb47b8542 (bug 1449100) for dt failures in devtools/client/netmonitor/test/browser_net_pane-network-details.js on a CLOSED TREE 2018-04-12 06:09:19 +03:00
Jason Laster
881644f25f Bug 1453066 - Update Debugger Frontend v34. r=jdescottes 2018-04-11 22:06:24 -04:00