Граф коммитов

538191 Коммитов

Автор SHA1 Сообщение Дата
Matt R 35ad0c68cf Bug 1355473 - convert uses of 'defer' to 'new Promise' in client/responsivedesign; r=tromey
MozReview-Commit-ID: L9tNE28knjF

--HG--
extra : rebase_source : ef6c02f39b5446df2120b3f0936958d30ee4ef6f
2017-05-21 12:54:48 +01:00
udara cd5f595a60 Bug 1367533 - Remove extra error logging during device disconnect on Android. r=eoger
MozReview-Commit-ID: wonLHOwwzP

--HG--
extra : rebase_source : 01a0723c88de1f45c57e0a8576f3f8e8304d5fec
2017-05-24 15:47:57 -04:00
Ray Lin c4a9832435 Bug 1367194 - Explicitly pause video at the end of the test to prevent the media backend from pausing the video as the page closes and thus r=jaws
randomly firing a 'pause' event when the test isn't expecting it. r=jaws

MozReview-Commit-ID: 65NrpKbIxi7

--HG--
extra : rebase_source : 7e1ec55d5c23b8c0cfa49ca5298d77fef77a2e4b
2017-05-24 13:19:55 +08:00
Ting-Yu Chou d12f2af318 Bug 816784 part 4 - Fix the rooting hazards that the analysis report. r=sfink
WrapperMap::Enum::goToNext() is listed as a GC function because the *generated*
stack calls BrowserCompartmentMatcher::match() which leads a path to a FieldCall
of nsISupports.QueryInterface, however it is never the case. Add
nsContentUtils::IsExpandedPrincipal() to the ignore functions because it is more
narrowly scoped and therefore less likely to hide problems.



MozReview-Commit-ID: ACwkMtRiQk2

--HG--
extra : rebase_source : f4222495676f80cc74a5d38e9440cdc7a9ec0791
extra : source : 9a553b9dc92286434644838c41e8513f943f2c25
2017-05-23 11:45:17 +08:00
Ting-Yu Chou 37179cadb3 Bug 816784 part 3 - Optimize the other places that iterate CCWs. r=jonco
The wrappers for strings have target compartment nullptr, which are stored
separately with the other wrappers, so we can simply skip or target them.

MozReview-Commit-ID: CEgU3q7cnmB

--HG--
extra : rebase_source : d93752bf1d10c0f2dd4453ec6f96ee718b65e224
extra : source : ac4a48a831ce289295ca989fc5119611d8560ec1
2017-05-04 17:46:43 +08:00
Ting-Yu Chou e11749eeba Bug 816784 part 2 - Optimize NukeCrossCompartmentWrappers() to iterate only the targetting wrappers. r=jonco
Changed the type of argument |targetFilter| of NukeCrossCompartmentWrappers()
from CompartmentFilter to JSCompartment* because it is always a single target
compartment, and we can optimize the iteration not to iterate the outer map.

MozReview-Commit-ID: 7cDCgJI0H9z

--HG--
extra : rebase_source : ee9341168a28b5e6f273c512b0562ee4ddc297bc
extra : source : e80197b115673f259293d112da61c8dd9edc121e
2017-05-03 13:56:54 +08:00
Ting-Yu Chou 5fe0cca12d Bug 816784 part 1 - Use a 2d hashmap to store cross compartment wrappers. r=jonco
Now we use a flat hashmap to store CCWs, which when we want to nuke wrappers to
a target compartment, we need to iterate every single one to find them. But if
we use a 2d hashmap to store CCWs by their target compartment, we can walk
through only the wrappers that we're targeting.

MozReview-Commit-ID: 8h6wO6NLkD9

--HG--
extra : rebase_source : 1bdbf3642e86ee25999fc7a4d2bec062d2efaac0
extra : source : 7e8f428a3edf506fc53bda26eacc2b64641f8346
2017-05-03 14:07:38 +08:00
Mike Cooper 8971d2aa69 Bug 1367598 - Sync shield-recipe-client from GitHub (v55, commit 4d836a) r=Gijs
MozReview-Commit-ID: CA6nXwIeQo5

--HG--
rename : browser/extensions/shield-recipe-client/test/unit/xpc_head.js => browser/extensions/shield-recipe-client/test/unit/head_xpc.js
extra : rebase_source : ecb8134b8b8b64faf46fe4449ef37d0aa881d43a
2017-05-24 15:59:50 -07:00
Alessio Placitelli 82dcffe8ff Bug 1359031 - Don't trigger early search service init in Telemetry. r=florian
This patch will make TelemetryEnvironment wait for the
"browser-search-service" topic with "init-complete" before attempting
to query search data.

MozReview-Commit-ID: C0i608eYHmU

--HG--
extra : rebase_source : fb46c8b0b597776350bf15cc9a641665691d874a
2017-05-17 15:04:53 +02:00
Andreas Tolfsen 57ee3f03f5 Bug 1340637 - Disable geckodriver compilation on Linux i686; r=ato
geckodriver fails to cross-compile on the TaskCluster x86_64 VMs to
Linux i686.  This patch disables building on that platform, and I have
filed https://bugzilla.mozilla.org/show_bug.cgi?id=1367519 to follow up
on this.

MozReview-Commit-ID: 7GEx2Oog2fS

--HG--
extra : rebase_source : ed722e066a4de1e4bd73c32ba98aed8916c34fd2
2017-05-24 19:45:43 +01:00
Andreas Tolfsen b91d797ab3 Bug 1340637 - Update geckodriver cargo lockfile for vendored crates; r=ted
This updates geckodriver's cargo lockfile,
testing/geckodriver/Cargo.lock, with the exact crate versions available
under third_party/rust.  This will ensure geckodriver is built using the
correct in-tree crate dependencies.

MozReview-Commit-ID: HtPohwW6uN0

--HG--
extra : rebase_source : cdafc425e572494550ce81d6d8c612496fcaab82
2017-05-23 16:37:33 +01:00
Andreas Tolfsen 934b77023e Bug 1340637 - Vendor geckodriver dependencies; r=ted
MozReview-Commit-ID: 1muL5Jc7ulI

--HG--
extra : rebase_source : ff2fdf700f38e66a932e3e73562190530ff1d47a
2017-05-23 18:03:07 +01:00
Andreas Tolfsen e3554fa5ae Bug 1340637 - Skip geckodriver in hazard builds; r=ted
One of the Rust crates that is built as part of geckodriver's dependency
chain uses a build script to compile some C code.

Because mozbuild does not yet pass the compiler wrapper down to where
the gcc crate can find it, we need to avoid building on geckodriver when
this is the case.

When compiling the browser for the rooting hazard analysis build (labelled
H on Treeherder), the MOZ_HAZARD environment variable will be set and
available to moz.build descriptions.

MozReview-Commit-ID: GprFKtvXvOE

--HG--
extra : rebase_source : f45aa5d8c86673c8287371efcfa703755c2b2073
2017-05-23 14:59:58 +01:00
Andreas Tolfsen eda48cff40 Bug 1340637 - Provide build rules for geckodriver; r=jgraham,ted
geckodriver is the Mozilla implementation of the WebDriver remote
control interface for Gecko, and provides an HTTPD proxy that
translates the WebDriver protocol to Marionette.

Building this as part of the Firefox build will allow us to run
WPT WebDriver tests to verify our implementation of Marionette and
geckodriver.  It also makes it less painful to make changes across
projects.

This change will cause the geckodriver program to be built as part
of regular Firefox builds, except on macOS and Android, and when artifact
builds are enabled.

RUST_PROGRAMS in cross-compile environments cause the wrong linker to
be used.  When this bug is fixed, we should be able to enable building
of geckodriver on macOS.  This work is tracked in:

	https://bugzilla.mozilla.org/show_bug.cgi?id=1329737

On Android, we may one to build a binary for the host system to use
(x86_64), instead of an ARM binary for the emulator.

MozReview-Commit-ID: FG5tmPv4iut

--HG--
extra : rebase_source : 091728fd2582458325689fc6e3d8b317428802d8
2017-05-23 14:55:54 +01:00
Bob Silverberg cd1a0703b1 Bug 1349896 - Part 2: Implement devtools.panels.themeName API property, f?rpl r=mixedpuppy
MozReview-Commit-ID: 8uN2VBIyYyt

--HG--
extra : rebase_source : 48902adf1dc5ac193d2b2719cf72b499a40e7d81
2017-05-11 08:54:02 -04:00
Bob Silverberg eb974678e2 Bug 1349896 - Part 1: Expose devtools theme via gDevTools, r=ochameau
Added gDevTools.getTheme() to provide the theme name, and a gDevTools "theme-changed"
event to provide a notification when the theme is changed.

MozReview-Commit-ID: EeUAmtyPpUy

--HG--
extra : rebase_source : 38515c6fb4d4294aa20d862da0c1bb96f17cd99a
2017-05-09 13:03:19 -04:00
Ricky Chien 01a9e7e161 Bug 1360491 - Add the search icon in the search input field r=dao
MozReview-Commit-ID: 4FLWLk22eGC

--HG--
rename : toolkit/themes/osx/global/icons/search-textbox.svg => toolkit/themes/shared/icons/search-textbox.svg
extra : rebase_source : ed267e47ec03ec67544ba9fc31af63d80563a914
2017-05-24 15:21:56 +08:00
Blake Kaplan 961eb025a9 Bug 1366448 - Fix assumptions in this test so it works across branches. r=mconley
The previous version of this test assumed that it was in control of all
processes (except for a single one that was hanging around). That meant that
changes to the environment, such as running it on a different branch could
cause it to fail. Now we explicitly test that creating new tabs creates a new
content process (and that the final tab creation *doesn't* do so) with a
sanity check that new ContentParents don't reuse the same underlying OS
process. Because we're now explicitly testing what we want, this works whether
the current branch holds a random extra process alive or not.

MozReview-Commit-ID: CNgLGL32Iog

--HG--
extra : rebase_source : f27d132d00bdd94d7034cc63c83bbacfe04bde0c
2017-05-23 16:16:22 -07:00
Drew Willcoxon 7a346b67ad Bug 1367587 - Change Copy URL Icon in the Page Action Menu. r=Gijs
MozReview-Commit-ID: FKxDAfJssto

--HG--
extra : rebase_source : 53b976e504f02046a6f0ca197dfb78e9f8def187
2017-05-25 09:13:25 -07:00
Phil Ringnalda 6645d0c44d Backed out changeset 764076f746f1 (bug 1335454) for failures in browser_openPreferences.js on ASan
MozReview-Commit-ID: HVR1L82G9i1
2017-05-25 08:35:27 -07:00
Matt Brubeck d8c5e6208c Bug 1363639 - stylo: Make interpolation of rect() match Gecko. r=emilio
MozReview-Commit-ID: GKLuA9JeOmz

--HG--
extra : rebase_source : 76b1ac38924088eb4b48c30b32ffa39bb311f5b0
2017-05-23 11:23:11 -07:00
J. Ryan Stinnett c481d736bc Bug 1328509 - Enable visited tests for Stylo. r=emilio
MozReview-Commit-ID: HnbVmwMMCMO
2017-05-25 10:13:27 -05:00
J. Ryan Stinnett e9136d19a5 Bug 1328509 - Check failure patterns in assertSnapshots. r=xidorn
Several mochitests call `assertSnapshots`, which prints a reftest-like output
for use with the reftest analyzer.  Update these lines to check failure patterns
before printing, like the regular assertion methods do.

MozReview-Commit-ID: CfChoar7bp8
2017-05-25 10:13:25 -05:00
J. Ryan Stinnett 3041171150 Bug 1328509 - Wire up visited values in ServoStyleSet::GetContext. r=emilio
Create an extra style context using the visited values (if they exist).  This
mirrors the logic Gecko performs in nsStyleSet::GetContext for visited support.

MozReview-Commit-ID: EiJQXDgz8tX
2017-05-25 10:13:23 -05:00
J. Ryan Stinnett 226671a98b Bug 1328509 - Add visited pseudo crashtests. r=emilio
Rename and duplicate a crashtest to better cover each variation of a single
:link or single :visited style on a pseudo-element.

MozReview-Commit-ID: JMFXD7nk9fH
2017-05-25 10:12:04 -05:00
J. Ryan Stinnett e1b39c2e80 Bug 1328509 - GetContentStateForVisitedHandling can access state directly. r=dbaron
While studying `GetContentStateForVisitedHandling` for adaptation to Stylo, I
noticed it calls through to `GetContentState`, which depends on external state
such as private browser, etc.

However, there's no need to call `GetContentState` here since this function
always clears both unvisited and visited if either is set.

MozReview-Commit-ID: JLwKnowQbJ2
2017-05-25 10:12:01 -05:00
Greg Mierzwinski eabeafee3d Bug 1362816 - Prevent test_data_protocol_registration.js and test_no_remote_registration.js from overwriting previously registered factories. r=jmaher
This patch does two things. The first is that it fixes the two tests mentioned in the title by saving a previously registered XULAppInfoFactory, unregistering it, registering the new factory, and then at the end of the test re-registering the factory which was registered before the test started. The second thing this patch does is remove the skipping conditions for these two tests so we can run them on linux64-jsdcov.

MozReview-Commit-ID: 71c1nrYvx1M

--HG--
extra : rebase_source : 818fc5e7fff8ff9985e42835928f26fc13387788
2017-05-22 08:49:18 -04:00
Farmer Tseng f5f7370562 Bug 1359713 - Stop loading the contents of PDF files into memory in PDFViaEMFPrintHelper r=jwatt
This change changes PDFViaEMFPrintHelper so that instead of loading the entire
contents of a PDF document into memory to pass to PDFium, it now simply passes
PDFium a file system path to load the PDF from. This should help us reduce
memory use (and potentially avoid running out of memory) when larger PDFs are
printed.


MozReview-Commit-ID: GISolZYC2GJ

--HG--
extra : rebase_source : a59925542b6c075cd14c67577653163cc2d49c0f
2017-05-12 12:42:20 +08:00
Emilio Cobos Álvarez 5c6703111a Bug 1367553: Avoid import hell in StyleSheet.h. r=emilio
MozReview-Commit-ID: DR4xURkcFcA

--HG--
extra : rebase_source : 0e72cfcc678ede7c2d645a7a618fe593cfbaa55d
2017-05-25 16:11:13 +02:00
Emilio Cobos Álvarez 69601ee10e Bug 1367553: Provide the kind of change that the stylesheet suffered to RecordStyleSheetChange. r=heycam
I plan to use it for now to force a full document restyle when a standalone rule
changes or something like that.

In practice, we can do better sometimes, and we may just want to propagate to
the StyleSet all the style change notifications in order to have access to the
rule that changed and all that...

But for now this seemed easier than adding other four or five functions to
StyleSetHandle.

MozReview-Commit-ID: 2BEIliGu4mO

--HG--
extra : rebase_source : 386a1b9fe5ffc5fefbf20678068573ea195043f0
2017-05-24 04:28:58 +02:00
Emilio Cobos Álvarez d4ee389879 Bug 1367553: Move dirty style tracking to the StyleSet. r=heycam
MozReview-Commit-ID: 2ut8SAwNGN2

--HG--
extra : rebase_source : d9f7d7f1da7b38e595021795ee902e63746c8161
2017-05-24 02:53:08 +02:00
Dão Gottwald 0d2aa9ed3e Bug 1367712 - Stop using a custom toolbar background color on Windows 7. r=nhnt11
MozReview-Commit-ID: 61hkb0KAYeq

--HG--
extra : rebase_source : 27829f891336668bec472a888d961968f5896d0d
2017-05-25 12:12:45 +02:00
Imanol Fernandez 1283b561c2 servo: Merge #17031 - Update rust-webvr (from MortimerGoro:update_webvr); r=emilio
<!-- Please describe your changes on the following line: -->

Required for https://github.com/servo/servo/issues/16556

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 3c267d7fddd036f6bcc9ebf000ed37665cf7496d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 656062d4014fc5764c446234fa11ee871b2dca0a
2017-05-25 07:12:11 -05:00
Fischer.json fe0aa6f6a1 Bug 1335454 - Add the ability to open the "Data Choices" options section through UITour, r=jaws
This patch does:
- Update UITour.jsm to make websites able to open to the old Prefernces advanced pane > dataChoicesTab by calling `Mozilla.UITour.openPreferences("privacy-reports")`.
- Update the comments of `Mozilla.UITour.openPreferences` to explain the old and new Preference to api users.

MozReview-Commit-ID: IdNDKiqfxKo

--HG--
extra : rebase_source : a48e0029486b3dacd8ca0b095fd3b88c0b823532
2017-04-23 16:27:26 +08:00
Fischer.json 90c33909cd Bug 1364852 - Handle error from Services.eTLD.getBaseDomainFromHost, r=Gijs
Quota Manager could return origin which being set to eTLD (see bug 1365892 for more details) or in ipv4/ipv6. That could cause error while calling Services.eTLD.getBaseDomainFromHost. This patch handles these expected errors.

MozReview-Commit-ID: qlfb8nh8cV

--HG--
extra : rebase_source : 4072be4379c2228210eba1d643846cc2175c19bc
2017-05-18 00:29:31 +08:00
bechen 97ab63e82a Bug 1361655 - Add new reftest to verify the first and last frame for short.mp4. r=jwwang
Since the ref-sample made by linux, the mac and windows platforms need fuzzy.
And on windows platform, the first frame is different to other platform, skip it first.
Android platform somehow can not load the video src.

MozReview-Commit-ID: A0VbEcNSmck

--HG--
extra : rebase_source : 266f0012d460b8fd6b62ac1d2878dc9aa686f9a8
2017-05-17 16:54:16 +08:00
Prathiksha a12765de8f Bug 1253274 - Update browser_bug435325.js to use add_task and BrowserTestUtils. r=johannh
MozReview-Commit-ID: HTBqiWzi2NM

--HG--
extra : rebase_source : 2ee6275ebe4c66b9d05e33cd460c136147f1f1cf
2017-05-15 20:14:14 +05:30
Samael Wang cb393d1f72 Bug 1363036 - Part 2: Reject AddEntry / ReplaceEntry if the entry has been associated to another SHistory. Cleanup mHistoryTracker if root docshell changes. r=smaug
MozReview-Commit-ID: 9s4dQG18JUN

--HG--
extra : rebase_source : 728dcdc63c11aaf177faa4e093750a69da8175e4
2017-05-22 15:36:06 +08:00
Samael Wang ecbe18e933 Bug 1363036 - Part 1: Remove MOZ_DIAGNOSTIC_ASSERTs previously added for bug hunting. r=smaug
MozReview-Commit-ID: BAkuRlHtMcP

--HG--
extra : rebase_source : 5e708d0dacec9a673851d689d1f5274a0f1b69aa
2017-05-22 11:25:54 +08:00
lochang 715b00892d Bug 1367334 - Use pdf name as default name of save to file in embedded pdf case. r=brsun
MozReview-Commit-ID: 1AZxOj5DZzC

--HG--
extra : rebase_source : 241d6ee0717ed2fc6137c649ee90c82caee5402e
2017-05-25 10:59:50 +08:00
Emilio Cobos Álvarez 8004ac9538 Bug 1366157: Update expectations. r=me
MozReview-Commit-ID: JsmSy7Z95p4
2017-05-25 15:28:10 +02:00
Dão Gottwald 16e85eb315 Bug 1358453 - Throttle scroll button disabled state updates while scrolling to avoid flushing layout as much as possible. r=florian
MozReview-Commit-ID: 34w6M06ehRF

--HG--
extra : rebase_source : 311a2f93756b4263f8c52826bead7f9430e8774c
2017-05-25 15:08:54 +02:00
Phil Ringnalda 4dcbd3095c Backed out 2 changesets (bug 1367553) for build bustage
CLOSED TREE

Backed out changeset 3e6c9a752596 (bug 1367553)
Backed out changeset 1ee24478fa16 (bug 1367553)

MozReview-Commit-ID: B805jBJYcqL
2017-05-25 06:13:01 -07:00
Emilio Cobos Álvarez 38735b0dbd Bug 1367553: Provide the kind of change that the stylesheet suffered to RecordStyleSheetChange. r=heycam
I plan to use it for now to force a full document restyle when a standalone rule
changes or something like that.

In practice, we can do better sometimes, and we may just want to propagate to
the StyleSet all the style change notifications in order to have access to the
rule that changed and all that...

But for now this seemed easier than adding other four or five functions to
StyleSetHandle.

MozReview-Commit-ID: 2BEIliGu4mO

--HG--
extra : rebase_source : 926f8442fbd17c7ffa7f72b6b4a515a28b9aa18b
2017-05-24 04:28:58 +02:00
Emilio Cobos Álvarez e2b5e966dc Bug 1367553: Move dirty style tracking to the StyleSet. r=heycam
MozReview-Commit-ID: 2ut8SAwNGN2

--HG--
extra : rebase_source : 5f84d20bd197cd2203093ef4b57cb6b8ce2eb15f
2017-05-24 02:53:08 +02:00
Cameron McCormack e958203c53 Bug 1366157 - stylo: Implement getDefaultComputedStyle. r=emilio
MozReview-Commit-ID: GKr06ylK4tA

--HG--
extra : rebase_source : 04907d98d62a0b06f7d3753aaedf999b63483a77
2017-05-24 14:37:47 +08:00
Cameron McCormack 40bf61aba0 servo: Merge #17033 - style: Add support for resolving default computed styles (from heycam:default-cs); r=emilio
Servo-side changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1366157.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7780ef5e431b7c346c0f50ff914fbda9b5017900

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c4752fdd70885e2630d195618d06fb0d9ae1d120
2017-05-25 05:50:52 -05:00
Xidorn Quan 05e5c16a8e Bug 1341102 - Update test expectations.
MozReview-Commit-ID: KM7B3cDsrcZ
2017-05-25 21:09:00 +10:00
Xidorn Quan dec344e5c0 Bug 1188074 part 2 - Allow origin and clip values to appear anywhere in an image layer shorthand property. r=heycam
MozReview-Commit-ID: 1mPG1ua5aSI

--HG--
extra : rebase_source : dab47404b74e3a5bb74488ac2e8ac656afb967b1
2017-05-25 13:57:56 +10:00
Xidorn Quan 9f08fcb484 Bug 1188074 part 1 - Refactor ParseImageLayersItem a bit to check whether a slot is filled before checking whether the keyword matches. r=heycam
This matches how Servo handles this, which should be faster when the
value is valid, because we can skip checking lots of keyword tables
in many cases.

MozReview-Commit-ID: C1pGwbKTi0c

--HG--
extra : rebase_source : fb142b903a098621f5db442f4f43ac4adf1dfa04
2017-05-25 13:38:47 +10:00