Page MenuHomeIn-Portal Phabricator

INP-1443 - Ignore requests to the missing ".map" files in Mod-Rewrite
ClosedPublic

Authored by alex on Jul 25 2015, 8:06 AM.

Details

Test Plan
NOTE: Test must be performed in Firefox with FireBug add-on installed and Script tab activated
  1. for jQuery 1.11.3 version download (https://jquery.com/download/):
    • it's minified version (file: jquery-1.11.3.min.js)
    • the source map file matching downloaded minified file (file: jquery-1.11.3.min.map)
  2. place both downloaded files into any folder in theme
  3. add following line to the end of minified file: //# sourceMappingURL=jquery-1.11.3.min.map
  4. in any template place follwing code <script type="text/javascript" src="<inp2:m_TemplatesBase/>platform/inc/tmp/jquery-1.11.3.min.js"></script> (the platform/inc/tmp is where I downloaded them)
  5. reload the page for the browser to query minified file (make sure Firebug is opened on Scripting tab to ensure request for source map file as well)
  6. looking at web server logs confirm, that both files were requested by browser
  7. open debugger on loaded page and confirm, that it shows currently opened page as last visited
  8. rename source map file to something else (I've added _ in the front)
  9. reload the page and perform same assertions again (before reference to missing source map file would go through mod-rewrite, which would overwrite last opened page in the session)

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex updated this revision to Diff 225.Jul 25 2015, 8:06 AM
alex retitled this revision from to INP-1443 - Ignore requests to the missing ".map" files in Mod-Rewrite.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1443.
alex edited the test plan for this revision. (Show Details)Jul 25 2015, 8:07 AM
alex edited edge metadata.
glebs accepted this revision.Sep 7 2015, 1:54 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.Sep 7 2015, 1:54 AM
This revision was automatically updated to reflect the committed changes.