Commit Graph

490916 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
0f2c669a48 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Carsten "Tomcat" Book
89dba842cb merge fx-team to mozilla-central a=merge 2016-09-09 12:01:21 +02:00
Iris Hsiao
f0bad41648 Backed out changeset bb033983fe8d (bug 1301344), this shouldn't be landed, it's for test 2016-09-09 15:33:19 +08:00
Johann Hofmann
ec9dd3e14f Bug 1291642 followup - Add a CSS selector for warning labels on windows. r=dao
MozReview-Commit-ID: DotNHI0AF7V

--HG--
extra : rebase_source : fc5c07ca3be3d11b52f576988de06d1c548fd718
2016-09-09 07:32:54 +02:00
Phil Ringnalda
4b1303cc59 Back out 1eb6e4e4060f (bug 1296180) for Windows warning-as-error bustage
CLOSED TREE
2016-09-08 23:30:12 -07:00
Igor
d42cc2cb4e Bug 1296180 - Replace more uses of PR_ARRAY_SIZE with mozilla::ArrayLengh. r=mt 2016-09-08 22:35:12 -07:00
Ryan VanderMeulen
00b6191463 Bug 1301577 - Update pdf.js to version 1.5.437. r=bdahl 2016-09-08 21:52:20 -04:00
Boris Zbarsky
2095bc6fba Bug 1301138. Set the one allowed sandbox navigator even when popups are allowed to escape the sandbox, so the new popup can be navigated by the sandboxed document. r=smaug
--HG--
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2.html
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper-1.html
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper-2.html
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper-3.html
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html
rename : testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping.html => testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html
2016-09-08 00:17:11 -04:00
Boris Zbarsky
bcf43cc08c Bug 1097423. Fix raciness in the test. r=smaug 2016-09-08 17:47:30 -04:00
Junior Hsu
1b0b85b2fe Bug 1301344 - Add test. r=valentin 2016-09-08 02:36:00 -04:00
Junior Hsu
b552a263d3 Bug 1301344 - Bail out from canonicalizing IPv4 first. r=valentin 2016-09-08 02:59:00 -04:00
Ethan Lin
c7074a5f40 Bug 1275478 - Fix svg mask with D2D1 backend. r=mstange 2016-09-08 02:28:00 -04:00
Henrik Skupin
fadd103e03 Bug 1301153 - Split-up marionette_test module into distinct modules. r=maja_zf
marionette_test.py is a bloated module which contains everything around the Marionette testcase classes.
We should split this up into distinct modules, so each new module covers specific code. The two new modules
introduced are errors, and decorators. This split would also be aligned to the structure of the driver.

To not loose backward compatibility we have to keep the import from marionette_test. It means the new
modules have to live in a sub folder named like that.

MozReview-Commit-ID: DQg55M258ST

--HG--
extra : rebase_source : 2c4150e56b4489518bd1c87b4c3f7cc25e0c5133
2016-09-07 22:58:36 +02:00
kearwood
a3d9112f3c Bug 1296446 - Do not render VR frames until a WebGLContext has returned a mirroring layer r=jgilbert
- Fixes a crash that occurred when WebVR frames were rendered prior to
  setting up the WebGLContext for mirroring back to the 2d display.

MozReview-Commit-ID: Fq4c2287KBL

--HG--
extra : rebase_source : e0e0416f1d6a5f9058c7ed89581b700f32712e72
2016-09-08 14:16:07 -07:00
Kan-Ru Chen
8d637c482f Bug 1301339 - Annotate content shutdown hang due to nested event loop in RecvShutdown. r=billm
We currently allow nested event loop to delay ContentChild::RecvShutdown
which in turn might cause content process shutdown hang. This patch
attempts to annotate the crash report that a shutdown hang was after we
have received RecvShutdown but never reach SendFinishShutdown or the
hang happened before or after RecvShutdown.

MozReview-Commit-ID: 8pGqwzLlYpK

--HG--
extra : rebase_source : 78fdec0c29ded1abbd6651c67fe5c97f63555635
2016-09-08 17:23:57 +08:00
Ting-Yu Lin
2f177a0a73 Bug 1299753 Part 3 - Reuse ConstructScrollableBlock to build scrollable DetailsFrame. r=bz
MozReview-Commit-ID: 1yAhuKqurHf

--HG--
extra : rebase_source : 2a77db937d09f98b81dd73e61419ebde82a3ad48
2016-09-08 15:38:06 +08:00
Ting-Yu Lin
13f0d4632f Bug 1299753 Part 2 - Create block formatting context for DetailsFrame if needed. r=bz
nsCSSFrameConstructor::ConstructNonScrollableBlock() has logic to
determine whether to create a block formatting context for a block
frame. I refactor the function to make it reusable by
nsCSSFrameConstructor::ConstructDetailsFrame().

Also, make NS_NewBlockFrame() accept two arguments as other frame
factory functions so that it could be pointed by BlockFrameCreationFunc.
NS_NewBlockFormattingContext is changed accordingly.

The construction for a scrollable DetailsFrame will be further revised
in Part 3.

MozReview-Commit-ID: 8TwG9YMyGva

--HG--
extra : rebase_source : fffdd974df81a809a607491d2534aa8dd2d13ab1
2016-09-07 14:45:42 +08:00
Ting-Yu Lin
c719ccc151 Bug 1299753 Part 1 - Use NS_NewBlockFormattingContext() in ConstructFieldSetFrame(). r=bz
MozReview-Commit-ID: E6lvCRIDROY

--HG--
extra : rebase_source : 52f59f6db123e47c1230dc19c49d2dbf7c6cb0d6
2016-09-05 15:36:53 +08:00
J. Ryan Stinnett
b7ca8b1d80 Bug 1301514 - Destroy browser API frame scripts during swap. r=kanru
When swapping content from <iframe mozbrowser> to <xul:browser>, we now stop the
frame scripts that implement the content side of the browser API since they are
no longer needed and can cause issues if they remain active.

MozReview-Commit-ID: JrecxA4MI93

--HG--
extra : rebase_source : cc68b975c7d82035410a647ff66eab130055ed04
2016-09-08 16:00:12 -05:00
J. Ryan Stinnett
bcefcd65fe Bug 1301514 - Clarify ownership of BrowserElementIsReady. r=kanru
It wasn't immediately obvious to me that BrowserElementIsReady was correctly
guarding against re-running the browser element scripts in a frame.  After more
testing, it was working, but I've added some debug lines for future clarity.
No functionality changes in this patch.

MozReview-Commit-ID: CW4o2TsGKmj

--HG--
extra : rebase_source : 62ec06d4b75f90b3478e403906efaa2f3c3658e2
2016-09-07 17:45:13 -05:00
Alastor Wu
e9a55e8604 Bug 1290467 - part10 : update audio focus related control operations. r=sebastian
Except controlling audio focus from gecko, the MediaControlService can also
decide whether needs to request or abandon audio focus.

MozReview-Commit-ID: G3iSYwd24JZ

--HG--
extra : rebase_source : dd29207d8c08176cd7a57f08d3361e4f29c4095a
2016-09-09 09:51:12 +08:00
Alastor Wu
ff8012b391 Bug 1290467 - part9 : remove 'ACTION_REMOVE_CONTROL'. r=sebastian
Remove 'ACTION_REMOVE_CONTROL' because it's as same as 'ACTION_STOP'.

MozReview-Commit-ID: 6KOj8srEuJA

--HG--
extra : rebase_source : 3b92e0f3d6485af4e9be97b1423804401b1496c7
2016-09-09 09:51:10 +08:00
Alastor Wu
b9bcdbf114 Bug 1290467 - part8 : rename 'ACTION_PLAY' to 'ACTION_RESUME'. r=sebastian
'ACTION_RESUME' should be more suit for its operation.

MozReview-Commit-ID: 4FRHaydVKu5

--HG--
extra : rebase_source : 76b405bf0b7a27f2ea7f27283230df146b71ccfc
2016-09-09 09:51:08 +08:00
Alastor Wu
48bbee4b31 Bug 1290467 - part7 : enable audio competing for non-audible media. r=baku
In general, the audio competing should only be for audible media and it helps user can focus on one media at the same time. However, we hope to treat all media as the same in the mobile device.

First reason is we have media control on fennec and we just want to control one media at once time. Second reason is to reduce the bandwidth, avoiding to play any non-audible media in background which user doesn't notice about.

MozReview-Commit-ID: yB3181cmVE

--HG--
extra : rebase_source : 0f7bc1d4e9fc3f68e2085f59eb0a313d44a1c058
2016-09-09 09:50:40 +08:00
Alastor Wu
75c540b002 Bug 1290467 - part6 : remove redudant space. r=sebastian
remove one redudant space.

MozReview-Commit-ID: 1PdKL1EALAq

--HG--
extra : rebase_source : 20ab4fd13893b7515a8baebac3df9a06af7bb550
2016-09-09 09:50:32 +08:00
Alastor Wu
97207d40a6 Bug 1290467 - part5 : change service's life time. r=sebastian
Now the life time of the MediaControlService would be as same as the Fennec app.
To make code flow more easily, requesting/abandoning the audio focus wouldn't
affect the media control.

We would mainly communicate with the media control via TabEvents.

MozReview-Commit-ID: KT59bII0HuN

--HG--
extra : rebase_source : d8f2c810f24ef6ea72a274db2b432ca8f8876d8e
2016-09-09 09:50:30 +08:00
Alastor Wu
5c5e340476 Bug 1290467 - part4 : create helper function. r=sebastian
wrap some code into initialize() and shutdown().

MozReview-Commit-ID: AiyABlyDEME

--HG--
extra : rebase_source : e13f4d1eef46207edd9d8d8cc956c2644f3b1e38
2016-09-09 09:50:28 +08:00
Alastor Wu
8b77ea4d53 Bug 1290467 - part3 : notify MediaControlService with event 'MEDIA_PLAYING_CHANGE'. r=sebastian
The 'MEDIA_PLAYING_CHANGE' is used for controling media control interface and
the 'AUDIO_PLAYING_CHANGE' is used for showing the tab sound indicator.

MozReview-Commit-ID: 8hZjC77Ju71

--HG--
extra : rebase_source : 3699ea482e89a5c2535defce8ca2689a180d5c49
2016-09-09 09:50:25 +08:00
Alastor Wu
9069f0f0d5 Bug 1290467 - part2 : request audio focus for any media instead of audible one. r=snorp
Previous design is only to request audio focus for audible media, but now we
also request focus for non-audible media.

It's simple that the app should own the focus when users start watching media.

MozReview-Commit-ID: 3eJP26h4kh7

--HG--
extra : rebase_source : b35c4ef7d6560635f428eba445f089abd3844bda
2016-09-09 09:49:25 +08:00
Alastor Wu
122f712890 Bug 1290467 - part1 : dispatch 'media-playback' event. r=baku
Use 'media-playback' event to control the media control interface on Fennec.

MozReview-Commit-ID: D8SU96RrkbQ

--HG--
extra : rebase_source : 16a13e3b1a450a2949cb62b77a53311797daaaf2
2016-09-09 09:49:22 +08:00
Chris Pearce
e99ce4a9c7 Bug 1294003 - Ensure we destroy DXVA2Manager on main thread if DXVA init fails. r=mattwoodrow
If initializing DXVA fails, we end up destroying the DXVA2Manager on the
decode task queue. The DXVA2Manager asserts that it's destroyed on the
main thread, so we should dispatch a task to destroy it on the appropriate
thread instead of destorying it on the wrong one.


MozReview-Commit-ID: 2pbeMOm74et

--HG--
extra : rebase_source : c4a6871877747d4e04494c638d83b225decaf249
2016-09-09 16:12:50 +12:00
Shing Lyu
db11558e50 Bug 1288350 - Temporary reftest list for Stylo vs Gecko test r=heycam,manishearth
--HG--
extra : rebase_source : 4772418bd2813d4e79643a833eb09e47fe893d84
2016-09-05 11:45:39 +08:00
Gerald Squelart
b94f8cfb3e Bug 1301561 - Change media.decoder.heuristic.dormant.timeout to 10000 (ms) - r=jwwang
MozReview-Commit-ID: BibXsBpjIQe

--HG--
extra : rebase_source : 7e2afca18bf8e988455d2fb3eb71866f140808e5
2016-09-09 11:00:21 +10:00
Rob Wu
d5acd544da Bug 1300385 - Do not set button if undefined. r=Waldo
MozReview-Commit-ID: 9QhsP5Woac0

--HG--
extra : rebase_source : 06d8732e5386e855b94b64ba5c37488f3f451b3e
2016-09-04 05:53:25 -07:00
Rob Wu
a03dbe288b Bug 1300385 - Fix flaws in SimpleTest.isDeeply. r=Waldo
- When one of the parameters to isDeeply is an object/function
  and the other is not, isDeeply returned false. Well, isDeeply
  is supposed to report an error instead of returning a value...

- Change the implementation of isDeeply to have SameValue semantics
  instead of weak equality.

- Change the representation of arrays to look like an array, instead
  of its default toString() value which is indistinguishable from a
  string due to the lack of brackets and quotes.

- Account for missing object properties;
  Distinguish them from "undefined" with the special DNE tag.

MozReview-Commit-ID: F1OJhbXcptl

--HG--
extra : rebase_source : 26091a40445064da3f87d61438bd74bbe7491363
2016-09-03 22:00:45 -07:00
Matthew Wein
54cc14572f Bug 1298449 - Add hover effect to the zoom indicator in the location bar. r=dao
For the :hover state, I used the background color that was currently being used
for the :active state.  For the :active state, I bumped up the alpha from .1 to .15
to make it darker, and checked that it passes the WCAG tests.

MozReview-Commit-ID: DLeSf6XAmhp

--HG--
extra : rebase_source : 3ea432ef304f0b1f12ac5cb8c69b0afdba27bd93
2016-09-08 14:48:14 +01:00
Wladimir Palant
4cf6a90426 Bug 918600 - Make sure tooltips are displayed for SDK panels. r=zer0
--HG--
extra : rebase_source : 0a598bae74ba5fa786605bcaba3192a541c89079
2016-09-08 13:29:28 +02:00
Nicholas Nethercote
3ac8aee67f Bug 1297300 - Add missing checks to GetSpec() calls in image/. r=tnikkel. 2016-08-29 15:34:32 +10:00
Nicholas Nethercote
b597f8fec1 Bug 1297300 - Add missing checks to GetSpec() calls in toolkit/. r=froydnj.
--HG--
extra : rebase_source : afb0e9a0f9f5a033f57ef0881071a21fb623a6e0
2016-09-08 14:32:20 +10:00
Nicholas Nethercote
5622a00748 Bug 1297300 - Add missing checks to GetSpec() calls in dom/xbl/. r=bz.
--HG--
extra : rebase_source : b7279c4ce02ac111c39dc099652fe0837b98f30b
2016-09-08 14:19:01 +10:00
Nicholas Nethercote
e4eb76b618 Bug 1297300 - Add missing checks to GetSpec() calls in dom/base/. r=bz.
--HG--
extra : rebase_source : 55e83aad222825b2dd1399fa42eee6b6c894d0ee
2016-09-08 14:17:58 +10:00
Nicholas Nethercote
f4ec41d9b5 Bug 1297300 - Add missing checks to GetSpec() calls in layout/. r=dholbert,heycam.
--HG--
extra : rebase_source : b3a26866746cde4337f5ffeff94f370b2eb7da3e
2016-08-31 20:10:10 +10:00
Nicholas Nethercote
9554ec97fa Bug 1297300 - Add missing checks to GetSpec() calls in parser/. r=hsivonen.
--HG--
extra : rebase_source : 7d60e8d05180a84072ecd148ab5fe74c256acbd1
2016-08-31 12:13:59 +10:00
Nicholas Nethercote
d7c5cd2ed2 Bug 1297300 - Add missing checks to GetSpec() calls in embedding/. r=bz.
--HG--
extra : rebase_source : f66dc6db22ebe16d2c1817f33a895c16efe23f7c
2016-08-31 09:08:52 +10:00
Nicholas Nethercote
2b67a0c986 Bug 1297300 - Add missing checks to GetSpec() calls in rdf/, startupcache/ and xpfe/. r=froydnj.
--HG--
extra : rebase_source : ea94044a5f674f80cdac2b382f3d58d71ba19088
2016-08-31 09:08:42 +10:00
Nicholas Nethercote
8c9e80a613 Bug 1297300 - Add missing checks to GetSpec() calls in caps/ and js/. r=mrbkap.
This required making GetScriptLocation() fallible.

--HG--
extra : rebase_source : a678e86c443988897d88550bec1cd1d21c3e919e
2016-08-30 14:22:04 +10:00
Rob Wu
7530f86ecf Bug 1298979 - move tabs.sendMessage/connect to child process r=billm
- Use the frame's message manager to direct messages via the
  ProxyMessenger to the right tab instead of directly to the tab.
- Put the implementation in a separate file that is only loaded in
  child processes (in the future).
- Explicitly list all addon-process specific files in a new category
  instead of reusing the content one.

MozReview-Commit-ID: 8oIMx9ol7Tl

--HG--
extra : rebase_source : f93805ecdf44d4607dffc20ffe1cf0cbeb8c86be
2016-08-28 20:07:46 -07:00
Rob Wu
8456c63a68 Bug 1298979 - Add test to verify that sending a message and unloading works r=billm
Checks what happens before closing a window or removing a frame:

- Tests that sendMessage/connect is received by the extension.
- Tests that any responses from the extension is not received by the
  sending script (of the closing context).

MozReview-Commit-ID: 9VwCpRmaZOO

--HG--
extra : rebase_source : f4103a10547835fec2a45086c39b3434937bcdce
2016-08-28 16:26:52 -07:00
Nicholas Nethercote
37301e25ad Bug 1297300 - Add missing checks to GetSpec() calls in netwerk/. r=hurley,dragana.
--HG--
extra : rebase_source : 961a82fb6e723688837e5250f57121c14ca958cb
2016-08-26 16:40:57 +10:00
Matt Woodrow
99bf9b18df Bug 1301294 - Remove unnecessary nsresult return value from MediaDataDecoder interface. r=jya 2016-09-09 15:50:37 +12:00