Commit Graph

540134 Commits

Author SHA1 Message Date
Andrew Sutherland
7cbbdb024c Bug 1329245 - Part 2: finish removal of pref/permission pieces begun in bug 1286530. r=bkelly
Bug 1286530 made TCPSocket ChromeOnly, eliminating both the
dom.mozTCPSocket.enabled preference check as well as the "tcp-socket"
permission check.  The API is now always exposed in chrome contexts.
This patch removes the leftover (and confusing) dead code.

Renamed and why:
- test_tcpsocket_enabled_no_perm.html renamed to
  test_tcpsocket_not_exposed_to_content.html because it's now just a
  question of content never seeing the API.

Removed tests and why:
- test_tcpsocket_enabled_with_perm.html used to be a standalone
  verification of our permission check.  We have no permission check
  now and both test_tcpsocket_jsm.html and
  test_tcpsocket_client_and_server_basics.html serve as tests that we
  affirmatively expose the API and there are no "late" failure (such
  as a secondary check in the parent).

- test_tcpsocket_default_permissions.html duplicated what (now)
  test_tcpsocket_not_exposed_to_content.html accomplishes.  It tried to
  use the API and expect an exception.  This is just superstition in a
  WebIDL.  (TCPSocket was not originally WebIDL-y.)

--HG--
rename : dom/network/tests/test_tcpsocket_enabled_no_perm.html => dom/network/tests/test_tcpsocket_not_exposed_to_content.html
extra : rebase_source : d2231ed3b0fb00541cc266569c2a7908a4074f9c
2017-06-04 22:41:25 -04:00
Andrew Sutherland
8923d906ec Bug 1329245 - Part 1: remove moot add_task.js since bug 1078657 gave us SpawnTask.js. r=bkelly
The use of add_task.js was ever only intended to be temporary until
bug 1078657 landed.

--HG--
extra : rebase_source : d9570859b35691002cf7f4642603f6730ddab7ad
2017-06-04 19:52:29 -04:00
James Willcox
56de576eb7 Bug 1368187 - Set up nsIBrowserDOMWindow correctly in GeckoView r=jchen
MozReview-Commit-ID: L0FkAGriChD
2017-06-05 15:45:27 -05:00
Gerald Squelart
74fb630e36 Bug 1369322 - MediaResourceIndex follows ShouldCacheReads recommendation - r=cpearce
MozReview-Commit-ID: A8mtz2fJd71

--HG--
extra : rebase_source : 81949d559c5482951ed9186c92d0759dd4a6b3b0
2017-06-02 16:10:48 +12:00
Gerald Squelart
caaa280433 Bug 1369322 - MediaResource::ShouldCacheReads to indicate usefulness of caching - r=cpearce
This hint will inform readers if caching is discouraged (e.g., for
SourceBufferResource) or recommmended (e.g., for MediaCache-backed
ChannelMediaResource).

MozReview-Commit-ID: 7hopNS0s5tE

--HG--
extra : rebase_source : 681646cc904229e8513adb148baa085254508049
2017-06-02 14:27:17 +12:00
Ricky Chien
22160c0331 Bug 1368957 - Making the labels for containers highlightable r=mconley
MozReview-Commit-ID: 3Tjc8ARhZuz

--HG--
extra : rebase_source : 1c8f9a319e9f43866e6e6418619efc89b3250389
2017-06-03 17:09:44 +08:00
Tooru Fujisawa
cee4637db8 Bug 1368732 - Use StringReplaceString instead of String_replace in Intl. r=till 2017-06-01 01:54:18 +09:00
Bob Owen
12073adc94 Bug 1370216: Remove SANDBOX_BROKER_INITIALIZED telemetry. r=jimm 2017-06-05 20:18:31 +01:00
Micah Tigley
c671140c63 Bug 1369586 - Add a border around the grid area name overlay. r=gl
MozReview-Commit-ID: 3aUiVU3gKpq
2017-06-02 22:05:55 -06:00
Kris Maglione
d2ac9519c1 Bug 1370263: Null check document URI before matching content scripts. r=mixedpuppy
MozReview-Commit-ID: IB8HMmukD1h

--HG--
extra : rebase_source : 7267ae37b0b0d5813ce5510c1aeb225e16649bba
2017-06-05 10:26:06 -07:00
Aaron Klotz
ec02e78c40 Bug 1367885: Backed out changeset 3f6e08c5233f for bc4 bustage on a CLOSED TREE; r=backout
MozReview-Commit-ID: 4CDliBImLR7
2017-06-05 12:51:52 -06:00
Aaron Klotz
0fdef67a82 Bug 1367885: Follow-up - fix missing explicit keyword on constructor on a CLOSED TREE; r=bustage
MozReview-Commit-ID: KvlrtJlUir8

--HG--
extra : rebase_source : 88b65dfdc34e2df79dec294f3828f1dc6b33ceeb
extra : histedit_source : 42f77c82bd86f54154df52d4fa58c6107771868b
2017-06-05 12:29:04 -06:00
Jim Chen
50d7a19548 Bug 1367081 - 4. Load SelectHelper and InputWidgetHelper in PromptService.js; r=droeh
Right now SelectHelper and InputWidgetHelper are loaded in browser.js,
which means they only work for GeckoApp. This patch loads them in
PromptService.js instead, which means they will work in all windows. The
patch also changes some code in SelectHelper and InputWidgetHelper that
used to assume they are running under the browser.xul chrome window.

MozReview-Commit-ID: HveDzIzK1b4
2017-06-05 13:55:59 -04:00
Jim Chen
b51227fbc9 Bug 1367081 - 3. Include window when using Prompt.jsm; r=droeh
Include the window when using Prompt.jsm in JS so that the prompts can
be directed to the correct Activity.

MozReview-Commit-ID: 7AtYaCJXjDi
2017-06-05 13:55:58 -04:00
James Graham
8f5559fddd Bug 1352128 - Update web-platform-tests expected data. r=jmaher, a=testonly
MozReview-Commit-ID: HqEyuojy9TG
2017-06-03 20:34:34 +01:00
Chris H-C
c57d39227d bug 546387 - Don't try to set the GTK clipboard with null items r=karlt
It causes an assert failure in gtk which prints to the console.

MozReview-Commit-ID: A4106Z4rT36

--HG--
extra : rebase_source : 642c94a95cfa3939bc475e9139ee63caa78e3005
2017-05-26 11:50:13 -04:00
Manish Goregaokar
dfa9a07b17 Bug 1369277 - More reftest expectation updates; r=orange
MozReview-Commit-ID: DIipQabhnz1
2017-06-06 08:55:46 -07:00
Brad Werth
49ed79f4ce Bug 1369903 Part 3: Ensure that Loader enables all cloned stylesheets, and checks modified state of all stylesheets, regardless of backend. r=emilio
MozReview-Commit-ID: EEnFeaw2r0u

--HG--
extra : rebase_source : 1ff76aee934c6fe191105ce397c0e191e9802acb
2017-06-05 09:24:25 -07:00
Brad Werth
6aa25ee4e2 Bug 1369903 Part 2: Allow HTMLEditor to enable/disable any type of stylesheet. r=emilio
MozReview-Commit-ID: JSlJ8yhqLXm

--HG--
extra : rebase_source : 35fd4c941fd09109779f454020c7af8de72dba55
2017-06-05 09:00:20 -07:00
Brad Werth
2413824883 Bug 1369903 Part 1: Remove over-specified stylesheet calls in nsDocument. r=emilio
MozReview-Commit-ID: 6YHC0vvvrtn

--HG--
extra : rebase_source : 3bdd45f055fc3d9f35080984cd2c5ccbab77b1a6
2017-06-05 08:49:21 -07:00
Brad Werth
06dbc28572 Bug 1351117 Part 1: Change an assert on nsLayoutStylesheetCache::Shutdown into a warning, since it only notes that the cache was never used. r=heycam
MozReview-Commit-ID: 5dHMnjE8ufl

--HG--
extra : rebase_source : 0d251371af654882e3d83c8634fa6951d26da359
2017-06-05 13:57:36 -07:00
Kartikaya Gupta
9455874723 Bug 1370526 - Fix new[]/delete mismatch. r=jrmuizel
MozReview-Commit-ID: H7J8BK7regw

--HG--
extra : rebase_source : d7bc3004a0ed48d0204424c829f7bbde28afc826
2017-06-06 09:43:43 -04:00
Mike Hommey
05a36a133a Bug 1369622 - Add a static_assert when no variadic argument is given to MOZ_CRASH_UNSAFE_PRINTF. r=froydnj
If MOZ_CRASH_UNSAFE_PRINTF is only given a format string, it means
either arguments are missing, or MOZ_CRASH should be used instead.
Hint at that with a static_assert.

--HG--
extra : rebase_source : 355c37deb8b007e61939a4c657e411d110e7bbe7
2017-06-02 15:11:47 +09:00
Mike Hommey
e9c25fa403 Bug 1369622 - Restore static asserts for lack of arguments on some macros. r=froydnj
Bug 1368932 removed MOZ_STATIC_ASSERT_VALID_ARG_COUNT because it didn't
actually work for large numbers of arguments. But it was kind of useful
for macros that expand to something broken when they are given no
variadic argument at all.

Now that we have a macro that doesn't require tricks to count empty
arguments lists, however, we can use straightforward static_asserts
instead of a generic macro, which has the side effect of providing more
context in the error message.

--HG--
extra : rebase_source : 223f85c2c5cc7b3fa8c584b70bb084784fb5764a
2017-06-02 15:07:58 +09:00
Mike Hommey
8914ace4ce Bug 1369622 - Use MOZ_ARG_COUNT instead of MOZ_PASTE_PREFIX_AND_ARG_COUNT. r=froydnj
In a couple places, MOZ_PASTE_PREFIX_AND_ARG_COUNT is used to only count
the number of arguments, we can now use MOZ_ARG_COUNT directly for that.

--HG--
extra : rebase_source : 1064e4cc231863dc4aff83ee6bc90d318b4be418
2017-06-02 15:06:34 +09:00
Mike Hommey
38a6de0fe3 Bug 1369622 - Fix MOZ_FOR_EACH with an empty list. r=froydnj
I'm not sure how I tested MOZ_FOR_EACH in bug 1368932, but it turns out
it doesn't work with an empty list, despite
MOZ_PASTE_PREFIX_AND_ARG_COUNT now supporting 0 arguments.

Macros can be tricky, and it ends up being easier to make things work
cross-compiler with a separate macro that does the counting, and
(re)building MOZ_PASTE_PREFIX_AND_ARG_COUNT on top of that. Then
MOZ_FOR_EACH ends up working as expected with an empty list.

So this adds a MOZ_ARG_COUNT macro that counts the number of variadic
arguments it's given, and derives MOZ_PASTE_PREFIX_AND_ARG_COUNT from
it.

And this adds a testcase validating that MOZ_FOR_EACH works properly
with an empty list as a result.

--HG--
extra : rebase_source : 309371d87bd1561fbd2153f44fc1256185045d23
2017-06-02 14:53:54 +09:00
Manish Goregaokar
1d3666a615 Bug 1370458: Disallow floats, negative numbers, and long values in hashless color quirk; r=xidorn
MozReview-Commit-ID: FAwr9rgj58c

--HG--
extra : rebase_source : 4a8e77964d309afad78955a6f1a1c8b14bf06481
2017-06-05 23:47:30 -07:00
Sylvestre Ledru
e3c965eb6f Bug 1368079 - Enable the diagnostic assert when MOZ_DEV_EDITION is set r=froydnj,glandium
MozReview-Commit-ID: Dxi5jTGcrow

--HG--
extra : rebase_source : 959956094e6e64a50e307e48b11bb8791940d297
2017-06-05 23:47:02 +02:00
Sylvestre Ledru
aa1c00fb9f Bug 1370369 - Use the new MOZ_DIAGNOSTIC_ASSERT_ENABLED instead of several defines - follow up patch r=froydnj
MozReview-Commit-ID: I4ffmvKClc6

--HG--
extra : rebase_source : 0039cd09dfb199f77a1cbdca3bfdbcab21cc0049
2017-06-05 23:43:34 +02:00
Raajit Raj
212196b16a Bug 1367750 - Allow new keys in Histograms.json if strict_type_checks is False r=chutten
MozReview-Commit-ID: LyB72VN0tDP

--HG--
extra : rebase_source : 513b95f5da133ac5a515a11ad209723e2237cb24
2017-05-26 02:31:34 +05:30
Botond Ballo
9e5ace4056 Bug 1369929 - Do not increase the indent twice in the TreeAutoIndent copy constructor. r=kats
MozReview-Commit-ID: BVudzxWZnQS

--HG--
extra : rebase_source : ff590dc7e5aa31f6d93baf91f8e8df2f27c95628
2017-06-05 12:42:28 -04:00
Nicolas Chevobbe
33b54ea1bc Bug 1363680 - Adapt mocha tests. r=Honza
MozReview-Commit-ID: Jl48dtpqlm7

--HG--
extra : rebase_source : aa94cd8db6785b19008f67086cd0a9ca3371bcab
2017-06-05 13:41:09 +02:00
Nicolas Chevobbe
0cb8dfb5b1 Bug 1363680 - Update stubs. r=Honza
MozReview-Commit-ID: ANFE45Ilr7w

--HG--
extra : rebase_source : ccd6b6c4b096975e22f3d9193f43504a97733ed8
2017-06-05 14:18:01 +02:00
Nicolas Chevobbe
568a26e351 Bug 1363680 - Move the repeat information outside of the message type. r=Honza
MozReview-Commit-ID: J7IJgEYnLhn

--HG--
extra : rebase_source : 2d216915e9e3c59b9d128f4484b340d902bc9c86
2017-06-05 14:15:09 +02:00
Kevin Chen
ae6d39b6e2 Bug 1361574 - Restore texture after creating the video texture; r=sotaro
MozReview-Commit-ID: 1XAPVwW8zv3

--HG--
extra : rebase_source : ee6358a3d7a262281bcd1e4049509c44646428a9
2017-05-25 17:42:28 +08:00
flyingrub
e8fed618d3 Bug 1366978 - Fix about:telemetry data preferences change button r=chutten
Redirect the link to about:preferences#privacy-reports

MozReview-Commit-ID: HIq9zpT6Jz9

--HG--
extra : rebase_source : 8393573834367174ef743c09470f74c22e1ccbdd
2017-06-05 12:16:37 +02:00
Harald Kirschner
9d623a021a Bug 1367580 - Add quantum-foxfooding@mozilla.com to extensions.geckoProfiler.acceptedExtensionIds. r=andym
MozReview-Commit-ID: L6d3ei5oedV

--HG--
extra : transplant_source : %1Bd%3A%D4%AE%BE%98%AB4%05S%04%DC%FCv%ED%CB%D4%2C%C4
2017-05-24 15:06:14 -07:00
Kershaw Chang
30314bebe8 Bug 1360581 - Part 2: Do channel annotation a bit earlier. r=francois
The current channel annotation is happened at nsChannelClassifier::OnClassifyComplete and this is too late because this channel might be already hit the network.
This patch adds a new API CheckIsTrackerWithLocalTable in nsChannelClassifier to check if the URI is in local blacklist and whitelist before calling BeginConnectActual.
Please note that whitelist will be checked only when TP is disabled.

--HG--
extra : rebase_source : 0761f6c7631bc934691c8d018be88514568a3aa1
2017-06-06 02:30:00 -04:00
Kershaw Chang
b87b6ea582 Bug 1360581 - Part 1: Avoid nsChannelClassifier being created twice. r=mayhemer
The original code creates nsChannelClassifier and calls ShouldEnableTrackingProtection twice when TP is enabled. To avoid redundancy, this patch makes channel classifier as a data member in nsHttpChannel. Note that the data member is a weak ptr to prevent ref count cycle.

--HG--
extra : rebase_source : 4a77f1e51b38e27a065162cc702091aca2db51de
2017-06-06 02:35:00 -04:00
André Bargull
b2ce10de42 Bug 1369337 - Forcibly create length and @@iterator properties for arguments when redefining. r=evilpie
--HG--
extra : rebase_source : 5bd47ea33e4274b42443662aa6477b5678dea3df
2017-06-02 12:04:41 +02:00
Joel Maher
838fcff7e7 Bug 1370328 - force plugins off and jsgc_poisoning for talos. r=rwood
MozReview-Commit-ID: 1ZLTUyHyYCH
2017-06-06 09:57:06 -04:00
Joel Maher
b128f216a3 Bug 1369877 - when pushing to try with --artifact for osx builds, we skip upload-files. r=chmanchester
MozReview-Commit-ID: 9qXwxihyNvx
2017-06-06 09:57:05 -04:00
James Graham
81a61480fa Bug 1352128 - Update web-platform-tests expected data. r=jmaher, a=testonly
MozReview-Commit-ID: 1cxaSW7ZPMW
2017-06-03 20:34:34 +01:00
Joel Maher
9e04639fab Bug 1352128 - enabled web-platform-tests for win10 on m-c and try. r=grenade
MozReview-Commit-ID: Aer6ioMtUDe
2017-06-06 09:57:03 -04:00
André Bargull
3ec0f179de Bug 1364979 - Don't use Latin-1 when encoding the export name for missing exports. r=jonco 2017-06-05 13:10:45 +02:00
Petr Sumbera
65cd55b48b Bug 1354576 - Allow to build NSPR on Solaris again. r=ted 2017-05-30 01:36:00 -07:00
André Bargull
760dd32599 Bug 1343363 - Check RegExp wasn't modified in RegExp.p.@@replace global elem-base optimized path. r=till 2017-06-05 13:23:01 +02:00
Jim Mathies
10b72ec89d Bug 1309271 - Fire accessibility focus events from focused content elements when focus changes from chrome to content. r=surkov
MozReview-Commit-ID: 5Iu2TQ58kGa
2017-06-06 06:09:01 -05:00
bechen
d6f6f61eed Bug 1298307 - Change the cue's startTime/endTime to avoid the videoframe was not created. r=alwu
Because the nsVideoFrame's creation is not synchronous to "append to dom tree", there is a small gap
that the TextTrackManager wants to render cue but no frame. Change the testcase to not hit the period.

MozReview-Commit-ID: 9xhMjRJnoDR
2017-06-05 17:24:20 +08:00
Sebastian Hengst
a2e96d0054 Backed out changeset 8adc00c59534 (bug 1369712) for crashes in xpcshell tests on Linux and OS X, e.g. in test_captive_portal_not_found.js @ JS::HeapObjectPostBarrier. r=backout 2017-06-06 15:30:02 +02:00