Commit Graph

1494 Commits

Author SHA1 Message Date
Luca Greco
22c60dcadd Bug 1434777 - Re-enabled test_ext_contentscript_devtools_metadata.html test on Windows. r=jmaher
This test has been disabled because it was failing intermittently with a pretty high
frequency on the Windows platform, the reasons behind the failures have been fixed
in Bug 1435100.

MozReview-Commit-ID: 6Dxm8nTVXgq
2018-03-02 13:28:00 +01:00
Ciure Andrei
a357384ce3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-02 12:19:09 +02:00
Ciure Andrei
4ad913e358 Merge inbound to mozilla-central. a=merge 2018-03-02 12:16:06 +02:00
Kris Maglione
5a8cc558b1 Bug 1441333: Part 6 - Use caller location in error reports for StrongPromise errors. r=zombie
We currently report a useful location in error reports when extensions fail to
resolve a promise or call a response callback, but in some slightly
less-than-ideal ways. We currently generate a complete stack and parse its
string value (which is expensive), and then report the caller location as part
of the message, rather than as the error's location and stack.

This patch changes that behavior to store a single SavedStack frame, and to
properly report that as the location of the error.

MozReview-Commit-ID: Jmtf4C1O6pW
2018-03-01 16:41:21 -08:00
Kris Maglione
a68a7b5ca9 Bug 1441333: Part 5 - Use proper async caller location in normalizeError. r=zombie
Currently, when we create an error object at the end of an aysnc operation, we
only get a useful caller location if async stacks are enabled.

This patch changes our behavior to use the saved caller location we've already
stored when creating an Error object based on a plain string message.

MozReview-Commit-ID: DDO0lAUHYRO
2018-03-01 16:39:08 -08:00
Tim Nguyen
936eb6bd67 Bug 1442437 - Rename background_tab_text to tab_background_text. r=jaws
MozReview-Commit-ID: LFXUqxuHbBb
2018-03-01 23:49:07 +00:00
Kris Maglione
50e5efde7d Bug 1441333: Part 4 - Add caller location to async API errors. r=zombie
When we report errors generated by async API operations, they are currently
not tied to any relevant extension source location. Instead, the locations in
the error reports point to the location in the framework code which reported
the error, which makes things extremely difficult to diagnose.

This change saves the extension caller location at the beginning of async API
operations, and adds it to the error reports genearted by that operation. This
should give extension developers a useful starting point for debugging them.

MozReview-Commit-ID: AkknkKEosFt
2018-02-26 15:25:03 -08:00
Shane Caraveo
9a08d8aa33 Bug 1409878 implement async proxy api for webextensions, r=kmag,rpl
MozReview-Commit-ID: 50xsccRy19A
2018-03-01 19:09:54 -06:00
Bob Silverberg
bc6e5e563a Bug 1344749 - Expose API to customize where new tabs open, r=dao,mixedpuppy
This patch implements the preference "browser.tabs.insertAfterCurrent" which,
when set to true, will cause all tabs (related and unrelated) to be opened next
to the current tab.

It also implements the browserSettings API "newTabPosition", which allows
extensions to control both "browser.tabs.insertRelatedAfterCurrent", and
"browser.tabs.insertAfterCurrent" via values for "afterCurrent",
"relatedAfterCurrent" and "atEnd".

The code for "browser.tabs.insertAfterCurrent" including the test for it is
mostly taken from a patch attached to bug 933532 written by Masayuki Nakano.

MozReview-Commit-ID: KQE7M2FGpc7
2018-01-19 12:59:53 -05:00
Tiberius Oros
0e49912cc8 Merge inbound to mozilla-central. a=merge 2018-03-01 19:29:00 +02:00
Andrew Swan
d3734cd97e Bug 1402850 Don't include runtime permissions in prompts for webextension updates r=zombie
MozReview-Commit-ID: 1cnNsWLVGmg
2017-11-08 17:14:11 -08:00
Cosmin Sabou
c196290814 Backed out 2 changesets (bug 1402850) for mochitest browser chrome failures at browser_ext_devtools_inspectedWindow.js on a CLOSED TREE
Backed out changeset 839b847c943e (bug 1402850)
Backed out changeset 85b12303f147 (bug 1402850)
2018-02-28 23:13:23 +02:00
Andrew Swan
e983157676 Bug 1402850 Don't include runtime permissions in prompts for webextension updates r=zombie
MozReview-Commit-ID: 1cnNsWLVGmg
2017-11-08 17:14:11 -08:00
Florian Quèze
f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Ciure Andrei
51bf758f13 Backed out changeset 30b928272f74 (bug 1373640) for failures on xpcshell-remote.ini:toolkit/components/extensions/test/xpcshell/test_ext_dns.js a=backout 2018-02-28 06:44:03 +02:00
Shane Caraveo
d20ba0a6aa Bug 1373640 implement async dns resolve api for webextensions, r=kmag
MozReview-Commit-ID: Bzfr2x6Vmx2
2018-02-27 19:35:01 -06:00
Ciure Andrei
a6f96e20e2 Backed out changeset 7c6468a59407 (bug 1373640) for failures on xpcshell-remote.ini:toolkit/components/extensions/test/xpcshell/test_ext_dns.js a=backout on a CLOSED TREE 2018-02-28 03:04:19 +02:00
Shane Caraveo
63f203ba9f Bug 1373640 implement async dns resolve api for webextensions, r=kmag
MozReview-Commit-ID: Bzfr2x6Vmx2
2018-02-27 13:56:38 -06:00
Mark Banner
910da570a0 Bug 1440379 - Tidy up ESlint no-unused-vars definitions wrt Ci/Cu/Cr/Cc usage for varsIgnorePattern. r=florian
MozReview-Commit-ID: HmliR8iNRDq
2018-02-22 16:55:36 +00:00
Connor Masini
2e5078ed4b Bug 1417880: Allow theming arrow panels(popups). r=jaws,mconley,ntim
MozReview-Commit-ID: 9f1sSzaGZzf
2018-02-07 00:22:22 -05:00
Florian Quèze
f1a55f73f8 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Shane Caraveo
01c207899b Bug 1373640 implement async dns resolve api for webextensions, r=kmag
MozReview-Commit-ID: Bzfr2x6Vmx2
2018-02-27 19:35:01 -06:00
Zibi Braniecki
b813d58184 Bug 1431260 - Migrate Extensions tests to mock locale availability. r=aswan
MozReview-Commit-ID: KbFa11j69F1
2018-02-16 14:35:00 -08:00
Csoregi Natalia
3b435f7331 Merge inbound to mozilla-central. a=merge 2018-02-21 23:50:20 +02:00
Cosmin Sabou
a4871fdab3 Bug 1419183 - Disable toolkit/components/extensions/test/xpcshell/test_ext_management.js for frequent failures. r=jmaher 2018-02-21 18:54:17 +02:00
Christoph Kerschbaumer
d6282a8072 Bug 1434357: Test allow insecure redirect to data: URI through WebRequest API. r=jkt 2018-02-18 19:18:28 +01:00
Gurzau Raul
53f480c4b8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-21 19:30:44 +02:00
Jonathan Kingston
91e54f8c78 Bug 1435733 - Upgrade mixed display content pref. r=baku,ckerschb,francois,mayhemer
MozReview-Commit-ID: ETIgVF3zhRu
2018-02-05 15:37:27 +00:00
Dão Gottwald
11c1e21acb Backed out changeset 29569f02015d
MozReview-Commit-ID: 6XcU3HUnEvX
2018-02-20 20:27:32 +01:00
Connor Masini
e9e93c38f0 Bug 1417880: Allow theming arrow panels. r=jaws, ntim 2018-02-07 00:22:22 -05:00
Sebastian Hengst
0733554568 Bug 1432358: Fix test annotation. r=bustage-fix 2018-02-18 15:31:12 +02:00
Christoph Kerschbaumer
4c4ff61092 Bug 1432358: Disable test_ext_contentscript_triggeringPrincipal on win debug for timeout failures. r=aryx 2018-02-16 11:37:24 +01:00
Gurzau Raul
5088af0fad Merge inbound to mozilla-central. a=merge 2018-02-17 00:09:28 +02:00
Cosmin Sabou
7d2694191a Bug 1434777 - Disabled toolkit/components/extensions/test/mochitest/test-oop-extensions/test_ext_contentscript_devtools_metadata.html for frequent failures. r=jmaher 2018-02-16 08:33:26 -05:00
Tim Nguyen
800b8501ca Bug 1404688 - Make headerURL optional and remove text-shadow when there is no headerURL. r=jaws
MozReview-Commit-ID: 5x6SPWEJ3jp
2018-02-15 13:37:30 +00:00
Coroiu Cristina
86747c3ece Backed out changeset 067ee834b07b (bug 1404688) for xpcshell failures at toolkit/mozapps/extensions/test/xpcshell/test_LightweightThemeManager.js 2018-02-15 05:15:10 +02:00
Tim Nguyen
f26ed7c47c Bug 1404688 - Make headerURL optional and remove text-shadow when there is no headerURL. r=jaws
MozReview-Commit-ID: BWhStvcLpkL
2018-02-15 02:30:44 +00:00
Dorel Luca
2385f5c71f Backed out changeset 85e30806ade1 (bug 1404688) for Browser chrome failure on browser/base/content/test/general/browser_compacttheme.js. CLOSED TREE 2018-02-14 21:50:09 +02:00
Tim Nguyen
212aa936f0 Bug 1404688 - Make headerURL optional and remove text-shadow when there is no headerURL. r=jaws
MozReview-Commit-ID: iHJggOjHBa
2018-02-11 19:28:32 +00:00
Masayuki Nakano
53a40055b6 Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug
Now, callers of EventUtils.synthesizeKey() don't need to specify
KeyboardEvent.code value anymore if they assume that active keyboard layout
is US keyboard layout.

Note that this patch changes the meaning of only test_bug551434.html.
Some callers in it don't match the key value and code value but that looks
like that they don't checking such odd keyboard events.  So, they must be
bug of the test.

MozReview-Commit-ID: Itxo7yZ9rkK
2018-02-09 19:17:26 +09:00
Noemi Erli
cf812e1e6e Backed out changeset 719333bb05af (bug 1417880) for failing in toolkit/components/extensions/test/browser/browser_ext_themes_arrowpanels.js on a CLOSED TREE 2018-02-13 14:29:36 +02:00
Connor Masini
fe4861acc9 Bug 1417880: Allow theming arrow panels(popups). r=jaws
MozReview-Commit-ID: 9f1sSzaGZzf
2018-02-07 00:22:22 -05:00
Tom Ritter
5918a1f53d Bug 1435296 Address xpcshell test failures from increasing timer precision r=baku
See the comment on "Address test failures caused by bumping timer precision to 2 ms"
for more details.

MozReview-Commit-ID: LrsucEPdZIo
2018-02-12 11:41:38 -06:00
Sebastian Hengst
39acc3c032 Backed out 4 changesets (bug 1432358) for failing xpcshell's test_ext_contentscript_triggeringPrincipal.js
Backed out changeset ef7b8eef07c1 (bug 1432358)
Backed out changeset 2fa11c525da3 (bug 1432358)
Backed out changeset a67e95bd0ccf (bug 1432358)
Backed out changeset 91c948c94506 (bug 1432358)
2018-02-12 19:58:28 +02:00
Christoph Kerschbaumer
8f0a795e0a Bug 1432358: Request longer timeout for test test_ext_contentscript_triggeringPrincipal. r=aryx 2018-02-12 10:30:20 +01:00
Jared Wein
5c53ac05e6 Bug 1436749 - Backout support for button_background since it was not supposed to be supported. r=dao
MozReview-Commit-ID: CVZqDOvU04V
2018-02-09 15:28:19 -05:00
Andrew McCreight
1d9e026e96 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf
2018-02-06 15:03:13 -08:00
Thomas Wisniewski
6ba7255647 Bug 792808 - Change toolkit/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=aswan
MozReview-Commit-ID: CUrMOocHBNu
2018-02-08 20:09:57 -05:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Vivek Dhingra
45870c30d3 Bug 1431189 - Add google chrome toolbar button color properties: r=jaws
Added support for color.button_background, color.button_background_hover, color.button_background_active

MozReview-Commit-ID: F0EcTLMWE6h
2018-02-02 16:24:26 -05:00