Bug 979653 - fix dir attribute checks for url field in rtl mode, r=ehsan

--HG--
extra : rebase_source : 58b0ea3e75fd8237df5ab5fadaa2feaee9cb47b9